iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
freshlhy
V2EX  ›  iDev

cocoapods 有无国内镜像啊 太慢了 ...

  •  
  •   freshlhy · Mar 31, 2014 · 26532 views
    This topic created in 4601 days ago, the information mentioned may be changed or developed.
    24 replies  •  2015-12-03 10:30:11 +08:00
    loading
    loading
    Mar 31, 2014 via iPhone
    1
    试下交给迅雷离线?
    loading
    loading
    Mar 31, 2014 via iPhone
    2
    淘宝有迅雷vip租,几毛钱
    run2
    run2
    Mar 31, 2014
    3
    @loading -.- 不懂就不要乱回...

    ~/.cocoapods 用vpn初始化一次,以后~/.cocoapods 就只是自动增添了应该不慢了啊(就是个git repo)
    loading
    loading
    Mar 31, 2014 via iPhone
    4
    @sobigfish 好吧…我要烧死你!
    hussion
    hussion
    Mar 31, 2014
    5
    主要是访问github repo慢,挂vpn吧。。。
    run2
    run2
    Mar 31, 2014
    6
    @loading ...我错了,这位大佬.
    loading
    loading
    Mar 31, 2014 via iPhone
    7
    @sobigfish 原来我看错了…
    太慢->太大
    freshlhy
    freshlhy
    OP
    Mar 31, 2014
    8
    谢谢各位热心回复~~~~·
    oa414
    oa414
    Mar 31, 2014
    9
    pod install 的时候加一个参数

    pod install --verbose --no-repo-update

    这样就不会升级cocoapod的spec仓库,经过实践速度有不少提升
    alexrezit
    alexrezit
    Mar 31, 2014
    10
    @loading
    别闹.
    freshlhy
    freshlhy
    OP
    Mar 31, 2014
    11
    @oa414 嗯 要是有类似RubyGems镜像 http://ruby.taobao.org/ 就更好了
    xueshi
    xueshi
    Mar 31, 2014
    12
    cocoapod不是中心化的,具体的pod分散在github上,要想镜像,就得把Github给镜像了
    freshlhy
    freshlhy
    OP
    Mar 31, 2014
    13
    @287854442 两千多个pod镜像一下就可以啦
    YoungShook
    YoungShook
    Apr 1, 2014
    14
    国内似乎也有其镜像吧 http://cocoapods.me/ 不过还在Building...
    WildCat
    WildCat
    Apr 1, 2014 via iPhone
    15
    @YoungShook 用git@osc做镜像如何?vps上写个crontab
    xujialiang
    xujialiang
    Apr 1, 2014❤️1
    16
    淘宝有个镜像
    freshlhy
    freshlhy
    OP
    Apr 1, 2014
    17
    @xujialiang 给个链接
    hongri
    hongri
    Apr 1, 2014
    18
    $ gem sources --remove https://rubygems.org/
    //等有反应之后再敲入以下命令
    $ gem sources -a http://ruby.taobao.org/
    dorentus
    dorentus
    Apr 2, 2014
    19
    @hongri 你这个是 ruby gems 的镜像,不是 cocoapods 的镜像……
    YoungShook
    YoungShook
    Apr 9, 2014
    20
    @WildCat 理论上可行,当然只备份cocoapods list即可. 这样会减少备份的周期.
    yunpu
    yunpu
    Apr 12, 2014❤️1
    21
    因为速度问题,不知道浪费了多少时间了!

    用的最多的 pod install ,pod update 每次都要升级cocoapods的spec仓库,在命令执行时添加参数可以略过此步。具体如下:
    pod install --verbose --no-repo-update
    pod update --verbose --no-repo-update
    6david9
    6david9
    Jan 6, 2015❤️4
    22
    可以试下这个,我在国内做的镜像,半小时同步一次
    pod repo remove master
    pod repo add master https://git.oschina.net/6david9/Specs.git
    pod repo list
    xi_lin
    xi_lin
    Sep 29, 2015
    23
    推荐一个自制 mirror 教程 http://lloydsheng.com/post/setup-cocoapods-mirror
    自己动手丰衣足食
    hengxin196
    hengxin196
    Dec 3, 2015
    24
    我做了个镜像 10 分钟同步一次 可以试试 http://akuan.me/2014/05/03/cocoapods-specs-/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1560 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 23:32 · PVG 07:32 · LAX 15:32 · JFK 18:32
    ♥ Do have faith in what you're doing.