{{ name }} has been deprecated {{#deprecated_in_favor_of}}in favor of {{ deprecated_in_favor_of }}{{/deprecated_in_favor_of}}{{/deprecated}}{{^deprecated}}
{{{ _highlightResult.summary.value }}}{{/deprecated}} {{ name }} has been deprecated {{#deprecated_in_favor_of}}in favor of {{ deprecated_in_favor_of }}{{/deprecated_in_favor_of}}{{/deprecated}}{{^deprecated}} {{{ _highlightResult.name.value }}}{{/deprecated}} CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 102 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly. CocoaPods is built with Ruby and is installable with the default Ruby available on macOS.
We recommend you use the default ruby. Using the default Ruby install can require you to use Search for pods (above). Then list the dependencies in a text file named
Tip: CocoaPods provides a Now you can install the dependencies in your project: Make sure to always open the Xcode workspace instead of the project file when
building your project: Now you can import your dependencies e.g.: Sometimes CocoaPods doesn’t yet have a pod for one of your dependencies. Fortunately, creating a pod is pretty easy:
You can find a lot of information on the process in the guides. When you're done you can get an account and push your pod to the CocoaPods Trunk. We’re developing CocoaPods on GitHub. There’s a guide for getting started on the CocoaPods tool. It’s easy and really gratifying to contribute patches! - for a lot of people it's their first foray into Open Source. We have some easy tickets to look at.What is CocoaPods
sudo
when installing
gems. Further installation instructions are in the guides.
$ sudo gem install cocoapods
Podfile
in your Xcode project directory:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
pod init
command to create a Podfile with
smart defaults. You should use it.
$ pod install
$ open App.xcworkspace
#import <Reachability/Reachability.h>
$ pod spec create Peanut
$ edit Peanut.podspec
$ pod spec lint Peanut.podspec
Contribute