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
1.14.0 - requires new Ruby 2.7.4 #12122
Comments
I have the same issue, I just tried to update Cocoapods today and now it doesn't work: sudo gem install cocoapods
|
I'm also having the same issue. I can't install Cocoapods on Sonoma. |
Facing same issue. I can't install Cocoapods on Sonoma. |
I also just ran into this issue after upgarding to Sonoma. I'm trying to update cocoapods so I can resolve the following [issue](#12012):
Below is the output from attempting to upgrade on macOS 14.1:
Using homebrew to upgrade appears to work and maybe this is a path issue but I'm still seeing version
EDIT (SOLUTION): I was able to upgrade to cocoapods version
|
You just need to install the older pod version: Bonus: |
@MinhLuongNeo why use an older pod version since updating to latest resolves the issue and is possible on Sonoma? |
Why was the requirement changed and not documented? |
According to the official guides CocoaPods (…) will be installable with the default Ruby available on macOS. You can use a Ruby Version manager, however we recommend that you use the standard Ruby available on macOS (…). Unfortunately it's no longer true since 1.14.0. I hope this will be fixed in the future. |
When will you fix this?? |
Unfortunately, the official advice to install cocoapods with https://www.moncefbelyamani.com/why-you-shouldn-t-use-the-system-ruby-to-install-gems-on-a-mac/ (mine) The version of Ruby that comes with macOS is 2.6.10, which reached end of life almost 2 years ago. I'm not speaking for the Cocoapods team, but it's perfectly reasonable for them to stop supporting such old versions. Even Ruby 2.7 reached end of life earlier this year. However, I agree that the fact that this breaking change is not documented in the Cocoapods changelog or in the cocoapods-downloader changelog is not great. Also, it's not guaranteed that Apple will continue to preinstall Ruby on macOS. A while back, they said that they might stop preinstalling certain scripting languages, and they removed Python in Monterey (macOS 12.3). So, I highly recommend that people learn how to use a Ruby version manager. My personal preference is chruby with ruby-install, and I've written a step-by-step guide for installing Ruby on a Mac. I hope it helps! |
@monfresh Cocoapods team that introduced this breaking change and didn't document it needs a slap on the wrist and to fix it back to the default MacOS Ruby version, as per their docs, and better plan for such a change in the future. |
Hey folks - apologies for the mishap here. I thought the last few releases of macOS were on 2.7 but apparently even macOS Sonoma still only includes 2.6. I was rushing to release 1.14 so that we could ship the fix for #12081 and was having issues supporting both newer versions of Ruby & external dependencies and the older 2.6 Ruby versions. At the time it was blocking me from releasing. There's a chance I could figure out a path to re-adding 2.6, but for now I've updated the release notes of 1.14.0 to include a note about dropping support for 2.6. As @monfresh mentioned, even 2.7.4 is EOL. Supporting older versions along with newer versions of Ruby can be quite challenging when external dependencies have specific Ruby version requirements.
Respectful reminder that we do this in our free time and have full time jobs. CocoaPods is receiving very little contributions at the moment, and all of our time is going into keeping the lights on so people relying on it can still use it. If you rely on CocoaPods perhaps it would be worth investing some time into making your dev setup more robust by decoupling yourself from system ruby and using bundler so you don't need to wait for a specific CocoaPods release to pull in a bug fix. |
@amorde thank you, sorry for the rant, I appreciate all the Cocoapods team do. Note: you should also update this on your website: https://guides.cocoapods.org/using/getting-started.html#installation |
This combo seems to be a workaround for now. I'm running macOS Sonoma version 14.1 on my M1 Mac.
|
Those docs should 100% be updated given where we are today. Especially since Apple plans to remove Ruby from macOS entirely at some point in the future |
Fixed in 1.14.3. Let me know if there are still issues running on system Ruby. |
Not fixed for me: macOS 14.2.1 on Apple Silicon via |
Try upgrading ruby before installing cocoapods with:
Cheers, |
with 1.14.0 it won't install on Sonoma or other version of Mac as it requires Ruby 2.7.4 which is not part of the release notes
Would be nice be able to continue to use the standard setup on MacOS vs having to update all devices such as developers devices, build servers, etc..
The text was updated successfully, but these errors were encountered: