sudo-gem-install-cocoapods更新CocoaPods失败、无权限的解决办法 Posted on 2017-03-20 Edited on 2018-10-30 In iOS Views: sudo gem install cocoapods更新CocoaPods,或者sudo gem update --system更新gem。却提醒失败,无权限。但是已经加了sudo,考虑是路径问题。 解决办法用下面的代码指定路径就能安装成功了。sudo gem install -n /usr/bin/pod cocoapods安装CocoaPods或者sudo gem update -n /usr/local/bin --system安装Gem ReferenceOperation not permitted - /usr/bin/update_rubygems