Error fetching https://ruby.taobao.org/: bad response Not Found 404

xcode在按照pod时,报如下错误:

Error fetching https://ruby.taobao.org/:bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

原因:淘宝的gem(https://ruby.taobao.org/)源无效了,需要更好源

打开终端,输入:

gem source -a https://gems.ruby-china.com

等待几十秒后会提示gems installed,代表安装完成

也可以通过输入:

gem sources -l

查看源地址

发布了209 篇原创文章 · 获赞 370 · 访问量 1954万+

猜你喜欢

转载自blog.csdn.net/lilinoscar/article/details/83106386