使用下面命令不能移除原生的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
但是现在还是不能替换taobao的,不知道啥原因,是不是淘汰的网站挂了还是。。
Error fetching http://ruby.taobao.org/:
server did not return a valid file (http://ruby.taobao.org/specs.4.8.gz)
后来发现命令有误,改为下面这个就好了
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
如果出现
activesupport requires Ruby version >= 2.2.2.
就去这位大神那里更新Ruby
//www.greatytc.com/p/4179d4ee75ac
还有这位 //www.greatytc.com/p/65e6259f5984 详细得不要不要的
如果遇到
The dependency `AFNetworking` is not used in any concrete target
在Pod file文件中,ios版本号后加上
target “test” do // test是项目的target
在文件末尾加上
end
然后
pod install
搞定收工。