pod 更新: gem install cocoapods ERROR: While executing gem ... (Gem::FilePermissionError)

pod 更新:gem install cocoapods ERROR: … (Gem::FilePermissionError)

在终端 执行

 sudo gem install cocoapods

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

你可能感兴趣的:(Pod,更新)