Installation with Carthage

triangle-exclamation

Carthagearrow-up-right is a dependency manager for Objective-C and Swift, which simplifies adding 3rd-party frameworks to your projects. See the Quick Startarrow-up-right 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 Settingsarrow-up-right and follow the Usagearrow-up-right steps to start using the SDK in your project. ****

Last updated