Cocoapods终端安装错误

时间:2016-07-14 12:18:38

标签: rubygems cocoapods

在尝试安装cocoapods时遇到以下错误,是否有人可以帮我调试?

MacBook-Pro:~ saiteja$ sudo gem install cocoapods
Password:
ERROR:  Error installing cocoapods:
    activesupport requires Ruby version >= 2.2.2.
MacBook-Pro:~ saiteja$ 

3 个答案:

答案 0 :(得分:1)

sudo gem install activesupport -v 4.2.6

答案 1 :(得分:0)

首先安装旧版本的' activesupport' (它兼容ruby 2.0和cocoapods),然后安装cocoapods。 $ sudo gem install activesupport -v 4.2.6

答案 2 :(得分:0)

这是我遇到的问题。 首先,您需要安装活动脚本:

sudo gem install activesupport -v 4.2.6
sudo gem install -n /usr/local/bin cocoapods