Add the Service SDK Frameworks with CocoaPods
-
If you haven't already done so, install the CocoaPods gem and initialize the
CocoaPods main repository.
sudo gem install cocoapods pod setup
-
If you already have CocoaPods installed, update your pods to the latest
version.
pod update
- Change to the root directory of your application project.
-
Create or edit a file named Podfile that
contains the Service Chat
SDK dependency.
-
If you want to install the complete Service Chat
SDK, update your Podfile to include
ServiceSDK.
source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/goinstant/pods-specs-public' # To use the SDK (with all components) target '<your app target>' do pod 'ServiceSDK' end
-
If you want to install a single Service Chat
SDK component, create a similar Podfile to the one specified above, but only include the
desired pod.
Feature Pod name Chat ServiceSDK/Chat For example, the following Podfile installs Chat.
source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/goinstant/pods-specs-public' # To use Chat target '<your app target>' do pod 'ServiceSDK/Chat' end
If you don't specify a version number, you automatically get the latest version of that component. If you want to add a specific version to your component, be sure to add the version number of the Service Chat SDK and not the version number of the individual component.
-
If you want to install the complete Service Chat
SDK, update your Podfile to include
ServiceSDK.
-
Run the CocoaPods installer.
pod install
This command generates a .xcworkspace file for you with all the dependencies included.
-
Open the .xcworkspace file that
CocoaPods generated and continue with the installation process.
Once you've added the SDK frameworks, proceed with the installation instructions.