0% found this document useful (0 votes)
30 views2 pages

Cocoapods PDF

Uploaded by

nandu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Cocoapods PDF

Uploaded by

nandu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

What is CocoaPods

CocoaPods manages library dependencies for your Xcode projects.

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 gem install cocoapods

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

PROCESS FOR INSTALLING PODS:

● sudo gem install cocoapods


● cd /Users/nandana/Desktop/PodInstallationExample
● touch podfile
● open -e podfile -- after adding pod libraries save and close the podfile
● pod install
● sudo gem install -n /usr/local/bin cocoapods -- for EI Capitan OS

You might also like