I've just update my OSX to El Capitan
. Now when I want to update my PodFile I get this error:
pod: command not found
Any help here?
To find if Cocoapods is installed or not run cmd (pod --version). if theresult is (Not Found) Pods is not installed.
In order to use CocoaPods you need to define the Xcode target to link them to. So for example if you are writing an iOS app, it would be the name of your app.
The installation in /usr/local/bin worked perfectly:
sudo gem install -n /usr/local/bin cocoapods
but only with adding addtional rights I was able to access it
sudo chmod -R 755 /usr/local/bin
binstubs are no longer installed into /usr/bin
.
If you are upgrading from Yosemite simply uninstall cocoapods (gem uninstall cocoapods
or sudo gem uninstall cocoapods
) and then run the following:
$ sudo gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:/Library/Ruby/bin
$ pod --version
0.38.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With