Closed harveyalex closed 10 months ago
I'm also experiencing this, seems to have started for us yesterday, before then the builds were performing as expected.
Getting the same problem, adding gem 'activesupport', '~> 7.0', '<= 7.0.8'
to our Gemfile fixed it locally but i haven't yet found a work around for here
Here is a quick workaround:
Script
step just before Run CocoaPods install
asdf "install" "ruby" "2.7.5"
gem uninstall activesupport
gem install activesupport --version 7.0.8
^ that worked, thank you very much @boo1ean 🙏
Worked in here as well, thanks @boo1ean !
Here is a quick workaround:
- Insert
Script
step just beforeRun CocoaPods install
- Add to script content (adjust for your needs):
asdf "install" "ruby" "2.7.5" gem uninstall activesupport gem install activesupport --version 7.0.8
This worked for me but I used ruby "2.7.6" instead 🙏
I'm seeing this issue on a react-native project. The issue with RN is that the Gemfile is not found in the same directory as the Podfile, it is one level up. So the solution shown above doesn't work in my case. What i would prefer is to be able to specify the directory in which the Gemfile is found.
edit: I should mention, one way to work around this at the moment is to add a script build step to copy Gemfile
/Gemfile.lock
from the ./
directory into the ./ios
directory before running this build step.
I had to add the following to a Script block before Run CocoaPods install
asdf install ruby 2.7.6
asdf global ruby 2.7.6
gem uninstall activesupport
gem install activesupport --version 7.0.8
Then all worked in bitrise.
Installing the specific version of active support fixes the issue for me
Troubleshooting
Useful information
Issue description
While trying to build with cocoaPods 1.12.0, and Ruby 2.7.6, I was unable to, I get this issue:
/Users/vagrant/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:108:in
<class:Array>': undefined method
deprecator' for ActiveSupport:Module (NoMethodError) Did you mean?Bitrise info
Steps to reproduce
The best way to reproduce I think is to create a react native project with the specified ruby version (2.7.6) and try to use 'activesupport' and see that it will fail, its a known issue that has occurred in the last 24 hours but I am unable to get the fix working detailed here https://github.com/CocoaPods/CocoaPods/issues/12080