1.查看源
gem sources -l
2.删除源
sudo gem sources -r https://rubygems.org/
3.设置源
sudogem sources -a https://ruby.taobao.org
4.安装cocoaPod
sudo gem install cocoa pods
4.1 安装指定版本的cocoaPod
sudo gem install cocoapods --version 0.39.0
5.设置
pod setup
6.查看cocoaPods版本号(1.0以后podFile中需要加target 'XXX' do.....end)
pod --version
eg:卸载cocoaPods
sudo gem uninstall cocoapods
项目中使用pod
1.pod安装
pod install
2.pod 更新
pod update --verbose --no-repo-update
3.pod 搜索
pod search ReactiveCocoa