I ran pod install
with El Capitan and got this error:
Errno::EPERM - Operation not permitted - /Users/../Pods/Pods.xcodeproj/xcuserdata/root.xcu
I had to update the system before 'gem install' otherwise I got this:
ERROR: Error installing cocoapods: activesupport requires Ruby version >= 2.2.2.:
Here's what worked for me:
gem update --system
sudo gem install -V -n /usr/local/bin cocoapods
pod install
I actually needed to just update:
pod update