Cocoa pods的安裝

使用下面命令不能移除原生的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

搞定收工。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容