一、安装ruby
curl -L https://get.rvm.io | bash -s stable
二、rvm list known
三、rvm install 2.4.0
四、ruby --version
gem --version
gem sources -l
gem source -r http://rubygems-china.oss.aliyuncs.com
gem source -a https://ruby.taobao.org
ruby --version (2.4)
gem sources -l
安装cocoapods:
sudo gem install -n /usr/local/bin cocoapods
pod setup
sudo gem update --system
pod search YYCache
。。。。