Installation

Once you have got Cocoapods installed, you will need to create a file called Podfile in your projects root directory and put the following code snippet inside:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
platform :ios, '11.0'
target 'Your_Target_Name' do
pod 'YocoSDK', '~> 4.6.4'
end

Once complete, change 'Your_Target_Name' to your projects name (unless the target has a different name) then open up a terminal and go to your projects root directory and run the following command:

pod install --repo-update

You should now be able to open up your projects .xcworkspace file in your projects root directory and be ready to go!

note

The Yoco SDK requires a minimum deployment target of iOS 11.0

warning

If you get an error that contains:

fatal: repository ‘https://github.com/rohanYoco/YocoSDK.git/’ not found

Please ensure that you are using the flag --repo-update when calling pod install and that you have specified a version of the Pod. You will only need to do this the first time you install the pod.