MacOS 10.11 上 Cocoapods 的奇怪问题

2015-09-13 01:41:21 +08:00
 akring

升级了 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 )

2630 次点击
所在节点    macOS
0 条回复

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

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

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

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

© 2021 V2EX