做了个国内的 Cocoapods Specs 镜像,推荐大家多用 pod 管理项目依赖

2014 年 4 月 29 日
 lloydsheng
Cocoapods Specs Repo部署在github上面,网络不好的话做一次pod install要等半个小时以上,严重降低生产力啊!!
当然可以暂时指定 --no-repo-update ,但是总等更新吧。实在被逼得没办法自己做了一个国内的镜像,现在每次安装新的依赖包速度飞快!不敢独享,分享给大家一起使用。
使用方法:

pod repo remove master
pod repo add master https://gitcafe.com/lloydsheng/Specs.git
pod repo update

目前镜像每半个小时同步一次,基本和中央库保证一致。



相关资料:
CocoaPods安装和使用教程: http://code4app.com/article/cocoapods-install-usage
20872 次点击
所在节点    iDev
24 条回复
znetor
2014 年 4 月 29 日
支持
sugarmo
2014 年 4 月 29 日
楼主人太好了,支持
chmlai
2014 年 4 月 29 日
赞!
JasperYanky
2014 年 4 月 29 日
赞赞
WildCat
2014 年 4 月 29 日
赞,我本来想在osc也弄个,一直没时间,回头把 http://git.oschina.net/cocoapods 的账号送给楼主
lloydsheng
2014 年 4 月 29 日
@WildCat gitcafe是我能想起来的一个,不知道国内那个git服务商在稳定性和速度上比较好
JasperYanky
2014 年 4 月 29 日
@lloydsheng 目前用osc,有时候会卡~ 移动20M网络~
lloydsheng
2014 年 4 月 29 日
@JasperYanky 这个先看看,大家反馈不稳定再换
simapple
2014 年 4 月 29 日
又是ruby的好玩意
redf
2014 年 4 月 29 日
顶 lz, 前几天我还发愁呢
pljhonglu
2014 年 4 月 29 日
在用 osc 的
hengxin196
2014 年 4 月 30 日
赞+1
oooo723
2014 年 4 月 30 日
怒赞
WildCat
2014 年 4 月 30 日
pod repo remove master
[!] You do not have permission to delete the master repository.Perhaps try prefixing this command with sudo.


sudo pod repo remove master
/Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:328:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)

何解?
lloydsheng
2014 年 4 月 30 日
@WildCat sudo chown -R xxx:xxx ~/.cocoapods/repos
hengxin196
2014 年 5 月 3 日
hengxin196
2014 年 5 月 3 日
我做了一下 cocoapods specs库的镜像 分别在oschina 和 gitcafe放了 参考下 我的博客
http://akinliu.github.io/2014/05/03/cocoapods-specs-/
yourtion
2014 年 5 月 5 日
支持····
JasperYanky
2014 年 7 月 11 日
今天gitcafe挂了~
redf
2014 年 9 月 11 日
现在 lz 已经把这个地址关了,大家还是切回官方的吧。 要不然找不到新的 pod 了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/110435

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX