Error: Fastlane v2.7.2 and v2.7.3 failing with [!] undefined method `strip' for nil:NilClass

#1

Our fastlane apple submission workflow started to fail using fastlane v2.7.2 and v2.7.3. We are using apple session based authentication. If I set the workflow to use the older version of fastlane v.2.6.x it will start working again.

Fastlane version
$ bundle “2.1.4” “exec” “fastlane” “–version”
fastlane installation at path:
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/bin/fastlane

fastlane 2.171.0
Run Fastlane
$ bundle “2.1.4” “exec” “fastlane” “uploadMetadata”
[02:32:52]: Sending anonymous analytics information
[02:32:52]: Learn more at https://docs.fastlane.tools/#metrics
[02:32:52]: No personal or sensitive data is sent.
[02:32:52]: You can disable this by adding opt_out_usage at the top of your Fastfile
[02:32:52]: ------------------------------
[02:32:52]: — Step: default_platform —
[02:32:52]: ------------------------------
[02:32:52]: Driving the lane ‘ios uploadMetadata’ :rocket:
[02:32:52]: --------------------------------
[02:32:52]: — Step: get_version_number —
[02:32:52]: --------------------------------
[02:32:53]: ---------------------
[02:32:53]: — Step: deliver —
[02:32:53]: ---------------------
[02:32:53]: Successfully loaded ‘/Users/vagrant/git/fastlane/Deliverfile’ :page_facing_up:
±----------------------------------±--------------------------+
| Detected Values from ‘./fastlane/Deliverfile’ |
±----------------------------------±--------------------------+
| app_identifier | com.opentable.GuestCenter |
| skip_screenshots | true |
| skip_metadata | false |
| skip_app_version_update | false |
| submit_for_review | false |
| automatic_release | false |
| run_precheck_before_submit | false |
| precheck_include_in_app_purchases | false |
±----------------------------------±--------------------------+
[02:32:53]: Login to App Store Connect ([REDACTED])
Two-factor Authentication (6 digits code) is enabled for account ‘[REDACTED]’
More information about Two-factor Authentication: https://support.apple.com/en-us/HT204915
If you’re running this in a non-interactive session (e.g. server or CI)
check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
(Input sms to escape this prompt and select a trusted phone number to send the code as a text message)
(You can also set the environment variable SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER to automate this)
(Read more at: https://github.com/fastlane/fastlane/blob/master/spaceship/docs/Authentication.md#auto-select-sms-via-spaceship_2fa_sms_default_phone_number)
Please enter the 6 digit code:
±-----------------±-------------------+
| Lane Context |
±-----------------±-------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios uploadMetadata |
| VERSION_NUMBER | 9.7.4 |
±-----------------±-------------------+
±-----±-------------------±------------+
| fastlane summary |
±-----±-------------------±------------+
| Step | Action | Time (in s) |
±-----±-------------------±------------+
| 1 | default_platform | 0 |
| 2 | get_version_number | 1 |
| :boom: | deliver | 0 |
±-----±-------------------±------------+
[02:32:54]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane…
:arrow_right: [Swift] undefined method each' for nil:NilClass - Cannot Create Group Within FastlaneSwiftRunner Project https://github.com/fastlane/fastlane/issues/15184 [open] 55 💬 2 weeks ago ➡️ [!] undefined method[]’ for #<Gem::NameTuple fastlane, 2.143.0, ruby> (NoMethodError)
https://github.com/fastlane/fastlane/issues/16127 [closed] 46 :speech_balloon:
a week ago
:arrow_right: FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD not recognised when running ‘upload_to_testflight’ on CI (Github Actions)
https://github.com/fastlane/fastlane/issues/17679 [closed] 1 :speech_balloon:
6 weeks ago
and 9 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20`strip’%20for%20nil Did%20you%20mean%3F%20%20String&type=Issues&utf8=✓
:link: You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/Users/vagrant/.rbenv/versions/2.6.5/bin/fastlane)
NoMethodError: [!] undefined method strip' for nil:NilClass Did you mean? String /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline/question.rb:413:inremove_whitespace’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:873:in get_line' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:891:inget_response’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/highline-1.7.10/lib/highline.rb:264:in ask' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/2.6.0/forwardable.rb:230:inask’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/two_step_or_factor_client.rb:227:in ask_for_2fa_code' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/two_step_or_factor_client.rb:161:inhandle_two_factor’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/two_step_or_factor_client.rb:20:in handle_two_step_or_factor' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/client.rb:500:insend_shared_login_request’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/tunes/tunes_client.rb:127:in send_login_request' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/client.rb:793:indo_login’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/client.rb:390:in login' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/client.rb:352:inlogin’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/tunes/spaceship.rb:24:in login' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/connect_api/client.rb:56:inlogin’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/spaceship/lib/spaceship/connect_api/spaceship.rb:85:in login' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/deliver/lib/deliver/runner.rb:36:inlogin’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/deliver/lib/deliver/runner.rb:22:in initialize' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/actions/upload_to_app_store.rb:18:innew’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/actions/upload_to_app_store.rb:18:in run' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:263:inblock (2 levels) in execute_action’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in execute_action' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:255:inblock in execute_action’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:229:in chdir' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:229:inexecute_action’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/fast_file.rb:159:inmethod_missing’
Fastfile:51:in block (2 levels) in parsing_binding' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/lane.rb:33:incall’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:49:in block in execute' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:45:inchdir’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/runner.rb:45:in execute' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/lane_manager.rb:47:incruise_lane’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/command_line_handler.rb:36:in handle' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/commands_generator.rb:108:inblock (2 levels) in run’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:inrun!’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/commands_generator.rb:352:inrun’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/commands_generator.rb:41:in start' /Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:intake_off’
/Users/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/fastlane-2.171.0/bin/fastlane:23:in <top (required)>' /Users/vagrant/.rbenv/versions/2.6.5/bin/fastlane:23:inload’
/Users/vagrant/.rbenv/versions/2.6.5/bin/fastlane:23:in `<top (required)>’
Fastlane command: (bundle “2.1.4” “exec” “fastlane” “uploadMetadata”) failed
If you want to send an issue report to fastlane (https://github.com/fastlane/fastlane/issues/new), you can find the output of fastlane env in the following log file:

0 Likes

#2

Thank you for reaching out to support! Our team has released a fix for 2.7.2 and 2.7.3 please let us know if you are still running into these issues!

Thi

0 Likes

#3

Thanks!!! v2.7.4 is working for us.

0 Likes

closed #4
0 Likes