10.0以后的系統(tǒng)使用下面的方法來(lái)安裝。
Some time ,the default
source of gem,https://rubygems.org/, can't be accessed.
It should be removed by
command :gem sources -rhttps://rubygems.org/
And then add new source :gem sources -ahttp://ruby.taobao.org/
Update the cache:gem sources -u
You can check
souces:?gem sources
Finally , you can install
:?sudo gem install cocoapods
具體使用文章:
http://www.cocoachina.com/ios/20140107/7663.html
xcodeproj ?'path/to/My.xcodeproj'