Add the SDK through CocoaPodsΒΆ

We use CocoaPods in order to make installing and updating our SDK super easy. CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects.

If you don’t have CocoaPods installed on your machine you can install it by issuing the following command in your terminal:

sudo gem install cocoapods

After that you need to go to the project’s directory and initialize CocoaPods

cd /path_to/my_project/
pod init

This will also create a special file called a Podfile, where you can specify what dependencies to add to your new project. Usually it will look similar to this:

target 'MyProject' do
    # add dependencies

For more information on Podfile options, please check the Podfile specification.

You can add SuperAwesome to your project by declaring the following Pod:

target 'MyProject' do
    pod 'KWSiOSSDKObjC', '3.1.2'

This will tell CocoaPods to fetch the latest version of the Kids Web Services iOS SDK.

After the pod source has been added, update your project’s dependencies by running the following command in the terminal:

pod update

Don’t forget to use the .xcworkspace file to open your project in Xcode, instead of the .xcproj file, from here on out.

You can import the SDK like so:

import KWSiOSSDKObjC
import SAProtobufs

The SAProtobufs import is for the access to the protocols the SDK needs to know about. These will be highlighted in the upcoming pages of this documentation.