首页 > 移动平台 > 详细

ios 开发: pod 慢,替换

时间:2017-04-25 14:38:33      阅读:389      评论:0      收藏:0      [点我收藏+]


运行命令: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 慢,替换

原文:http://kankan.blog.51cto.com/372369/1919182

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!