Installation with CocoaPods

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.

CocoaPods 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 Started section for more details.

Before starting to prepare for the installation, please make sure that CocoaPods 1.10.0 or above is installed on your machine.

Podfile

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

platform :ios, '9.0'
pod 'SENTSDK'
Building for the arm64 (M1 Mac) simulator

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

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