1. 在MAC上安装Ruby开发环境(现在MAC是自带Ruby的)
1) 安装Homebrew(MAC上的apt-get)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2) 安装设置RVM(Ruby Version Manage)
curl -L https://get.rvm.io | bash -s stable
3) 安装Ruby环境
rvm install 2.2.4
http://www.cnblogs.com/foxting/p/4520829.html
http://www.cnblogs.com/daguo/p/4097263.html2. 在MAC上安装cocoapods
1) 替换Ruby镜像为淘宝的
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/ gem sources -l2) 安装cocoapods
sudo gem install cocoapods
http://blog.csdn.net/iunion/article/details/17010267
http://blog.csdn.net/chen505358119/article/details/477783473. cocoapods的相关讨论,以及一些使用建议
1) http://blog.devtang.com/blog/2014/05/25/use-cocoapod-to-manage-ios-lib-dependency/?utm_source=tuicool&utm_medium=referral
2) http://weibo.com/p/1001603800875490492754 3) http://www.objccn.io/issue-6-4/