最近换了新电脑,需要重新安装cocoapods,顺便写篇文章记录一下,以便回顾总结
输入 gem sources -l 可以查看当前所使用的镜像

这里需要注意 现在
https://ruby.taobao.org/
原来的淘宝镜像已经不能使用了
换成下面这个解决 gem sources -a https://gems.ruby-china.org/
安装成功,可输入 gem sources -l

开始安装 sudo gem install cocoapods
在安装中出现了一个问题

将命令改为 sudo gem install -n /usr/local/bin cocoapods
即可

如果本文帮到了你,顺手点个小星星❤️
网友评论