When trying to install cocoapod using “sudo gem install cocoapods”, I get that “the last version of (SOME APP; VARIES) to support your Ruby & RubyGems was (VERSION). … (SAID APP) requires Ruby version >= 3.1.0. The current ruby version is 2.6.10.210.”
So I thought I should update rubygems.
At rubygems.org, “gem ‘algolia’, ‘~> 3.15’, ‘>= 3.15.4’” is not recognized in Terminal (“unknown command algolia”). If I go straight to “gem install algolia” I get the first error again.
MacOS come with an old version of ruby. Brew will allow you to install the most recent one and also override the default one (there are instructions after you install it)
Sorry, I meant to update my post yesterday. Yes, it turned out Ruby first and foremost needed updating. I installed the newest Ruby version using Homebrew (I read I shouldn’t interfere with the Ruby installation that came with macOS), and then updated Algolia and installed cocoapods without issue.
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape. Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.