1.下载安装CocoaPods
sudo gem install -n /usr/local/bin cocoapods
2.安装Pods
pod setup
---------------------------------
安装前确保ruby版本不过低,可以更新一下ruby
---------------------------------
移除旧版CocoaPods
sudo gem uninstall -n /usr/local/bin cocoapods-core
2.升级CocoaPods
sudo gem install -n /usr/local/bin cocoapods --pre
网友评论