1. 在MAC上安装Ruby开发环境(现在MAC是自带Ruby的)
1.1 安装Homebrew(MAC上的apt-get)
ruby -e "$(curl -fsSL
1.2 安装设置RVM(Ruby Version Manage)
curl -L https://get.rvm.io | bash -s stable
1.3 安装Ruby环境
rvm install 2.2.4
2. 在MAC上安装cocoapods
2.1 替换Ruby镜像为淘宝的
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l
2.2 安装cocoapods
sudo gem install cocoapods