网上搜了几个貌似都不行了,就在 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' ...
1 elgae 2017-09-28 19:52:10 +08:00 我选择 $$ |
![]() | 2 sh4n3 2017-09-28 20:29:41 +08:00 ![]() |
![]() | 3 ZeoKarl 2017-09-28 20:29:50 +08:00 |
5 elfsundae OP @sh4n3 @nieyujiang 你们能用清华这个镜像?我这边早都不行了。 后来换了 http://cocoapodscn.com 这个,好久没写 iOS 了,昨天发现这个才 10KB/s 左右,然后就建了这个镜像。 |
![]() | 6 yexiaoxing 2017-09-28 22:02:00 +08:00 @elfsundae 如果清华的 mirror 用不了了,欢迎发邮件报告~ https://groups.google.com/forum/#!forum/tuna-general |
![]() | 7 hahasong 2017-09-28 23:24:50 +08:00 更新的时候设置下 HTTP_PROXY 满速 |
8 elfsundae OP @yexiaoxing 我试试 |
9 elfsundae OP @yexiaoxing 官方的反馈在这里 https://github.com/tuna/issues |