fastlane: [Regression] raise NoMethodError in 2.103.0 when I'm trying to upload ipa with new AppStoreConnect API

New Regression Checklist

Issue Description

raise NoMethodError in 2.103.0 when I’m trying to upload ipa with new AppStoreConnect API.

Complete output when running fastlane, including the stack trace and command used
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:67:in `execute': [!] undefined method `zero?' for nil:NilClass (NoMethodError)
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:287:in `block in execute'
	from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/fileutils.rb:120:in `chdir'
	from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/fileutils.rb:120:in `cd'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:286:in `execute'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane_core/lib/fastlane_core/itunes_transporter.rb:380:in `upload'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/pilot/lib/pilot/build_manager.rb:38:in `upload'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'

About this issue

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

Most upvoted comments

This error always shown when upload fail. I’m trying to debug it, wait a minute.

[17:22:47]: fastlane detected a Gemfile in the current directory
[17:22:47]: however it seems like you don't use `bundle exec`
[17:22:47]: to launch fastlane faster, please use
[17:22:47]: 
[17:22:47]: $ bundle exec fastlane upload_testflight ipa:myapp.ipa account_type:account # this a custom lane called upload_testflight
[17:22:47]: 
[17:22:47]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[17:22:48]: ----------------------------------------
[17:22:48]: --- Step: Verifying fastlane version ---
[17:22:48]: ----------------------------------------
[17:22:48]: Your fastlane version 2.103.1 matches the minimum requirement of 1.106.1  ✅
[17:22:48]: ------------------------------
[17:22:48]: --- Step: default_platform ---
[17:22:48]: ------------------------------
[17:22:48]: Driving the lane 'ios upload_testflight' 🚀
[17:22:48]: -------------------
[17:22:48]: --- Step: pilot ---
[17:22:48]: -------------------
[17:22:49]: Login to App Store Connect (xxx@xxx.com)
[17:22:52]: Login successful
[17:22:53]: Ready to upload new build to TestFlight (App: xxxx)...
[17:22:55]: Going to upload updated app to App Store Connect
[17:22:55]: This might take a few minutes. Please don't interrupt the script.
[17:24:03]: [Transporter Error Output]: ERROR ITMS-90189: "Redundant Binary Upload. You've already uploaded a build with build number '1721' for version number '1.21.1'. Make sure you increment the build string before you upload your app to App Store Connect. Learn more in Xcode Help (http://help.apple.com/xcode/mac/current/#/devba7f53ad4)."
[17:24:03]: Transporter transfer failed.
[17:24:03]: 
[17:24:03]: ERROR ITMS-90189: "Redundant Binary Upload. You've already uploaded a build with build number '1721' for version number '1.21.1'. Make sure you increment the build string before you upload your app to App Store Connect. Learn more in Xcode Help (http://help.apple.com/xcode/mac/current/#/devba7f53ad4)."
+------------------+-----------------------+
|               Lane Context               |
+------------------+-----------------------+
| DEFAULT_PLATFORM | ios                   |
| PLATFORM_NAME    | ios                   |
| LANE_NAME        | ios upload_testflight |
+------------------+-----------------------+

+------+----------------------------+-------------+
|                fastlane summary                 |
+------+----------------------------+-------------+
| Step | Action                     | Time (in s) |
+------+----------------------------+-------------+
| 1    | Verifying fastlane version | 0           |
| 2    | default_platform           | 0           |
| 💥   | pilot                      | 74          |
+------+----------------------------+-------------+

[17:24:03]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡️  [Regression] Build Fails with an Invalid 2 step response Error
    https://github.com/fastlane/fastlane/issues/13281 [closed] 31 💬
    10 hours ago

➡️  AGV enabled check fails
    https://github.com/fastlane/fastlane/issues/9506 [closed] 33 💬
    04 Oct 2017

➡️  The App Name you entered has already been used.
    https://github.com/fastlane/fastlane/issues/8079 [closed] 6 💬
    03 May 2017

and 4 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60zero%3F%27%20for%20nil&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:67:in `execute': [!] undefined method `zero?' for nil:NilClass (NoMethodError)
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:287:in `block in execute'
	from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/fileutils.rb:120:in `chdir'
	from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/fileutils.rb:120:in `cd'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:286:in `execute'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/itunes_transporter.rb:380:in `upload'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/pilot/lib/pilot/build_manager.rb:38:in `upload'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/fast_file.rb:149:in `method_missing'
	from Fastfile:41:in `block (2 levels) in parsing_binding'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:74:in `run!'
	from /usr/local/lib/ruby/gems/2.4.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
	from /usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.103.1/bin/fastlane:20:in `<top (required)>'
	from /usr/local/bin/fastlane:23:in `load'
	from /usr/local/bin/fastlane:23:in `<main>'

The only connection I made was you’d need to be logged in for uploading to work.