准备写 iOS 了,先搞个 CocoaPods Specs 国内镜像

2017-09-28 18:52:23 +08:00
 elfsundae

网上搜了几个貌似都不行了,就在 coding.net 上建了一个镜像。

替换现有源为 Coding 镜像源:

git -C ~/.cocoapods/repos/master remote set-url origin https://git.coding.net/ElfSundae/Specs.git

如果上面的命令出错就运行下面这个:

pod repo remove master
git clone https://git.coding.net/ElfSundae/Specs.git ~/.cocoapods/repos/master

更新源(可选)

pod repo update

记得在项目的 Podfile 中添加 source ,否则 pod update 时会恢复成官网源。

# source 'any/other/source'
source 'https://git.coding.net/ElfSundae/Specs.git'
...
4528 次点击
所在节点    程序员
9 条回复
elgae
2017-09-28 19:52:10 +08:00
我选择 $$ 🐶
sh4n3
2017-09-28 20:29:41 +08:00
nieyujiang
2017-09-28 20:29:50 +08:00
elfsundae
2017-09-28 20:30:11 +08:00
@elgae 啥意思?
elfsundae
2017-09-28 20:38:14 +08:00
@sh4n3
@nieyujiang
你们能用清华这个镜像?我这边早都不行了。
后来换了 http://cocoapodscn.com 这个,好久没写 iOS 了,昨天发现这个才 10KB/s 左右,然后就建了这个镜像。
yexiaoxing
2017-09-28 22:02:00 +08:00
@elfsundae 如果清华的 mirror 用不了了,欢迎发邮件报告~ https://groups.google.com/forum/#!forum/tuna-general
hahasong
2017-09-28 23:24:50 +08:00
更新的时候设置下 HTTP_PROXY 满速
elfsundae
2017-09-29 08:20:42 +08:00
@yexiaoxing 我试试
elfsundae
2017-09-29 08:29:10 +08:00
@yexiaoxing 官方的反馈在这里 https://github.com/tuna/issues

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

https://www.v2ex.com/t/394425

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

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

© 2021 V2EX