sudo gem install cocoapods报错
1.删除原来的ruby源:
gem sources --remove https://gems.ruby-china.com/
2.添加国内镜像:
gem sources -a https://gems.ruby-china.com/
3.安装cocoapods:
sudo gem install cocoapods
gem sources --remove https://gems.ruby-china.com/
gem sources -a https://gems.ruby-china.com/
sudo gem install cocoapods