- 安装/更新Cocoapods命令
$ sudo gem install cocoapods
若出现以下错误:
运行错误.png
运行以下命令即可解决:
$ sudo gem install -n /usr/local/bin cocoapods
或者
$ sudo gem install -n /usr/local/bin cocoapods -v 1.0.1 (-v可以跟版本号,按照您想安装的版本来)
解决办法.png
- 卸载Cocoapods命令
sudo gem uninstall cocoapods
或者
sudo gem uninstall -n /usr/local/bin cocoapods
或者
sudo gem uninstall -n /usr/local/bin cocoapods -v 1.0.1 (-v可以跟版本号,按照您想卸载的版本来)
网友评论