April 2016 - Swift 4 Tutorials W3Schools

Hot

Post Top Ad

15 Apr 2016

Cocoapods 'pod install' not working after updating to OS X EI Capitan - iOS

4/15/2016 12:05:00 am 0

Cocoapods  'pod install'  not working after updating to OS X EI Capitan - iOS


Its a common issue after updating mac operating system to OS X EI Capitan but easy to solve this issue. Simply copy the below command and paste in your terminal.

sudo gem install -n /usr/local/bin cocoapods
It worked fine for me.
Detailed explanation for more clarification:

These instructions were tested on all betas and the final release of El Capitan.

Custom Gem_Home:

This is the solution when you are receiving the "Operation not permitted" error.

$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Software/ruby/bin
$ pod --version
0.37.2

  Standard system installation:

For whatever reason, the rootless stuff seems less restrictive when one simply upgrades the system. I could sudo gem install cocoapods just fine on a machine upgraded from 10.10 - however, binstubs are no longer installed into /usr/bin:
$ sudo gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:/Library/Ruby/bin
$ pod --version
0.37.2
We have heard from some users that they receive this error when doing a system-wide installation:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod

We aren't sure why gem behaves differently on some systems, but this can be solved by passing -n /usr/local/bin to the install command, so that the pod executable gets installed there.
Thanks for reading.....
Read More

Post Top Ad