[Older versions < 1.7.0] Getting Started - iOS

Setup SSH Authentication (macOS)

  1. Copy id_adplayer and id_adplayer.pub into ~/.ssh/ folder.

  2. Run the following command in the terminal to register your private key:

$ eval `ssh-agent`

You should see the Agent pid printed below.

3. For MacOS version 12.0 and above run the following command:

ssh-add --apple-use-keychain ~/.ssh/id_adplayer

For MacOS versions below 12.0 run the following command:

$ ssh-add -K ~/.ssh/id_adplayer

The passphrase for the key is AdPlayer.

  1. So that your computer remembers your password each time it restarts, open (or create) the ~/.ssh/config file and add these lines to the file:

Host * UseKeychain yes

Add AdPlayer SDK to your project

  1. Add the following line to the top of your Podfile

source "git@gitlab.com:adservrs/ios-pods.git" source "https://github.com/CocoaPods/Specs.git"
  1. Add AdPlayerSDK pod to your Podfile

pod 'AdPlayerSDK', '~> 1.5.2'
  1. Add the following post_install action to the end of your Podfile:

  1. In the folder that contains your project run

Note that this step might take a while depending on the speed of your internet connection.