Install Sahha SDK for iOS

Learn how to integrate the Sahha SDK into your iOS project.


Step 1) Install Library

Choose how you would like to install the Sahha library into your Xcode project.

You can opt to use either the Swift Package Manager or CocoaPods.


Option A) Using Swift Package Manager

Add the Sahha swift package to your project's package dependencies.

View Sahha Swift SDK on GitHub

shell-session
https://github.com/sahha-ai/sahha-swift

Option B) Using CocoaPods

Add the Sahha pod to your project's pod dependencies.

View Sahha Swift SDK on CocoaPods

Install CocoaPods

Visit CocoaPods to learn how to install CocoaPods.

Step 1) Add the Sahha pod to your project's Podfile.

shell-session
pod 'Sahha'

Step 2) Run pod install from the Terminal app in your project root folder.

shell-session
$ pod install

Step 2) Import Module

After you have installed the Sahha library, import the Sahha module into any files inside your project that use the SDK.

swift
import Sahha

Next Steps

Continue to Step 3.) Configure Settings to configure the Sahha SDK.