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
Post a Comment