Installation with Carthage

This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to https://docs.sentiance.com.

Carthage is a dependency manager for Objective-C and Swift, which simplifies adding 3rd-party frameworks to your projects. See the Quick Start section of Carthage github page for more details.

Cartfile

  1. If your project is already using Carthage, simply add these lines below in your Cartfile.

binary "https://sentiance-u1-sdk-downloads.s3-eu-west-1.amazonaws.com/ios/carthage/SENTSDK.json"

2. Then run the following command from Terminal.

carthage update

3. A Cartfile.resolved file and a Carthage directory will appear in the same directory where your .xcodeproj or .xcworkspace is.

4. Drag the built .framework binary from Carthage/Build/ into Link Binary With Libraries section under Build Phases of your application target.

5. On your application target's Build Phases settings tab, click the + icon and choose New Run Script Phase. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:

/usr/local/bin/carthage copy-frameworks

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.

**** 7. Update your project's Build Settings and follow the Usage steps to start using the SDK in your project. ****

Last updated