使用下面命令不能移除原生的SOURCES
gem sources --remove https://rubygems.org/
報(bào)錯(cuò)如下
source https://rubygems.org/ not present in cache
究其原因,可是我上次更新的時(shí)候中斷了
解決方法,少敲一個(gè)/(這是什么鬼)
gem sources --remove https://rubygems.org
然后,就好了
https://rubygems.org removed from sources
但是現(xiàn)在還是不能替換taobao的,不知道啥原因,是不是淘汰的網(wǎng)站掛了還是。。
Error fetching http://ruby.taobao.org/:
server did not return a valid file (http://ruby.taobao.org/specs.4.8.gz)
后來(lái)發(fā)現(xiàn)命令有誤,改為下面這個(gè)就好了
gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
有時(shí)候還會(huì)有這個(gè)
bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
然后
gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org
如果出現(xiàn)
activesupport requires Ruby version >= 2.2.2.
就去這位大神那里更新Ruby
http://m.itdecent.cn/p/4179d4ee75ac
還有這位 http://m.itdecent.cn/p/65e6259f5984? 詳細(xì)得不要不要的?
如果遇到
The dependency `AFNetworking` is not used in any concrete target
在Pod file文件中,ios版本號(hào)后加上??
target “test” do? ? ? ? // test是項(xiàng)目的target
在文件末尾加上
end
然后
pod install
搞定收工。