gem -v
brew install ruby
gem sources -l
gem sources --add https://gems.ruby-china.com/ --remove https://ruby.taobao.org/
cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
Pod 更新
设置代理
git config --global http.proxy socks5://127.0.0.1:1086
git config --global https.proxy socks5://127.0.0.1:1086
git config --global http.sslVerify false
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy