Manual Install - CocoaPods
The AnyoneKit can be installed via CocoaPods - a popular Swift / Objective-C dependancy manager.
Initializing CocoaPods
From your Xcode project, first verify that CocoaPods is installed
pod --version
If this returns Command Not Found: pod
you can install CocoaPods using Ruby
sudo gem install cocoapods
Once again, verify that you have a working pod version! From there, within your Xcode project directory, initialize CocoaPods:
pod init
This should create a file called Podfile
in your working directory.
Importing AnyoneKit
From the Podfile, within the target section, add the AnyoneKit pod (for now, the GitHub repo must be specified)
target 'YourApp' do
pod 'AnyoneKit', :git => 'https://github.com/anyone-protocol/AnyoneKit.git'
end
After these configurations are set, start the installation process
pod install
You should then be able to use. See some examples within the GitHub repo to explore more ahead of the official iOS SDK Release.
Last updated