Cocoapods PDF
Cocoapods PDF
The dependencies for your projects are specified in a single text file called a Podfile.
CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then
link it together in an Xcode workspace to build your project.
Ultimately the goal is to improve discoverability of, and engagement in, third party open-source
libraries by creating a more centralised ecosystem.
Installation
CocoaPods is built with Ruby and it will be installable with the default Ruby available on OS X.
Using the default Ruby install will require you to use sudo when installing gems. (This is only an
issue for the duration of the gem installation, though.)
Sudo-less installation
If you do not want to grant RubyGems admin privileges for this process, you can tell RubyGems
to install into your user directory by passing either the --user-install flag to gem install
or by configuring the RubyGems environment. The latter is in our opinion the best solution. To
do this, create or edit the .profile file in your home directory and add or amend it to include
these lines:
EM_HOME=
export G $
HOME/
.gem
ATH=$
export P GEM_HOME/bin:$PATH
Usefull links:
http://stackoverflow.com/questions/20755044/how-to-install-cocoa-pods
http://blogs.triffort.com/?p=309