Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activesupport error when Installing "CocoaPods" using sudo gem install cocoapods

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

like image 509
NOUACH Mohamed Avatar asked Sep 06 '25 15:09

NOUACH Mohamed


2 Answers

try running these command, it'll work.

sudo gem install activesupport -v 6.1.7.3
sudo gem install cocoapods
like image 54
Deema Khaled Avatar answered Sep 08 '25 11:09

Deema Khaled


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

like image 35
vstankov Avatar answered Sep 08 '25 12:09

vstankov