# Manual Integration

### 1. Download the SDK

Download the latest [umbrella Sentiance iOS SDK](/important-topics/sdk/appendix/ios/v6.x-framework-files.md#umbrella).

### 2. Import the Framework <a href="#manual-integration-step-2" id="manual-integration-step-2"></a>

After you've downloaded and unzipped the SDK, import it as a linked library in your Xcode project:

1. Go to the **General** tab of your target settings.
2. Click the **+** button under the **Frameworks, Libraries, and Embedded Content** heading.
3. Click **Add Other** and then **Add Files**.
4. Choose the **Sentiance XCFramework** file and click **Open**.
5. After the item has been added to the list, change the **Embed** option next to the framework to **Do Not Embed**.
6. Depending on your Xcode setup, it might be required to add the following libraries: libz.tbd (previously libz.dylib), CoreMotion, SystemConfiguration, CoreLocation, Foundation, CallKit, CoreTelephony, CoreData.

### 3. Include the Bundles <a href="#manual-integration-step-3" id="manual-integration-step-3"></a>

Include the SDK and Protobuf bundles in your project:

1. Go to the **Build Phases** tab of your target settings.
2. Expand the **Copy Bundle Resources** row and click the **+** button.
3. Choose the **SENTSDK.bundle** file located inside the **SENTSDK library**.
4. Next, choose the **Protobuf\_Privacy.bundle** file located inside the **Protobuf library**.

### **4. Import the Dependencies**

The SDK XCFramework bundles all its necessary dependencies under the **External** directory. For each dependency, do the following:

1. Go to the **General** tab of your target settings.
2. Click the **+** button under the **Frameworks, Libraries, and Embedded Content** heading.
3. Click **Add Other** and then **Add Files**.
4. Go to the **Frameworks** folder inside the Sentiance framework, select the dependency .**xcframework** file and click **Open**.
5. After the item has been added to the list, update the **Embed** option next to the framework as follows:

| Framework                       | Embed Option |
| ------------------------------- | ------------ |
| ProtocolBuffers.xcframework     | Do Not Embed |
| UnzipKit.xcframework            | Do Not Embed |
| SENTTensorFlowLiteC.xcframework | Embed & Sign |
| mpde.xcframework                | Embed & Sign |
| dskoball.xcframework            | Embed & Sign |

### 5. Update the Build Settings

1. Go to the **Build Settings** tab of your target settings.
2. Look for **Other Linker Flags** in the **Linking** section.
3. Add `-lz` , `-all_load`, and `-lc++`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sentiance.com/a-complete-integration/ios-sdk/include-sdk/manual-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
