查看镜像:
gem sources -l
删除镜像
gem sources --remove https://rubygems.org/
添加镜像
gem sources -a https://gems.ruby-china.com/
一、升级cocopods
sudo gem install -n /usr/local/bin cocoapods
二、为项目添加pods
pod init
pod install
三、安装cocopds插件
sudo gem install cocoapods-deintegrate // 添加解体插件
sudo gem install cocoapods-clean // 添加清理插件
四、清除已添加项目的cocoapods
1、pod deintegrate
2、pod clean