fastlane: `ensure in take_off': uninitialized constant Fastlane::VERSION

New Issue Checklist

Issue Description

Running on Circle CI, we auto-update fastlane using yes | gem update fastlane.

Since a recent update (2.91), we run into a NameError.

Complete output when running fastlane, including the stack trace and command used
+ fastlane ios beta
[⠋] 🚀 [⠙] 🚀 [⠹] 🚀 [⠸] 🚀 [⠼] 🚀 /Users/distiller/project/.gem/ruby/2.0.0/gems/fastlane-2.91.0/fastlane/lib/fastlane/cli_tools_distributor.rb:110:in `ensure in take_off': uninitialized constant Fastlane::VERSION (NameError)
	from /Users/distiller/project/.gem/ruby/2.0.0/gems/fastlane-2.91.0/fastlane/lib/fastlane/cli_tools_distributor.rb:110:in `take_off'
	from /Users/distiller/project/.gem/ruby/2.0.0/gems/fastlane-2.91.0/bin/fastlane:20:in `<top (required)>'
	from /usr/local/bin/fastlane:23:in `load'
	from /usr/local/bin/fastlane:23:in `<main>'
Exited with code 1

Environment

A macOS container on Circle CI using the xcode: "8.3.3" image.

Will fill in later

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 22 (15 by maintainers)

Most upvoted comments

@pesterhazy Does the latest release (2.93.0) solve this issue for you?

@cpk1 That is a really interesting find 🤔 I will make the next release with 2.5.2.3 so see that helps you when version 2.93.0 gets build and pushed out later today/tomorrow

Just to add some further details… If I use RVM to switch to Ruby 2.4.1 which I don’t use I can gem install fastlane and “fastlane --version” will work. However using the environment I typically work in - Ruby 2.0.0 using “bundle install --path custom/gem/path” I get:

[⠸] 🚀 bundler: failed to load command: fastlane (/custom/gem/path/ruby/2.0.0/bin/fastlane) NameError: uninitialized constant Fastlane::VERSION

Followed by the same stack trace as above.

If I use my gemfile to use fastlane 2.89.0 everything works, however 2.90.0 and 2.91.0 are not working currently

The issue seems to be resolved in 2.93.1 and 2.94.0. Thanks! 🙂

@joshdholtz It works! Thank you very much!

@joshdholtz Todays release works! Thank you! Hopefully this fixes it for those folks on Circle CI as well.

I’m also seeing this on Mac OS (CircleCI), Fastlane v2.91.0