1.CocoaPods 版本旧
The version of CocoaPods used to generate the lockfile is higher that the one of the current executable. Incompatibility issues might arise.
sudo gem update cocoapods
2.Operation not permitted - /usr/bin/xcodeproj
This is the solution when you are receiving the "Operation not permitted" error.
$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Software/ruby/bin
$ pod --version
0.37.2
]]>
评论区