Search…
Manual Installation

Including the SDK

Step 1

Download Sentiance iOS SDK:

Step 2

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

  1. 1.
    Go to the General tab of your target settings
  2. 2.
    Click the + button under the Frameworks, Libraries, and Embedded Content heading
  3. 3.
    Click Add Other and then Add Files
  4. 4.
    Choose the Sentiance XCFramework file and click Open
  5. 5.
    After the item has been added to the list, change the Embed option next to the framework to Do Not Embed
  6. 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

Step 3

Include the SDK bundle in your project:

  1. 1.
    Go to the Build Phases tab of your target settings
  2. 2.
    Expand the Copy Bundle Resources row and click the + button
  3. 3.
    Choose the SENTSDK.bundle file located inside SENTSDK library

Step 4

Include the TensorFlowLiteC library in your project

  1. 1.
    Go to the General tab of your target settings
  2. 2.
    Click the + button under the Frameworks, Libraries, and Embedded Content heading
  3. 3.
    Click Add Other and then Add Files
  4. 4.
    Go to the Frameworks folder inside the Sentiance framework, select TensorFlowLiteC.framework and click Open
  5. 5.
    After the item has been added to the list, change the Embed option next to the framework to Do Not Embed

Step 5

Build Settings

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