xjswiftxjswiftxjswift

cocoapod世界上最快的安装方法
安装brew
sudo /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
用brew安装ruby
brew update
brew install ruby
查看源
gem sources -l
CURRENT SOURCES https://rubygems.org/
移除源
gem sources –remove https://rubygems.org/
更新为 ruby-china的镜像
gem sources -a https://gems.ruby-china.org/
使用gem安装cocoapods
sudo gem install cocoapods
然后执行
git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
下一步
pod setup
pod search pop 看到成功收到的绿色映入眼帘安装成功