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 withgem 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
use
rbenv
orrvm
to install a ruby version >= 2.7Cocoapods 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 thistry running it’ll work.
sudo gem install activesupport -v 6.1.7.3
sudo gem install cocoapods