天天看点

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,如需转载请自行联系原作者