When I enter the 'sudo gem install cocoapods' command, I see '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.' error pops up, I couldn't find the solution
I tried updating Ruby