Coder Social home page Coder Social logo

Comments (11)

zhekix avatar zhekix commented on April 28, 2024 11

gem 'activesupport', '~> 7.0.8'

Add this line in Gemfile and call bundle install

from fastlane.

joomsch avatar joomsch commented on April 28, 2024 3

gem 'activesupport', '~> 7.0.8'

Add this line in Gemfile and call bundle install

I've added gem 'activesupport', '~> 7.0.8' to my gemfile and run bundle install, but I still get the above error. The output of bundle install shows the correct version (7.0.8) but when running fastlane it still tries to use activesupport-7.1.1. Any other ideas?

/opt/homebrew/Cellar/fastlane/2.216.0/libexec/gems/activesupport-7.1.1/lib/active_support/core_ext/array/conversions.rb:108:in `<class:Array>': undefined method `deprecator' for ActiveSupport:Module (NoMethodError)

  deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
                                                          ^^^^^^^^^^^
Did you mean?  deprecate_constant
	from /opt/homebrew/Cellar/fastlane/2.216.0/libexec/gems/activesupport-7.1.1/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>'
	from <internal:/opt/homebrew/Cellar/[email protected]/3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/opt/homebrew/Cellar/[email protected]/3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /opt/homebrew/Cellar/fastlane/2.216.0/libexec/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in `<top (required)>'
	from <internal:/opt/homebrew/Cellar/[email protected]/3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from <internal:/opt/homebrew/Cellar/[email protected]/3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from /opt/homebrew/Cellar/fastlane/2.216.0/libexec/gems/cocoapods-1.13.0/bin/pod:36:in `<top (required)>'
	from /opt/homebrew/Cellar/fastlane/2.216.0/libexec/bin/pod:25:in `load'
	from /opt/homebrew/Cellar/fastlane/2.216.0/libexec/bin/pod:25:in `<main>'
error Command failed with exit code 1.

from fastlane.

mokagio avatar mokagio commented on April 28, 2024 2

@broomfn are you running pod install or bundle exec pod install?

The gems defined in Gemfile are used only when running through Bundler, that is, through bundle exec <command>.

from fastlane.

broomfn avatar broomfn commented on April 28, 2024 2

Thanks @mokagio ,

This link might also be useful for some people...rails/rails#49495 (comment)

from fastlane.

mokagio avatar mokagio commented on April 28, 2024 1

Hey @joomsch, in the logs you shared, the Fastlane binary comes from the Homebrew installation (/opt/homebrew/Cellar/fastlane). I assume you have been invoking Fastlane with fastlane?

To use the one installed with Bundler, that is the one that should use the gem set defined in your Gemfile, you'll need to run it via bundle exec fastlane.

Hope this helps.

from fastlane.

Jcarloluna avatar Jcarloluna commented on April 28, 2024 1

@broomfn are you running pod install or bundle exec pod install?

The gems defined in Gemfile are used only when running through Bundler, that is, through bundle exec <command>.

thanks, worked for me

from fastlane.

ingemar avatar ingemar commented on April 28, 2024 1

If you came here via a web search, you're probably looking for Stand-Alone Active Support.

from fastlane.

broomfn avatar broomfn commented on April 28, 2024

Hi,

I'm getting the same issue when doing a "pod install"

$ pod install
Traceback (most recent call last):
	9: from /Users/developer/.rbenv/versions/2.7.3/bin/pod:23:in `<main>'
	8: from /Users/developer/.rbenv/versions/2.7.3/bin/pod:23:in `load'
	7: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/cocoapods-1.13.0/bin/pod:36:in `<top (required)>'
	6: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	5: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	4: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in `<top (required)>'
	3: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	2: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	1: from /Users/developer/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/activesupport-7.1.1/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>'
/Users/developer/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/activesupport-7.1.1/lib/active_support/core_ext/array/conversions.rb:108:in `<class:Array>': undefined method `deprecator' for ActiveSupport:Module (NoMethodError)
Did you mean?  deprecate_constant

Not using fastlane, any ideas how to fix it? I've tried the suggested Gemfile fix but still get the same issue πŸ€·β€β™‚οΈ

Thanks

from fastlane.

joomsch avatar joomsch commented on April 28, 2024

Hey @joomsch, in the logs you shared, the Fastlane binary comes from the Homebrew installation (/opt/homebrew/Cellar/fastlane). I assume you have been invoking Fastlane with fastlane?

To use the one installed with Bundler, that is the one that should use the gem set defined in your Gemfile, you'll need to run it via bundle exec fastlane.

Hope this helps.

It did. Thank you so much!

from fastlane.

rubywarlock avatar rubywarlock commented on April 28, 2024

I came across this error, but I don't understand what clock.rb has to do with it? the error occurs on the line require 'active_support/time in the file 'spec_helper.rb`

from fastlane.

faizy-ahmed avatar faizy-ahmed commented on April 28, 2024

Delete Gemfile.lock and run bundler exec pod install
It resolves my issue on cocoapods 1.13.0.

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.