Cocoapods installation error in terminal

2019-03-05 17:25发布

While trying to install cocoapods I'm getting the following error, can any one help me debug it?

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

3条回答
够拽才男人
2楼-- · 2019-03-05 17:55

sudo gem install activesupport -v 4.2.6

查看更多
等我变得足够好
3楼-- · 2019-03-05 18:06

This was issue exactly faced by me. First you need install active script :

sudo gem install activesupport -v 4.2.6
sudo gem install -n /usr/local/bin cocoapods
查看更多
何必那么认真
4楼-- · 2019-03-05 18:19

First install an old version of 'activesupport' (which is both compatible with ruby 2.0 and with cocoapods) and then install cocoapods. $ sudo gem install activesupport -v 4.2.6

查看更多
登录 后发表回答