Add the Service SDK Frameworks with CocoaPods
Add the SDK frameworks using CocoaPods, a developer tool that automatically manages
dependencies.
-
If you haven't already done so, install the CocoaPods gem and initialize the
CocoaPods main repository.
1sudo gem install cocoapods 2pod setup -
If you already have CocoaPods installed, update your pods to the latest
version.
1pod 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.
1source 'https://github.com/CocoaPods/Specs.git' 2source 'https://github.com/goinstant/pods-specs-public' 3 4# To use the SDK (with all components) 5target '<your app target>' do 6 pod 'ServiceSDK' 7end -
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.
1source 'https://github.com/CocoaPods/Specs.git' 2source 'https://github.com/goinstant/pods-specs-public' 3 4# To use Chat 5target '<your app target>' do 6 pod 'ServiceSDK/Chat' 7endIf 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.
1pod installThis 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.