CocoaPods升级到V1.0.1

sudo gem update --system

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

gem sources -a https://ruby.taobao.org/

gem sources -l

sudo gem install -n /usr/local/bin cocoapods

Successfully installed cocoapods-1.0.1

Parsing documentation for cocoapods-1.0.1

Installing ri documentation for cocoapods-1.0.1

1 gem installed

XL:~ XLsn0w$ pod --version

1.0.1

如果CocoaPods是1.0版本以上, 则需要在Podfile文件里面增加下面的配置

target:工程名称 do

platform :ios,'7.0'

pod '第三方库名称', '~> 3.1.0'

end

CocoaPods升级到V1.0.1_第1张图片

你可能感兴趣的:(CocoaPods升级到V1.0.1)