我如今須要安裝Cocoapods 。gem的鏡像一景更換爲淘寶的了。
執行sudo gem install cocoapods
出現錯誤:xcode
ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj
我估計是gem版本沒有更新。執行sudo gem update --system
,又出現了錯誤ruby
ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/update_rubygems
最後方法是:sudo gem install -n /usr/local/bin cocoapods
code
pod install 換成pod install --verbose --no-repo-updateit