Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods on el capitan

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?

like image 399
Steaphann Avatar asked Sep 23 '15 08:09

Steaphann


People also ask

How do I know if CocoaPods is installed on my Mac?

To find if Cocoapods is installed or not run cmd (pod --version). if theresult is (Not Found) Pods is not installed.

Does CocoaPods require Xcode?

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.


2 Answers

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
like image 73
Dirk Avatar answered Oct 12 '22 12:10

Dirk


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
like image 30
Aviram Avatar answered Oct 12 '22 11:10

Aviram