skip to Main Content

ERROR:

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

sudo gem install cocoapods

3

Answers


  1. use rbenv or rvm to install a ruby version >= 2.7

    Login or Signup to reply.
  2. Cocoapods can by installed via brew: brew install cocoapods

    brew will also install latest ruby version as a dependency
    and flutter doctor is happy about cocoapods after this

    Login or Signup to reply.
  3. try running it’ll work.

    sudo gem install activesupport -v 6.1.7.3

    sudo gem install cocoapods

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search