2014-03-03 121 views
1

我想在我的MacBook Pro安裝的CocoaPods這是運行OSX小牛和Xcode中的5.02版本,並得到以下錯誤,當我運行sudo的創業板安裝的CocoaPods:Xcode中 - 安裝的CocoaPods

ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ENOMEM: Cannot allocate memory - connect(2) (https://rubygems.org/latest_specs.4.8.gz)

我有配備256G SSD和8G RAM的MacBook Pro。

+1

似乎是紅寶石的問題。請把指南一看: http://guides.cocoapods.org/using/getting-started.html#getting-started – Danil

+0

的可能的複製[的CocoaPods在Xcode 6和10.10優勝美地(HTTP://計算器。 COM /問題/ 24018355 /的CocoaPods與 - xcode中-6和 - 10-10-約塞米蒂) – IKavanagh

回答

0

此問題是由於缺乏適當的Xcode命令行工具。訪問https://developer.apple.com/downloads/並安裝與你的Mac OS和Xcode的版本,最新的命令行工具。然後,嘗試運行:

sudo gem install cocoapods