V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
akring
V2EX  ›  macOS

MacOS 10.11 上 Cocoapods 的奇怪问题

  •  
  •   akring · 2015-09-13 01:41:21 +08:00 · 2629 次点击
    这是一个创建于 3365 天前的主题,其中的信息可能已经有所发展或是发生改变。

    升级了 GM 版本,发现pod命令提示command not found,看来是 cocoapods 挂了啊,没关系,我重新安装一下,确定已经切换到了淘宝的 ruby 源,但是安装的时候却提示这个:

    akringdeMacBook-Pro:~ akring$ gem sources
    *** CURRENT SOURCES ***

    http://ruby.taobao.org/
    akringdeMacBook-Pro:~ akring$ sudo gem install cocoapods
    ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError )
    Errno::ECONNRESET: Connection reset by peer - SSL_connect ( https://api.rubygems.org/quick/Marshal.4.8/cocoapods-0.38.2.gemspec.rz )
    akringdeMacBook-Pro:~ akring$

    难道是源没切换成功吗?

    而且 list gem 的时候也能看到, cocoapods 明明是已经安装过的:

    akringdeMacBook-Pro:~ akring$ gem list

    *** LOCAL GEMS ***

    activesupport (4.2.2 )
    bigdecimal (1.2.0 )
    CFPropertyList (2.3.1, 2.2.8 )
    claide (0.9.1, 0.8.1 )
    cocoapods (0.38.2 )
    cocoapods-core (0.38.2, 0.37.2 )
    cocoapods-downloader (0.9.1, 0.9.0 )
    cocoapods-plugins (0.4.2 )
    cocoapods-stats (0.5.3 )
    cocoapods-trunk (0.6.1 )
    cocoapods-try (0.4.5 )
    colored (1.2 )

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1801 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 16:35 · PVG 00:35 · LAX 08:35 · JFK 11:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.