[Older versions < 1.7.0] Getting Started - iOS
Setup SSH Authentication (macOS)
Copy
id_adplayer
andid_adplayer.pub
into~/.ssh/
folder.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
.
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
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"
Add AdPlayerSDK pod to your
Podfile
pod 'AdPlayerSDK', '~> 1.5.2'
Add the following
post_install
action to the end of yourPodfile
:
In the folder that contains your project run
Note that this step might take a while depending on the speed of your internet connection.