这个问题在stackoverflow上面有过讨论:
Can not perform pod install under el capitan (15A279b)
pod install
被采纳的答案为:sudo gem install -n /usr/local/bin cocoapods
sudo gem install -n /usr/local/bin cocoapods
原文:http://www.cnblogs.com/willbin/p/5436828.html