-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem installing CocoaPods on MacOS #138293
Comments
While working on flutter I also encountered the same issue recently but was able to tackle it and install cocoapods required for macOS. Here is the solution:
This installed me the ruby required and then i followed the order to install the cocoapods. |
Thanks for your input @kaimacuser. |
Thank you for the quick answer! I have found an open issue on the cocoapods GitHub Their advise was to install a newer version of ruby. |
Yeah, Let me know if it works for you. |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Is there an existing issue for this?
Steps to reproduce
Try to install cocoapods via (macOS Sonoma 14.1.1 on MacBook Air and MacMini):
sudo gem install cocoapods
Actual results
It trys to install cocoapods but runs into an error because the version of ruby, that is delivered with macOS, seems to be too old for installing the latest version of cocoapods.
The solution for me was to install an older version of cocoapods which seems to be based on Ruby 2.6.* (the version macOS ist delivered with). While executing the command I was asked to install a few other things, so the final order was:
sudo gem install drb -v 2.0.5
sudo gem install activesupport -v 6.1.7.6
sudo gem install cocoapods -v 1.13.0
Logs
Logs
ERROR: Error installing cocoapods: There are no versions of cocoapods-downloader (>= 2.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for? cocoapods-downloader requires Ruby version >= 2.7.4. The current ruby version is 2.6.10.210.
Flutter Doctor output
Flutter just complained that cocoapods is not installed - which actually wasn't the case
The text was updated successfully, but these errors were encountered: