• 请不要在回答技术问题时复制粘贴 AI 生成的内容
elfsundae
V2EX  ›  程序员

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

  •  
  •   elfsundae · Sep 28, 2017 · 5428 views
    This topic created in 3176 days ago, the information mentioned may be changed or developed.

    网上搜了几个貌似都不行了,就在 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'
    ...
    
    • 镜像仓库: https://coding.net/u/ElfSundae/p/Specs/git
    • 目前是半小时同步一次
    • 512KB/s 应该是 Coding 的限速峰值,不过很稳定,我这边 GitHub 是 100KB 左右,当然还有丢包,所以比 GitHub 快至少 5 倍
    9 replies    2017-09-29 08:29:10 +08:00
    elgae
        1
    elgae  
       Sep 28, 2017
    我选择 $$ 🐶
    sh4n3
        2
    sh4n3  
       Sep 28, 2017   ❤️ 1
    elfsundae
        4
    elfsundae  
    OP
       Sep 28, 2017
    @elgae 啥意思?
    elfsundae
        5
    elfsundae  
    OP
       Sep 28, 2017
    @sh4n3
    @nieyujiang
    你们能用清华这个镜像?我这边早都不行了。
    后来换了 http://cocoapodscn.com 这个,好久没写 iOS 了,昨天发现这个才 10KB/s 左右,然后就建了这个镜像。
    yexiaoxing
        6
    yexiaoxing  
       Sep 28, 2017
    @elfsundae 如果清华的 mirror 用不了了,欢迎发邮件报告~ https://groups.google.com/forum/#!forum/tuna-general
    hahasong
        7
    hahasong  
       Sep 28, 2017
    更新的时候设置下 HTTP_PROXY 满速
    elfsundae
        8
    elfsundae  
    OP
       Sep 29, 2017
    @yexiaoxing 我试试
    elfsundae
        9
    elfsundae  
    OP
       Sep 29, 2017
    @yexiaoxing 官方的反馈在这里 https://github.com/tuna/issues
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4156 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 05:19 · PVG 13:19 · LAX 22:19 · JFK 01:19
    ♥ Do have faith in what you're doing.