更新 cocoapods ,在终端执行命令 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 --version