之前使用终端操作Cocoapods,现在使用插件管理工具,在update时,遇到如下问题:
/usr/bin/gem install cocoapods
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
解决方式:
run the following:
sudo chown -R `whoami` "/Library/Ruby/Gems/2.0.0/"
Then had another error pointing to /usr/bin, so run:
sudo chown -R `whoami` "/usr/bin"
来源地址:http://stackoverflow.com/questions/19957444/running-pod-install-from-xcode-cocoapods-plugin/19959366#19959366