skip to Main Content

I am trying to install cocoapods on my intel mac. But I keep getting error. I run sudo gem install cocoapods --verbose. At first when it starts to download it shows ->

HEAD https://rubygems.org/api/v1/dependencies
404 Not Found

All others are 200 OK. And at the end I get

Error installing cocoapods:
    The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.6. Try installing it with `gem install activesupport -v 6.1.7.6` and then running the current command again
    activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.

I tried what it says but it did not solve the problem

2

Answers


  1. Chosen as BEST ANSWER

    I downloaded the lastest verion of Ruby. with rvm install 3.2.2 (Despite I face with an error while compiling process). Then I tried sudo gem install cocoapods --verbose. And It worked.(I dont have an idea how it worked lol)


  2. Hey you’ll need to update gem

    sudo gem update --system
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search