升级macOS 10.15 后,cocoapods不能正常使用。
终端输入
sudo gem update –system
显示如下错误
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /usr/bin directory.
解决办法:
输入以下命令:
sudo gem install -n /usr/local/bin cocoapods
亲测有效!
网友评论