iOS Setup
Currently it's recommended that CocoaPods is used to install the ZumoKit SDK on iOS. In the future, manual installation, static libraries and dynamic frameworks should be available for easy integration into projects.
Requirements
- Install the following:
- Xcode 11.0 or later
- CocoaPods 1.8.4 or later
- Make sure that your app meets the following requirements:
- Your project must target iOS 10 or later
Installation
If your project is not currently using CocoaPods or does not have a Podfile
, you can create one from a terminal window with the following command:
pod init
This will generate a Podfile
and xcworkspace
file that should be used instead of your standard Xcode project. If you already were using a workspace, CocoaPods will attempt to integrate itself into it.
Your newly created Podfile
will look something like:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Demo' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for Demo
end
First, uncomment line 2 and set the platform to iOS 10:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
...
Finally, add ZumoKit as a dependency of your app's target:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
target 'Demo' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for Demo
pod 'ZumoKit', :git => 'https://github.com/zumo/zumokit-ios.git', :tag => '1.6.0'
end
To complete the installation, execute pod install
from your command line.