解决pod安装 requires Ruby version >= 2.2.2.
pod 安装报错
pod ERROR: Error installing cocoapods:activesupport requires Ruby version >= 2.2.2.
解决方法
#安装 brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
#安装最新版的ruby 解决 ruby版本较低无法安装pod的问题
brew install ruby
参考连接:
https://www.ruby-lang.org/zh_cn/downloads/
http://brew.sh/