升级cocoapods

1、升级Ruby环境
sudo gem update --system

2、更新cocoapods
sudo gem install -n /usr/local/bin cocoapods

3、更新repo(这一步会比较漫长。。。)
pod repo update 或者 pod install --repo-update

4、卸载 cocoapods
sudo gem uninstall cocoapods

你可能感兴趣的:(升级cocoapods)