objective c - CocoaPods No such file or directory -


i installed cocoapods , cannot seem run commands.

all follow commands give same error:

$ pod init $ pod setup $ pod install 

error:

 -bash: /users/emma/.rvm/rubies/ruby-2.2.0/bin/pod: no such file or directory 

correct way install cocoapods following terminal commands (in order):

sudo gem update --system  sudo gem install cocoapods  pod setup  cd ~/path/to/folder/containing/yourapp  pod init 

after pod init should able open , edit podfile

open -a xcode podfile 

and add pod (f.e.:)

pod 'afnetworking', '2.2.1' 

to install added pods run command pod install

after installation of pods, use *.xcworkspace instead of *.xcodeproj

a clear tutorial can found on 'ol raywenderlich website.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -