废话不多说直接看终端输入
➜ ~ ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
➜ ~ gem sources -l
*** CURRENT SOURCES ***
https://rubygems.org/
➜ ~ gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources
➜ ~ gem sources -a https://ruby.taobao.org/
https://ruby.taobao.org added to sources
➜ ~ sudo gem install cocoapods
显示24 gems installed 表示安装完成
pod setup 漫长的等待时间
嫌等待时间过长可以使用国内镜像,参考 http://www.jianshu.com/p/3086df14ed08