1.gem sources --remove https://rubygems.org/
2.gem sources -a https://gems.ruby-china.com/
3.gem sources -l ,显示
*** CURRENT SOURCES ***
https://gems.ruby-china.com/
4.gem install cocoapods
常规操作(被墙不好搞):
pod setup
pod install
pod update
pod search
换方法
1.git clone git@gitee.com:amazingYu/Specs.git ~/.cocoapods/repos/gitee-specs
以后更新就
cd ~/.cocoapods/repos/gitee-specs
git pull
pod install --verbose --no-repo-update
pod update --verbose --no-repo-update
配置文件
source 'git@gitee.com:amazingYu/Specs.git'
platform :ios, "8.0"
target 'App' do
pod 'AFNetworking'
end