安装cocoa pods时出现Operation not permitted

时间:2022-06-26 09:33:43

安装cocoa pods时, 在命令行中输入:

 

sudo gem install cocoapods 报Operation not permitted - /usr/bin/xcodeproj这个错误,

解决办法:

用 sudo gem install -n /usr/local/bin cocoapods --pre

命令代替 sudo gem install cocoa pods 就可以了