ios 开发: pod 慢,替换

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 pod setup.

 

最后继续查找,找到了如下的,方法:

执行:

git clone  https://gitclub.cn/CocoaPods/Specs.git  ~/.cocoapods/repos/master



最后切记要:

pod repo update


这样之后,,相信我们的pod install 和 pod update 等等都有快速好多了。


新建的podfile文件,第一行填写: source ‘https://gitclub.cn/CocoaPods/Specs.git‘  


参考文献: http://www.cnblogs.com/yfming/p/5965860.html

本文出自 “北京看看” 博客,谢绝转载!

以上是关于ios 开发: pod 慢,替换的主要内容,如果未能解决你的问题,请参考以下文章

收藏|分享前端开发常用代码片段

IOS开发-OC学习-常用功能代码片段整理

关于js----------------分享前端开发常用代码片段

iOS开发CGRectGetMidX. CGRectGetMidY.CGRectGetMinY. CGRectGetMaxY. CGRectGetMinX. CGRectGetMaxX的使用(代码片段

iOS开发CGRectGetMidX. CGRectGetMidY.CGRectGetMinY. CGRectGetMaxY. CGRectGetMinX. CGRectGetMaxX的使用(代码片段

iOS代码片段CodeSnippets