CocoaPods 1.0.1 is available.git
To update use: `gem install cocoapods`github
Until we reach version 1.0 the features of CocoaPods can and will change.xcode
We strongly recommend that you use the latest version at all times.服務器
建議下載最新的CocoaPods 可是爲何會裝操作系統
可是輸入gem install cocoapods.net
下面缺提示code
ERROR: While executing gem ... (Errno::EACCES)索引
Permission denied - /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/LICENSErem
在執行gem的時候,確提示沒有權限it
輸入
就能夠都下載好了
sudo gem install -n /usr/local/bin cocoapods --pre
Mac-mini:模擬E路通下載數據 yuyunjun$ sudo gem install -n /usr/local/bin cocoapods --pre
Successfully installed xcodeproj-1.1.0
Fetching: fourflusher-0.3.1.gem (100%)
Successfully installed fourflusher-0.3.1
Fetching: cocoapods-1.0.1.gem (100%)
Successfully installed cocoapods-1.0.1
Parsing documentation for xcodeproj-1.1.0
Installing ri documentation for xcodeproj-1.1.0
Parsing documentation for fourflusher-0.3.1
Installing ri documentation for fourflusher-0.3.1
Parsing documentation for cocoapods-1.0.1
Installing ri documentation for cocoapods-1.0.1
3 gems installed
若是在執行sudo gem install cocoapods
的時候報如下錯誤:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/pod
而且你的操做系統是EI Caption
,但是嘗試使用如下方法來代替
上面的安裝命令:
全部項目的Podspec文件都託管在https://github.com/CocoaPods/Specs, 第一次執行pod setup時,CocoaPods會將這些podspec索引文件更新到本地的~/.cocoapods目錄下, 這個索引文件比較大,因此第一次更新時很是慢. 友好人士在國內的服務器創建了Cocoapods索引庫的鏡像, 因此執行索引跟新操做時候會快不少.具體操做方法以下: $ pod repo remove master $ pod repo add master https://gitcafe.com/akuandev/Specs.git $ pod repo update 這是使用gitcafe上的鏡像,將以上代碼中的 https://gitcafe.com/akuandev/Specs.git 替換成 http://git.oschina.net/akuandev/Specs.git 便可使用oschina上的鏡像。