Installation with CocoaPods

triangle-exclamation

CocoaPodsarrow-up-right is a dependency manager for Objective-C and Swift, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Startedarrow-up-right section for more details.

circle-exclamation

Podfile

If your project is already using CocoaPods, simply add these lines below in your podfile:

platform :ios, '9.0'
pod 'SENTSDK'
chevron-rightBuilding for the arm64 (M1 Mac) simulatorhashtag

The Sentiance SDK supports the arm64 simulator architecture. However, it has a dependency on TensorFlow Lite v2.7.0, which does not support it yet. To address this limitation, use our custom TensorFlow Lite v2.7.0 framework:

Podfile
pod 'TensorFlowLiteC', :podspec => 'https://sentiance-u1-sdk-downloads.s3.eu-west-1.amazonaws.com/ios/frameworks/TensorFlowLiteC/2.7.0/TensorFlowLiteC.podspec'

More information on this can be found on this page.

Then run the following command from Terminal:

pod install --repo-update
circle-info

The Sentiance SDK has a dependency on v2.7.0 of the TensorFlowLiteC framework, which does not support M1 Mac simulators. You can make use of our custom TensorFlowLite framework, to run your app on M1 Mac simulators. See this page.

Last updated