CocoaPods版本升级

命令行执行

$ pod install

-bash: $: command not found



查看CocoaPods版本

$ pod --version

0.36.1

1

$ sudo gem update --system // 先更新gem,国内需要切换源

有时需要输入密码,密码是你电脑的密码,输入密码时是看不见的,你输入正确就行了

如果密码错误会显示:

Password:

Sorry, try again.

密码正确要等一下,而且会出现一大串东西:

Password:

Updating rubygems-update

Fetching: rubygems-update-2.4.6.gem (100%)

Successfully installed rubygems-update-2.4.6

Parsing documentation for rubygems-update-2.4.6

Installing ri documentation for rubygems-update-2.4.6

Installing darkfish documentation for rubygems-update-2.4.6

Installing RubyGems 2.4.6

RubyGems 2.4.6 installed

Parsing documentation for rubygems-2.4.6

Installing ri documentation for rubygems-2.4.6

 

=== 2.4.6 / 2014-02-05

 

$ gem sources --remove https://rubygems.org/

source https://rubygems.org/ not present in cache

 

$ gem sources -a http://ruby.taobao.org/

source http://ruby.taobao.org/ already present in the cache

 

$ gem sources -l

\*\*\* CURRENT SOURCES \*\*\*

http://ruby.taobao.org/

$ sudo gem install cocoapods // 安装cocoapods

$ pod setup

有下面这些证明你成功了

CocoaPods 0.37.0.beta.1 is available.

To update use: `gem install cocoapods --pre`

[!] This is a test version we'd love you to try.

 

For more information see http://blog.cocoapods.org

and the CHANGELOG for this version http://git.io/BaH8pQ.

 

Setup completed

bogon:pod user$ 

 
更详细资料
http://code4app.com/article/cocoapods-install-usage
 
posted @ 2015-04-26 16:19  恣愛仪  阅读(278)  评论(0编辑  收藏  举报