以後經過搜索找到了解決方案:
緣由是ruby 的gem被和諧了,如今淘寶的ruby工程師架設了rubygems的國內鏡像。使用方法以下:今天嘗試使用gem安裝cocoaPod時,gem報錯:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the connected party di d not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "rubygems.global. ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/sass-3.4.13 .gemspec.rz)
$ gem sources --remove https://rubygems.org/ $ gem sources -a https://ruby.taobao.org/ $ gem sources -l
打印以下: *** CURRENT SOURCES *** https://ruby.taobao.org以後就能夠使用了!