1.升级gem
# sudo gem update --system
2.查看当前源
# gem sources - l
3.移除Mac的源,等会加上
# gem sources --remove https://rubygems.org/
4.添加国外的源
# gem sources -a https://gems.ruby-china.org/
5.安装cocoapods
# sudo gem install -n/usr/local/bin cocoapods
6.也可以切回Mac的源
# gem sources --remove https://gems.ruby-china.org/
# gem sources -a https://rubygems.org/
# gem sources - l
PyQt5系列(四)Mac10.12上安装Cocoapods
最新推荐文章于 2020-12-27 22:05:51 发布