1. 程式人生 > >Error fetching https://ruby.taobao.org/: bad response Not Found 404

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

檢視源地址