使用下面命令不能移除原生的SOURCES
gem sources --remove https://rubygems.org/
報錯如下
source https://rubygems.org/ not present in cache
究其原因陈辱,可是我上次更新的時候中斷了
解決方法规丽,少敲一個/(這是什么鬼)
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)
后來發(fā)現(xiàn)命令有誤,改為下面這個就好了
gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
有時候還會有這個
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://www.reibang.com/p/4179d4ee75ac
還有這位 http://www.reibang.com/p/65e6259f5984? 詳細得不要不要的?
如果遇到
The dependency `AFNetworking` is not used in any concrete target
在Pod file文件中掺炭,ios版本號后加上??
target “test” do? ? ? ? // test是項目的target
在文件末尾加上
end
然后
pod install
搞定收工辫诅。