Learn how to integrate CocoaPods into your iOS Mobile app.
Use the following steps to set up Cocoa Pods in your project.
pod initThe default Podfile is created for your project.
open -a Xcode Podfile
platform :ios, '7.0'
pod 'Dependency Name' 'Dependency Version'
The Pods folder is not created to store the project dependencies and the project.xcworkspace is created.
Notice that you now have two separate projects in the workspace. Add any new files to the Xcode project and not the Pods project.
The project is now ready to build. Add as many pods as needed to satisfy the app dependencies and requirements. To test a complete CocoaPods Ooyala project, see Testing the Ooyala CocoaPods Tutorial.
gem install cocoapods
pod repo add ooyala-specs https://github.com/ooyala/ios-sdk-podspecs.git
pod repo update ooyala-specs
# The order of the sources is important since it will look in that order so the recommendation is to put first the private repos first (like Ooyala) and at the end the official one from CocoaPods. source 'https://github.com/ooyala/ios-sdk-podspecs.git' source 'https://github.com/CocoaPods/Specs.git' target 'MyApp' do pod 'OoyalaSDK', '~> 4.31.1' end
pod repo update ooyala-specs pod install pod update # use either install or update