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上的镜像。