天天看點

ios 開發: pod 慢,替換

運作指令:pod repo

發現是github的源,如何替換呢?

網上給出的都是使用如下方法換掉repo的源:

pod repo remove master

pod repo add master https://git.coding.net/CocoaPods/Specs.git

pod repo update

然而我試了好多次結果是:

[!] To setup the master specs repo, please run <code>pod setup</code>.

最後繼續查找,找到了如下的,方法:

執行:

最後切記要:

<a href="https://gitclub.cn/CocoaPods/Specs.git" target="_blank"></a>

這樣之後,,相信我們的pod install 和 pod update 等等都有快速好多了。

建立的podfile檔案,第一行填寫: source 'https://gitclub.cn/CocoaPods/Specs.git'  

參考文獻: http://www.cnblogs.com/yfming/p/5965860.html

     本文轉自北京看看 51CTO部落格,原文連結:http://blog.51cto.com/kankan/1919182,如需轉載請自行聯系原作者