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
incompatibility with activesupport 7.1.0 #12081
Comments
WORKAROUND: |
For me, this happens when |
Maybe fastlane use different version of pods/activesupport (for example via bundler)? |
Same problem as konradzdunczyk. We have fastlane set up to build a flutter app, and pod install fails to run, saying, Can confirm adding |
I haven't created any projects and I have the same problem, where can I find the gemfile? |
Same question for me: no project, just trying to use "pod install" in the folder of my Xcode project which was exported by the Construct 3 application with lacking libraries. Creating a Gemfile in this folder or in the cocoapods folder (where the pod executable is located) don't resolve the issue. |
You have to use pods installed via gem / bundler. I don't know other way how to force activesupport version then via Gemfile |
@jisooround @smart-fr This temporary workaround worked for me: Create a file
Use said sudo bundle install Then delete the new version: sudo gem uninstall activesupport --version 7.1.0 You can also see the installed versions with this: gem list or bundle info activesupport (This is on Apple M1 with |
This change destroyed my CI, I can't deploy our product all day long because this error happened and corrupted all our env. |
@frytg thank you! It doesn't seem to work:
Do I do something wrong? |
For everyone who use sudo with gem or bundler - use rbenv or alternatives to install newer version of ruby then the macos one. MacOS version of ruby sucks so changing it saves you a lot of problems. Choose version of ruby >= 3.0 |
When I try to use |
Because it's not a command. Use it in Gemfile. |
Add this line to Gemfile of your project folder
|
How can you work around this if you install |
My solution is to replace original
Then,
|
Via brew? IDK. But cocapds installed via Gemfile is available globally so
I think it should works. |
How can you use this workaround if you install cocoapods globally via Homebrew? |
Did you try? |
Yes: #12081 (comment) |
Did you change macos ruby to proper one as I mentioned here #12081 (comment) ? Show me your Gemfile |
Thank you @konradzdunczyk, now I think I really have followed your instructions.
My Gemfile is:
|
I am confused about where to place the |
I wrote a little text how I use tools like cocoapods in my workflow. For the workaround call https://gist.github.com/konradzdunczyk/3c07012b68cf4cf2185945242e544a21 |
This is caused by cocoapods 1.13.0 not yet adapting to the recent active_support 7.1.Since active_support 7.1 has modified its api, and loads the minimum dependencies by default. It is broken in small pieces so that only the desired extensions can be loaded. Users should cherry-pick the extensions they want. (See https://guides.rubyonrails.org/active_support_core_extensions.html#stand-alone-active-support) Just add the following two lines require "active_support"
require "active_support/core_ext" into cocoapods gem file
before line 7
|
why this is closed if there is no new release of cocoapods with above fix? |
None of the above worked for me. However, the Gemfile change from this PR resolved the issue for us. |
gem uninstall activesupport
gem install activesupport -v 7.0.8 This worked for me. |
Use cocoapods 1.11.x because I do not want to apply this workaround for activesupport: CocoaPods/CocoaPods#12081 (comment)
Just released 1.14.0 which includes a fix for this. |
…ty-rules * trunk: (191 commits) Update WooCommerce/WooCommerceTests/ViewRelated/LedgerTableViewCellTests.swift Update WooCommerce/Classes/ViewRelated/ReusableViews/LedgerTableViewCell.swift Update WooCommerce/Classes/ViewRelated/Orders/Order Creation/CustomAmounts/OrderCustomAmountsSection.swift Move track event to viewmodel. Add tests Separate add-edit track events to separate methods Update test Track tap on add and edit discount Update “Add” discount event button update release notes Refactor totalPriceAfterDiscountLabel Update CocoaPods Update Dangermattic gem Move Dangerfile to project root, per Danger standard Update how activesupport version is locked Improve Dangerfile code Use DANGER_GITHUB_API_TOKEN from CI env Fix Cocoapods Active Support issue (CocoaPods/CocoaPods#12081) Add initial Danger setup with Dangermattic 11009 Add hiding of Set up button to 16.0 release Fix hound warning ... # Conflicts: # WooCommerce/WooCommerceTests/ViewRelated/Orders/Order Creation/ProductRowViewModelTests.swift
You can actually bypass this issue if you installed it via Homebrew, because Homebrew will just install the cocoapods that depends on Ruby, it's not a binary that embeds the interpreter or something like that. |
Use cocoapods 1.11.x because I do not want to apply this workaround for activesupport: CocoaPods/CocoaPods#12081 (comment)
activesupport 7.1.0 was released today (5.10.2023) and it breaks cocoapods entirely. If you update or install cocoapods, from this day, gem will install newest activesupport (7.1.0). cocoapods-core deasn't have strict version of it
s.add_runtime_dependency 'activesupport', '>= 5.0', '< 8'
If cocoapods install with activesupport 7.1.0 then any cocoapods command faile:
It doesn't matter if you use gem od bundler to run pod.
The problem has been issued on activesupport github: rails/rails#49495
The text was updated successfully, but these errors were encountered: