fastlane: [deliver] submit_build, promote build to production: undefined method `select_build' for nil:NilClass

New Issue Checklist

Issue Description

I’m trying to run the following command to publish a new version of my app. It’s been successfully published to Testflight, I’m now trying to promote it to Production in the App Store. From what I can tell by the error message, ‘app’ is null/nil. However I’ll leave it to the Ruby-experts to determine why.

Complete output when running fastlane, including the stack trace and command used
odroidc2:~ Falgantil$ fastlane deliver submit_build -u APPLE_ID -a APP_PACKAGE_ID --skip_binary_upload true --skip_metadata true --skip_screenshots true --automatic_release -k APPLE_TEAM_ID --force --itc_provider="ITC_PROVIDER"
[✔] 🚀 
[14:51:46]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[14:51:46]: Login to App Store Connect (APPLE_ID)
[14:51:48]: Login successful

±-------------------------------------±------------------------+ | deliver 2.108.0 Summary | ±-------------------------------------±------------------------+ | username | APPLE_ID | | app_identifier | APP_PACKAGE_ID | | skip_binary_upload | true | | skip_metadata | true | | skip_screenshots | true | | automatic_release | true | | team_id | APPLE_TEAM_ID | | force | true | | itc_provider | ITC_PROVIDER | | submit_for_review | true | | build_number | latest | | screenshots_path | ./.fastlane/screenshots | | metadata_path | ./.fastlane/metadata | | platform | ios | | edit_live | false | | use_live_version | false | | skip_app_version_update | false | | overwrite_screenshots | false | | reject_if_possible | false | | phased_release | false | | run_precheck_before_submit | true | | precheck_default_rule_level | warn | | ignore_language_directory_validation | false | | precheck_include_in_app_purchases | true | ±-------------------------------------±------------------------+

[14:51:50]: Running precheck before submitting to review, if you’d like to disable this check you can set run_precheck_before_submit to false [14:51:50]: Making sure we pass precheck 👮‍♀️ 👮 before we submit 🛫

±-------------------------±-------------------+ | Summary for precheck 2.108.0 | ±-------------------------±-------------------+ | default_rule_level | warn | | include_in_app_purchases | true | | app_identifier | APP_PACKAGE_ID | | username | APPLE_ID | ±-------------------------±-------------------+

[14:51:50]: Checking app for precheck rule violations [14:51:58]: Reading in-app purchases. If you have a lot, this might take a while [14:51:58]: You can disable IAP checking by setting the include_in_app_purchases flag to false [14:51:58]: Done reading in-app purchases [14:51:59]: ✅ Passed: No negative  sentiment [14:51:59]: ✅ Passed: No placeholder text [14:51:59]: ✅ Passed: No mentioning  competitors [14:51:59]: ✅ Passed: No future functionality promises [14:51:59]: ✅ Passed: No words indicating test content [14:51:59]: ✅ Passed: No curse words [14:51:59]: ✅ Passed: No words indicating your IAP is free [14:51:59]: ✅ Passed: Incorrect, or missing copyright date [14:52:03]: ✅ Passed: No broken urls [14:52:03]: precheck 👮‍♀️ 👮 finished without detecting any potential problems 🛫 [14:52:04]: Selecting the latest build… [14:52:09]: Selecting build 3.2.2 (3.2.2.161)…

Looking for related GitHub issues on fastlane/fastlane…

Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new Run fastlane env to append the fastlane environment to your issue Traceback (most recent call last): 15: from /usr/local/bin/fastlane:23:in <main>' 14: from /usr/local/bin/fastlane:23:in load’ 13: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/bin/fastlane:23:in <top (required)>' 12: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/cli_tools_distributor.rb:100:in take_off’ 11: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:17:in start' 10: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:182:in run’ 9: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 8: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!’ 7: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 6: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run’ 5: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 4: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:94:in block (2 levels) in run’ 3: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:50:in run' 2: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:172:in submit_for_review’ 1: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:7:in submit!' /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:48:in select_build’: [!] undefined method `select_build’ for nil:NilClass (NoMethodError)

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.13.6
Ruby 2.5.2
Bundler? false
Git git version 2.18.0
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.13.6 (17G65)
Ruby Lib Dir /usr/local/Cellar/ruby/2.5.2/lib
OpenSSL Version OpenSSL 1.0.2p 14 Aug 2018
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 10.1

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.108.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.2.0
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 3.0.0
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.6
xcodeproj 1.7.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 1.8.0
unicode-display_width 1.4.0
terminal-table 1.8.0
plist 3.4.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.6.5
tty-cursor 0.6.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.62.0
faraday 0.15.3
unf_ext 0.0.7.5
unf 0.1.4
domain_name 0.5.20180417
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.1.4
gh_inspector 1.1.3
json 2.1.0
mini_magick 4.5.1
multi_json 1.13.1
multi_xml 0.6.0
rubyzip 1.2.2
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.5.0
bundler 1.16.2
faraday_middleware 0.12.2
naturally 2.2.0
simctl 1.6.5
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mime-types-data 3.2018.0812
mime-types 3.2.2
jwt 2.1.0
signet 0.11.0
memoist 0.16.0
os 1.0.0
googleauth 0.6.7
httpclient 2.8.3
google-api-client 0.23.9
emoji_regex 0.1.1
openssl 2.1.2
date 1.0.0
fileutils 1.0.2
ipaddr 1.2.0
psych 3.0.2

generated on: 2018-12-04

About this issue

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

Most upvoted comments

Reopening this because I want to fight @fastlane-bot 😉

I am facing this problem on latest Fastlane.

+------+--------------------------+-------------+
|               fastlane summary                |
+------+--------------------------+-------------+
| Step | Action                   | Time (in s) |
+------+--------------------------+-------------+
| 1    | default_platform         | 0           |
| 2    | get_push_certificate     | 2           |
| 3    | get_certificates         | 6           |
| 4    | get_provisioning_profile | 6           |
| 5    | app_store_build_number   | 7           |
| 6    | increment_build_number   | 0           |
| 7    | build_app                | 221         |
| 💥   | upload_to_testflight     | 637         |
+------+--------------------------+-------------+

[11:31:26]: fastlane finished with errors

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

➡️  Promoting iOS app to App Store throws NoMethodError: [!] undefined method `candidate_builds' for nil:NilClass
    https://github.com/fastlane/fastlane/issues/15029 [open] 5 💬
    a week ago

➡️  [deliver] submit_build, promote build to production: undefined method `select_build' for nil:NilClass
    https://github.com/fastlane/fastlane/issues/13809 [open] 27 💬
    2 weeks ago

➡️  upload_to_testflight: fails with nil in pilot/build_manager.rb:449:in `update_build_beta_details`
    https://github.com/fastlane/fastlane/issues/14977 [open] 20 💬
    4 hours ago

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

🔗  You can ⌘ + double-click on links to open them directly in your browser.
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
NoMethodError: [!] undefined method `id' for nil:NilClass
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/pilot/lib/pilot/build_manager.rb:455:in `update_build_beta_details'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/pilot/lib/pilot/build_manager.rb:217:in `update_beta_app_meta'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/pilot/lib/pilot/build_manager.rb:128:in `distribute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/pilot/lib/pilot/build_manager.rb:53:in `upload'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:256:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:235:in `block in execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:227:in `chdir'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'
  Fastfile:33:in `block (2 levels) in parsing_binding'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/lane.rb:33:in `call'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
  /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
  /Library/Ruby/Gems/2.3.0/gems/fastlane-2.128.1/bin/fastlane:23:in `<top (required)>'
  /usr/local/bin/fastlane:22:in `load'
  /usr/local/bin/fastlane:22:in `<top (required)>'

Quick update: This issue is still present in the latest release

Here’s what I have a month later. Still same issue sadly…

2019-04-12T21:34:42.3780100Z ##[section]Starting: Submit to the App Store for review
2019-04-12T21:34:42.3786950Z ==============================================================================
2019-04-12T21:34:42.3787030Z Task         : Apple App Store Promote
2019-04-12T21:34:42.3787170Z Description  : Release a build from iTunes Connect to the Apple App Store
2019-04-12T21:34:42.3787240Z Version      : 1.147.0
2019-04-12T21:34:42.3787290Z Author       : Microsoft Corporation
2019-04-12T21:34:42.3787430Z Help         : [More Information](https://marketplace.visualstudio.com/items?itemName=ms-vsclient.app-store)
2019-04-12T21:34:42.3787500Z ==============================================================================
2019-04-12T21:34:43.0499000Z 7cd820dc-4190-4805-a4bb-4a7cbfe9987d exists true
2019-04-12T21:34:43.0503330Z [command]/usr/local/opt/ruby/bin/gem install fastlane
2019-04-12T21:35:12.9718890Z Successfully installed fastlane-2.120.0
2019-04-12T21:35:12.9719500Z Parsing documentation for fastlane-2.120.0
2019-04-12T21:35:12.9720210Z Installing ri documentation for fastlane-2.120.0
2019-04-12T21:35:12.9720300Z Done installing documentation for fastlane after 24 seconds
2019-04-12T21:35:12.9720450Z 1 gem installed
2019-04-12T21:35:13.0056490Z [command]/usr/local/opt/ruby/bin/gem update fastlane -i /Users/vsts/.gem-cache
2019-04-12T21:35:16.9637480Z Updating installed gems
2019-04-12T21:35:16.9638450Z Nothing to update
2019-04-12T21:35:17.6780830Z [command]fastlane deliver submit_build -u *** -a com.changesciences.chemistry --skip_binary_upload true --skip_metadata true --skip_screenshots true --automatic_release --force
2019-04-12T21:35:19.0682100Z [21:35:19]: ‌Get started using a Gemfile for fastlane https:&#x2F;&#x2F;docs.fastlane.tools&#x2F;getting-started&#x2F;ios&#x2F;setup&#x2F;#use-a-gemfile‌
2019-04-12T21:35:20.3624120Z [21:35:20]: Sending anonymous analytics information
2019-04-12T21:35:20.3624810Z [21:35:20]: Learn more at https://docs.fastlane.tools/#metrics
2019-04-12T21:35:20.3625410Z [21:35:20]: No personal or sensitive data is sent.
2019-04-12T21:35:20.3626580Z [21:35:20]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
2019-04-12T21:35:20.3852270Z [21:35:20]: Login to App Store Connect (***)
2019-04-12T21:35:22.8596490Z [21:35:22]: Login successful
2019-04-12T21:35:23.2593480Z 
2019-04-12T21:35:23.2673810Z +--------------------------------------+------------------------------+
2019-04-12T21:35:23.2693800Z |                       ‌deliver 2.120.0 Summary‌                       |‌
2019-04-12T21:35:23.2723930Z +--------------------------------------+------------------------------+
2019-04-12T21:35:23.2729210Z | username                             | ***        |
2019-04-12T21:35:23.2753430Z | app_identifier                       | com.changesciences.chemistry |
2019-04-12T21:35:23.2761680Z | skip_binary_upload                   | true                         |
2019-04-12T21:35:23.2770460Z | skip_metadata                        | true                         |
2019-04-12T21:35:23.2784100Z | skip_screenshots                     | true                         |
2019-04-12T21:35:23.2811360Z | automatic_release                    | true                         |
2019-04-12T21:35:23.2838280Z | force                                | true                         |
2019-04-12T21:35:23.2857040Z | submit_for_review                    | true                         |
2019-04-12T21:35:23.2861320Z | build_number                         | latest                       |
2019-04-12T21:35:23.2861850Z | screenshots_path                     | ./screenshots                |
2019-04-12T21:35:23.2862220Z | metadata_path                        | ./metadata                   |
2019-04-12T21:35:23.2862700Z | platform                             | ios                          |
2019-04-12T21:35:23.2863090Z | edit_live                            | false                        |
2019-04-12T21:35:23.2871910Z | use_live_version                     | false                        |
2019-04-12T21:35:23.2889430Z | skip_app_version_update              | false                        |
2019-04-12T21:35:23.2895220Z | overwrite_screenshots                | false                        |
2019-04-12T21:35:23.2911620Z | reject_if_possible                   | false                        |
2019-04-12T21:35:23.2912320Z | phased_release                       | false                        |
2019-04-12T21:35:23.2912830Z | reset_ratings                        | false                        |
2019-04-12T21:35:23.2913200Z | run_precheck_before_submit           | true                         |
2019-04-12T21:35:23.2913640Z | precheck_default_rule_level          | warn                         |
2019-04-12T21:35:23.2914680Z | individual_metadata_items            | []                           |
2019-04-12T21:35:23.2915060Z | ignore_language_directory_validation | false                        |
2019-04-12T21:35:23.2915540Z | precheck_include_in_app_purchases    | true                         |
2019-04-12T21:35:23.2916720Z +--------------------------------------+------------------------------+
2019-04-12T21:35:23.2917200Z 
2019-04-12T21:35:23.8064490Z [21:35:23]: Running precheck before submitting to review, if you'd like to disable this check you can set run_precheck_before_submit to false
2019-04-12T21:35:23.8079570Z [21:35:23]: Making sure we pass precheck 👮‍♀️ 👮 before we submit  🛫
2019-04-12T21:35:23.8112490Z 
2019-04-12T21:35:23.8115090Z +--------------------------+------------------------------+
2019-04-12T21:35:23.8121620Z |              ‌Summary for precheck 2.120.0‌               |‌
2019-04-12T21:35:23.8134050Z +--------------------------+------------------------------+
2019-04-12T21:35:23.8144730Z | default_rule_level       | warn                         |
2019-04-12T21:35:23.8145300Z | include_in_app_purchases | true                         |
2019-04-12T21:35:23.8148190Z | app_identifier           | com.changesciences.chemistry |
2019-04-12T21:35:23.8148650Z | username                 | ***        |
2019-04-12T21:35:23.8149360Z +--------------------------+------------------------------+
2019-04-12T21:35:23.8149460Z 
2019-04-12T21:35:23.8149620Z [21:35:23]: Checking app for precheck rule violations
2019-04-12T21:35:28.1948690Z [21:35:28]: Reading in-app purchases. If you have a lot, this might take a while
2019-04-12T21:35:28.1971180Z [21:35:28]: You can disable IAP checking by setting the `include_in_app_purchases` flag to `false`
2019-04-12T21:35:28.4200030Z [21:35:28]: Done reading in-app purchases
2019-04-12T21:35:28.7092120Z [21:35:28]: ✅  Passed: No negative  sentiment
2019-04-12T21:35:28.7117140Z [21:35:28]: ✅  Passed: No placeholder text
2019-04-12T21:35:28.7123700Z [21:35:28]: ✅  Passed: No mentioning  competitors
2019-04-12T21:35:28.7129860Z [21:35:28]: ✅  Passed: No future functionality promises
2019-04-12T21:35:28.7156930Z [21:35:28]: ✅  Passed: No words indicating test content
2019-04-12T21:35:28.7187630Z [21:35:28]: ✅  Passed: No curse words
2019-04-12T21:35:28.7230230Z [21:35:28]: ✅  Passed: No words indicating your IAP is free
2019-04-12T21:35:28.7257640Z [21:35:28]: ✅  Passed: Incorrect, or missing copyright date
2019-04-12T21:35:30.3669130Z [21:35:30]: ✅  Passed: No broken urls
2019-04-12T21:35:30.3679520Z [21:35:30]: ‌precheck 👮‍♀️ 👮  finished without detecting any potential problems 🛫‌
2019-04-12T21:35:30.7535850Z [21:35:30]: Selecting the latest build...
2019-04-12T21:35:33.1824850Z [21:35:33]: Selecting build 2.12.2 (39)...
2019-04-12T21:35:33.1954580Z 
2019-04-12T21:35:33.2028470Z Looking for related GitHub issues on fastlane/fastlane...
2019-04-12T21:35:33.2062400Z 
2019-04-12T21:35:34.3884840Z ➡️  ‌[deliver] submit_build, promote build to production: undefined method `select_build&#x27; for nil:NilClass‌
2019-04-12T21:35:34.3888030Z     https:&#x2F;&#x2F;github.com&#x2F;fastlane&#x2F;fastlane&#x2F;issues&#x2F;13809 [‌open‌] 20 💬‌
2019-04-12T21:35:34.3900100Z     a week ago
2019-04-12T21:35:34.3902490Z 
2019-04-12T21:35:34.3910960Z ➡️  ‌[spaceship] Uploading app trailer fails with NoMethodError‌
2019-04-12T21:35:34.3911940Z     https:&#x2F;&#x2F;github.com&#x2F;fastlane&#x2F;fastlane&#x2F;issues&#x2F;14020 [‌closed‌] 2 💬‌
2019-04-12T21:35:34.3914960Z     5 weeks ago
2019-04-12T21:35:34.3915450Z 
2019-04-12T21:35:34.3916380Z 🔗  You can ⌘ + double-click on links to open them directly in your browser.
2019-04-12T21:35:34.3917480Z &#x2F;Users&#x2F;vsts&#x2F;.gem-cache&#x2F;gems&#x2F;fastlane-2.120.0&#x2F;deliver&#x2F;lib&#x2F;deliver&#x2F;submit_for_review.rb:48:in `select_build&#x27;: ‌[!] undefined method `select_build&#x27; for nil:NilClass‌ (NoMethodError)‌
2019-04-12T21:35:34.3918440Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/submit_for_review.rb:7:in `submit!'
2019-04-12T21:35:34.3921330Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/runner.rb:172:in `submit_for_review'
2019-04-12T21:35:34.3933430Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/runner.rb:50:in `run'
2019-04-12T21:35:34.3934500Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/commands_generator.rb:94:in `block (2 levels) in run'
2019-04-12T21:35:34.3935180Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
2019-04-12T21:35:34.3940040Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
2019-04-12T21:35:34.3956060Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
2019-04-12T21:35:34.3961530Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
2019-04-12T21:35:34.3977390Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
2019-04-12T21:35:34.3978450Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/commands_generator.rb:182:in `run'
2019-04-12T21:35:34.3979500Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/commands_generator.rb:17:in `start'
2019-04-12T21:35:34.3983330Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
2019-04-12T21:35:34.3984530Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/bin/fastlane:23:in `<top (required)>'
2019-04-12T21:35:34.3985420Z 	from /usr/local/lib/ruby/gems/2.6.0/bin/fastlane:23:in `load'
2019-04-12T21:35:34.3986310Z 	from /usr/local/lib/ruby/gems/2.6.0/bin/fastlane:23:in `<main>'
2019-04-12T21:35:34.3989200Z /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/submit_for_review.rb:48:in `select_build': undefined method `select_build' for nil:NilClass (NoMethodError)
2019-04-12T21:35:34.3990460Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/submit_for_review.rb:7:in `submit!'
2019-04-12T21:35:34.3992150Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/runner.rb:172:in `submit_for_review'
2019-04-12T21:35:34.3993270Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/runner.rb:50:in `run'
2019-04-12T21:35:34.3994330Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/commands_generator.rb:94:in `block (2 levels) in run'
2019-04-12T21:35:34.3995370Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
2019-04-12T21:35:34.3996400Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
2019-04-12T21:35:34.3997420Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
2019-04-12T21:35:34.3998540Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
2019-04-12T21:35:34.4000160Z 	from /usr/local/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
2019-04-12T21:35:34.4001930Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/commands_generator.rb:182:in `run'
2019-04-12T21:35:34.4003550Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/deliver/lib/deliver/commands_generator.rb:17:in `start'
2019-04-12T21:35:34.4005870Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in `take_off'
2019-04-12T21:35:34.4007450Z 	from /Users/vsts/.gem-cache/gems/fastlane-2.120.0/bin/fastlane:23:in `<top (required)>'
2019-04-12T21:35:34.4009090Z 	from /usr/local/lib/ruby/gems/2.6.0/bin/fastlane:23:in `load'
2019-04-12T21:35:34.4010710Z 	from /usr/local/lib/ruby/gems/2.6.0/bin/fastlane:23:in `<main>'
2019-04-12T21:35:34.4408960Z ##[error]Error: fastlane failed with return code: 1
2019-04-12T21:35:34.4423250Z ##[section]Finishing: Submit to the App Store for review

@janpio, unfortunately my project is not public. However, below is a complete log. I hope it helps. Thanks

2018-12-10T12:42:57.5441590Z ##[debug]Evaluating: succeeded()
2018-12-10T12:42:57.5441890Z ##[debug]Evaluating succeeded:
2018-12-10T12:42:57.5442510Z ##[debug]=> True
2018-12-10T12:42:57.5442930Z ##[debug]Result: True
2018-12-10T12:42:57.5443460Z ##[section]Starting: Submit to the App Store for review
2018-12-10T12:42:57.5454130Z ==============================================================================
2018-12-10T12:42:57.5454250Z Task         : Apple App Store Promote
2018-12-10T12:42:57.5454330Z Description  : Release a build from iTunes Connect to the Apple App Store
2018-12-10T12:42:57.5454410Z Version      : 1.126.0
2018-12-10T12:42:57.5454480Z Author       : Microsoft Corporation
2018-12-10T12:42:57.5454630Z Help         : [More Information](https://marketplace.visualstudio.com/items?itemName=ms-vsclient.app-store)
2018-12-10T12:42:57.5454740Z ==============================================================================
2018-12-10T12:42:58.1227480Z ##[debug]agent.workFolder=/Users/vsts/agent/2.144.0/work
2018-12-10T12:42:58.1255020Z ##[debug]loading inputs and endpoints
2018-12-10T12:42:58.1262080Z ##[debug]loading INPUT_AUTHTYPE
2018-12-10T12:42:58.1280260Z ##[debug]loading INPUT_SERVICEENDPOINT
2018-12-10T12:42:58.1282730Z ##[debug]loading INPUT_ISTWOFACTORAUTH
2018-12-10T12:42:58.1283810Z ##[debug]loading INPUT_APPIDENTIFIER
2018-12-10T12:42:58.1285110Z ##[debug]loading INPUT_CHOOSEBUILD
2018-12-10T12:42:58.1286250Z ##[debug]loading INPUT_SHOULDAUTORELEASE
2018-12-10T12:42:58.1287770Z ##[debug]loading INPUT_INSTALLFASTLANE
2018-12-10T12:42:58.1288800Z ##[debug]loading INPUT_FASTLANETOOLSVERSION
2018-12-10T12:42:58.1290980Z ##[debug]loading ENDPOINT_AUTH_20231fe5-fbe4-4f6d-904d-a7d48d979363
2018-12-10T12:42:58.1291650Z ##[debug]loading ENDPOINT_AUTH_SCHEME_20231fe5-fbe4-4f6d-904d-a7d48d979363
2018-12-10T12:42:58.1292710Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_20231fe5-fbe4-4f6d-904d-a7d48d979363_USERNAME
2018-12-10T12:42:58.1293980Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_20231fe5-fbe4-4f6d-904d-a7d48d979363_PASSWORD
2018-12-10T12:42:58.1294810Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-12-10T12:42:58.1296460Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-12-10T12:42:58.1297400Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-12-10T12:42:58.1303390Z ##[debug]loaded 15
2018-12-10T12:42:58.1328490Z ##[debug]check path : /Users/vsts/agent/2.144.0/work/_tasks/AppStorePromote_cbbf7f14-c386-4c1f-80a3-fe500e2bd976/1.126.0/task.json
2018-12-10T12:42:58.1329820Z ##[debug]set resource file to: /Users/vsts/agent/2.144.0/work/_tasks/AppStorePromote_cbbf7f14-c386-4c1f-80a3-fe500e2bd976/1.126.0/task.json
2018-12-10T12:42:58.1330510Z ##[debug]system.culture=en-US
2018-12-10T12:42:58.1346030Z ##[debug]Reading all inputs...
2018-12-10T12:42:58.1353580Z ##[debug]authType=ServiceEndpoint
2018-12-10T12:42:58.1357720Z ##[debug]serviceEndpoint=20231fe5-fbe4-4f6d-904d-a7d48d979363
2018-12-10T12:42:58.1387110Z 20231fe5-fbe4-4f6d-904d-a7d48d979363 exists true
2018-12-10T12:42:58.1387720Z ##[debug]20231fe5-fbe4-4f6d-904d-a7d48d979363 exists true
2018-12-10T12:42:58.1388180Z ##[debug]appIdentifier=br.com.trademarketingforce.biodrogas.a2018.trade
2018-12-10T12:42:58.1389620Z ##[debug]chooseBuild=Latest
2018-12-10T12:42:58.1389890Z ##[debug]buildNumber=null
2018-12-10T12:42:58.1391680Z ##[debug]shouldAutoRelease=true
2018-12-10T12:42:58.1391870Z ##[debug]teamId=null
2018-12-10T12:42:58.1392110Z ##[debug]teamName=null
2018-12-10T12:42:58.1393340Z ##[debug]installFastlane=false
2018-12-10T12:42:58.1394240Z ##[debug]fastlaneToolsVersion=LatestVersion
2018-12-10T12:42:58.1395200Z ##[debug]fastlaneArguments=null
2018-12-10T12:42:58.1395610Z ##[debug]Read all inputs.
2018-12-10T12:42:58.1396120Z ##[debug]GEM_CACHE=undefined
2018-12-10T12:42:58.1396880Z ##[debug]gemCache=/Users/vsts/.gem-cache
2018-12-10T12:42:58.1397160Z ##[debug]Checking for ruby install...
2018-12-10T12:42:58.1479110Z ##[debug]check path : /usr/bin/ruby
2018-12-10T12:42:58.1479730Z ##[debug]ruby=/usr/bin/ruby
2018-12-10T12:42:58.1488810Z ##[debug]Skipped fastlane installation.
2018-12-10T12:42:58.1494500Z ##[debug]fastlane arg: ["deliver","submit_build","-u","***","-a","br.com.trademarketingforce.biodrogas.a2018.trade"]
2018-12-10T12:42:58.1495120Z ##[debug]fastlane arg: ["--skip_binary_upload","true","--skip_metadata","true","--skip_screenshots","true"]
2018-12-10T12:42:58.1496710Z ##[debug]fastlane arg: --automatic_release
2018-12-10T12:42:58.1498300Z ##[debug]fastlane arg: --force
2018-12-10T12:42:58.1504470Z ##[debug]exec tool: fastlane
2018-12-10T12:42:58.1504730Z ##[debug]Arguments:
2018-12-10T12:42:58.1505040Z ##[debug]   deliver
2018-12-10T12:42:58.1505410Z ##[debug]   submit_build
2018-12-10T12:42:58.1505980Z ##[debug]   -u
2018-12-10T12:42:58.1506280Z ##[debug]   ***
2018-12-10T12:42:58.1506790Z ##[debug]   -a
2018-12-10T12:42:58.1507020Z ##[debug]   br.com.trademarketingforce.biodrogas.a2018.trade
2018-12-10T12:42:58.1507470Z ##[debug]   --skip_binary_upload
2018-12-10T12:42:58.1507760Z ##[debug]   true
2018-12-10T12:42:58.1508240Z ##[debug]   --skip_metadata
2018-12-10T12:42:58.1508480Z ##[debug]   true
2018-12-10T12:42:58.1508970Z ##[debug]   --skip_screenshots
2018-12-10T12:42:58.1509180Z ##[debug]   true
2018-12-10T12:42:58.1509660Z ##[debug]   --automatic_release
2018-12-10T12:42:58.1510090Z ##[debug]   --force
2018-12-10T12:42:58.1510940Z [command]fastlane deliver submit_build -u *** -a br.com.trademarketingforce.biodrogas.a2018.trade --skip_binary_upload true --skip_metadata true --skip_screenshots true --automatic_release --force
2018-12-10T12:42:59.9665320Z [12:42:59]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
2018-12-10T12:43:00.4680310Z [12:43:00]: Sending anonymous analytics information
2018-12-10T12:43:00.4681020Z [12:43:00]: Learn more at https://docs.fastlane.tools/#metrics
2018-12-10T12:43:00.4683040Z [12:43:00]: No personal or sensitive data is sent.
2018-12-10T12:43:00.4683970Z [12:43:00]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
2018-12-10T12:43:00.4837160Z [12:43:00]: Login to App Store Connect (***)
2018-12-10T12:43:02.5195860Z [12:43:02]: Login successful
2018-12-10T12:43:03.3764720Z 
2018-12-10T12:43:03.3833490Z +--------------------------------------+--------------------------------------------------+
2018-12-10T12:43:03.3834440Z |                                 deliver 2.108.0 Summary                                 |
2018-12-10T12:43:03.3835230Z +--------------------------------------+--------------------------------------------------+
2018-12-10T12:43:03.3835450Z | username                             | ***                      |
2018-12-10T12:43:03.3835640Z | app_identifier                       | br.com.trademarketingforce.biodrogas.a2018.trade |
2018-12-10T12:43:03.3835810Z | skip_binary_upload                   | true                                             |
2018-12-10T12:43:03.3836270Z | skip_metadata                        | true                                             |
2018-12-10T12:43:03.3836460Z | skip_screenshots                     | true                                             |
2018-12-10T12:43:03.3836570Z | automatic_release                    | true                                             |
2018-12-10T12:43:03.3836750Z | force                                | true                                             |
2018-12-10T12:43:03.3836930Z | submit_for_review                    | true                                             |
2018-12-10T12:43:03.3837040Z | build_number                         | latest                                           |
2018-12-10T12:43:03.3837210Z | screenshots_path                     | ./screenshots                                    |
2018-12-10T12:43:03.3837490Z | metadata_path                        | ./metadata                                       |
2018-12-10T12:43:03.3837680Z | platform                             | ios                                              |
2018-12-10T12:43:03.3838110Z | edit_live                            | false                                            |
2018-12-10T12:43:03.3838230Z | use_live_version                     | false                                            |
2018-12-10T12:43:03.3838410Z | skip_app_version_update              | false                                            |
2018-12-10T12:43:03.3838520Z | overwrite_screenshots                | false                                            |
2018-12-10T12:43:03.3838700Z | reject_if_possible                   | false                                            |
2018-12-10T12:43:03.3838800Z | phased_release                       | false                                            |
2018-12-10T12:43:03.3838980Z | run_precheck_before_submit           | true                                             |
2018-12-10T12:43:03.3839150Z | precheck_default_rule_level          | warn                                             |
2018-12-10T12:43:03.3839310Z | ignore_language_directory_validation | false                                            |
2018-12-10T12:43:03.3839490Z | precheck_include_in_app_purchases    | true                                             |
2018-12-10T12:43:03.3840180Z +--------------------------------------+--------------------------------------------------+
2018-12-10T12:43:03.3840270Z 
2018-12-10T12:43:04.2197360Z [12:43:04]: Running precheck before submitting to review, if you'd like to disable this check you can set run_precheck_before_submit to false
2018-12-10T12:43:04.2198230Z [12:43:04]: Making sure we pass precheck 👮‍♀️ 👮 before we submit  🛫
2018-12-10T12:43:04.2206980Z 
2018-12-10T12:43:04.2223540Z +--------------------------+--------------------------------------------------+
2018-12-10T12:43:04.2224390Z |                        Summary for precheck 2.108.0                         |
2018-12-10T12:43:04.2224950Z +--------------------------+--------------------------------------------------+
2018-12-10T12:43:04.2225210Z | default_rule_level       | warn                                             |
2018-12-10T12:43:04.2225380Z | include_in_app_purchases | true                                             |
2018-12-10T12:43:04.2225490Z | app_identifier           | br.com.trademarketingforce.biodrogas.a2018.trade |
2018-12-10T12:43:04.2225760Z | username                 | ***                      |
2018-12-10T12:43:04.2226320Z +--------------------------+--------------------------------------------------+
2018-12-10T12:43:04.2226480Z 
2018-12-10T12:43:04.2226590Z [12:43:04]: Checking app for precheck rule violations
2018-12-10T12:43:08.4026300Z [12:43:08]: Reading in-app purchases. If you have a lot, this might take a while
2018-12-10T12:43:08.4026600Z [12:43:08]: You can disable IAP checking by setting the `include_in_app_purchases` flag to `false`
2018-12-10T12:43:08.9117820Z [12:43:08]: Done reading in-app purchases
2018-12-10T12:43:09.1670700Z [12:43:09]: ✅  Passed: No negative  sentiment
2018-12-10T12:43:09.1673720Z [12:43:09]: ✅  Passed: No placeholder text
2018-12-10T12:43:09.1675710Z [12:43:09]: ✅  Passed: No mentioning  competitors
2018-12-10T12:43:09.1678290Z [12:43:09]: ✅  Passed: No future functionality promises
2018-12-10T12:43:09.1680660Z [12:43:09]: ✅  Passed: No words indicating test content
2018-12-10T12:43:09.1727430Z [12:43:09]: ✅  Passed: No curse words
2018-12-10T12:43:09.1729830Z [12:43:09]: ✅  Passed: No words indicating your IAP is free
2018-12-10T12:43:09.1738590Z [12:43:09]: ✅  Passed: Incorrect, or missing copyright date
2018-12-10T12:43:10.4582090Z [12:43:10]: ✅  Passed: No broken urls
2018-12-10T12:43:10.4583250Z [12:43:10]: precheck 👮‍♀️ 👮  finished without detecting any potential problems 🛫
2018-12-10T12:43:14.0712940Z [12:43:14]: Selecting the latest build...
2018-12-10T12:43:16.2804230Z [12:43:16]: Selecting build 1.2.13 (157)...
2018-12-10T12:43:16.2939850Z 
2018-12-10T12:43:16.2940710Z Looking for related GitHub issues on fastlane/fastlane...
2018-12-10T12:43:16.2941400Z 
2018-12-10T12:43:16.4936960Z ➡️  undefined method `select_build' for nil:NilClass
2018-12-10T12:43:16.4937820Z     https://github.com/fastlane/fastlane/issues/13809 [open] 8 💬
2018-12-10T12:43:16.4949590Z     3 days ago
2018-12-10T12:43:16.4949830Z 
2018-12-10T12:43:16.4953750Z 🔗  You can ⌘ + double-click on links to open them directly in your browser.
2018-12-10T12:43:16.4956510Z 
2018-12-10T12:43:16.4957590Z #######################################################################
2018-12-10T12:43:16.4957830Z # fastlane 2.109.1 is available. You are on 2.108.0.
2018-12-10T12:43:16.4957920Z # You should use the latest version.
2018-12-10T12:43:16.4958090Z # Please update using `sudo gem install fastlane`.
2018-12-10T12:43:16.4958250Z #######################################################################
2018-12-10T12:43:16.9537580Z /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:48:in `select_build': [!] undefined method `select_build' for nil:NilClass (NoMethodError)
2018-12-10T12:43:16.9538600Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:7:in `submit!'
2018-12-10T12:43:16.9539330Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:172:in `submit_for_review'
2018-12-10T12:43:16.9539920Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:50:in `run'
2018-12-10T12:43:16.9540620Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:94:in `block (2 levels) in run'
2018-12-10T12:43:16.9541280Z 	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
2018-12-10T12:43:16.9541880Z 	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
2018-12-10T12:43:16.9542560Z 	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
2018-12-10T12:43:16.9543190Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
2018-12-10T12:43:16.9543890Z 	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
2018-12-10T12:43:16.9544550Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:182:in `run'
2018-12-10T12:43:16.9545170Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:17:in `start'
2018-12-10T12:43:16.9545860Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/cli_tools_distributor.rb:100:in `take_off'
2018-12-10T12:43:16.9546440Z 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.108.0/bin/fastlane:23:in `<top (required)>'
2018-12-10T12:43:16.9547060Z 	from /usr/local/bin/fastlane:22:in `load'
2018-12-10T12:43:16.9547650Z 	from /usr/local/bin/fastlane:22:in `<main>'
2018-12-10T12:43:17.0028420Z ##[debug]rc:1
2018-12-10T12:43:17.0029130Z ##[debug]success:false
2018-12-10T12:43:17.0058920Z ##[debug]task result: Failed
2018-12-10T12:43:17.0133930Z ##[error]Error: fastlane failed with return code: 1
2018-12-10T12:43:17.0145330Z ##[debug]Processed: ##vso[task.issue type=error;]Error: fastlane failed with return code: 1
2018-12-10T12:43:17.0168200Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: fastlane failed with return code: 1
2018-12-10T12:43:17.0189910Z ##[section]Finishing: Submit to the App Store for review

@guilhermebresser This is the same component I’m using, and it’s acting the same whether I run it through Azure DevOps, or the Mac terminal.

Here’s the Azure DevOps output:

2018-12-04T13:31:55.6535260Z ##[section]Starting: Submit to the App Store for review
2018-12-04T13:31:55.6643490Z ==============================================================================
2018-12-04T13:31:55.6668910Z Task         : Apple App Store Promote
2018-12-04T13:31:55.6692970Z Description  : Release a build from iTunes Connect to the Apple App Store
2018-12-04T13:31:55.6716870Z Version      : 1.126.0
2018-12-04T13:31:55.6740520Z Author       : Microsoft Corporation
2018-12-04T13:31:55.6766720Z Help         : [More Information](https://marketplace.visualstudio.com/items?itemName=ms-vsclient.app-store)
2018-12-04T13:31:55.6792650Z ==============================================================================
2018-12-04T13:31:57.0044260Z 56063878-facd-45bd-931a-0f7c9403a8bd exists true
2018-12-04T13:31:57.0426390Z [command]/usr/local/bin/gem install fastlane
2018-12-04T13:31:57.0463330Z Ignoring bootsnap-1.3.2 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.2
2018-12-04T13:31:57.0491160Z Ignoring msgpack-1.2.4 because its extensions are not built. Try: gem pristine msgpack --version 1.2.4
2018-12-04T13:32:09.2982020Z Successfully installed fastlane-2.108.0
2018-12-04T13:32:09.3008860Z Parsing documentation for fastlane-2.108.0
2018-12-04T13:32:09.3035910Z Done installing documentation for fastlane after 9 seconds
2018-12-04T13:32:09.3061940Z 1 gem installed
2018-12-04T13:32:09.3470090Z [command]/usr/local/bin/gem update fastlane -i /Users/Falgantil/.gem-cache
2018-12-04T13:32:09.5040320Z Ignoring bootsnap-1.3.2 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.2
2018-12-04T13:32:09.5083120Z Ignoring msgpack-1.2.4 because its extensions are not built. Try: gem pristine msgpack --version 1.2.4
2018-12-04T13:32:12.0430480Z Updating installed gems
2018-12-04T13:32:12.0454420Z Nothing to update
2018-12-04T13:32:12.1093840Z [command]fastlane deliver submit_build -u *** -a PACKAGE_ID --skip_binary_upload true --skip_metadata true --skip_screenshots true --automatic_release -k TEAM_ID --force --itc_provider="ITC_PROVIDER"
2018-12-04T13:32:12.7046750Z Ignoring bootsnap-1.3.2 because its extensions are not built. Try: gem pristine bootsnap --version 1.3.2
2018-12-04T13:32:12.7100070Z Ignoring msgpack-1.2.4 because its extensions are not built. Try: gem pristine msgpack --version 1.2.4
2018-12-04T13:32:13.1762030Z [14:32:13]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
2018-12-04T13:32:13.5415920Z [14:32:13]: Login to App Store Connect (***)
2018-12-04T13:32:15.8481930Z [14:32:15]: Login successful
2018-12-04T13:32:16.6091100Z 
2018-12-04T13:32:16.6138050Z +--------------------------------------+--------------------+
2018-12-04T13:32:16.6166340Z |                  deliver 2.108.0 Summary                  |
2018-12-04T13:32:16.6193080Z +--------------------------------------+--------------------+
2018-12-04T13:32:16.6218440Z | username                             | ***     |
2018-12-04T13:32:16.6243640Z | app_identifier                       | PACKAGE_ID         |
2018-12-04T13:32:16.6267990Z | skip_binary_upload                   | true               |
2018-12-04T13:32:16.6294910Z | skip_metadata                        | true               |
2018-12-04T13:32:16.6319320Z | skip_screenshots                     | true               |
2018-12-04T13:32:16.6343620Z | automatic_release                    | true               |
2018-12-04T13:32:16.6367920Z | team_id                              | TEAM_ID            |
2018-12-04T13:32:16.6392220Z | force                                | true               |
2018-12-04T13:32:16.6416500Z | itc_provider                         | ITC_PROVIDER       |
2018-12-04T13:32:16.6442160Z | submit_for_review                    | true               |
2018-12-04T13:32:16.6466690Z | build_number                         | latest             |
2018-12-04T13:32:16.6491150Z | screenshots_path                     | ./screenshots      |
2018-12-04T13:32:16.6515520Z | metadata_path                        | ./metadata         |
2018-12-04T13:32:16.6541160Z | platform                             | ios                |
2018-12-04T13:32:16.6565500Z | edit_live                            | false              |
2018-12-04T13:32:16.6589930Z | use_live_version                     | false              |
2018-12-04T13:32:16.6614380Z | skip_app_version_update              | false              |
2018-12-04T13:32:16.6638770Z | overwrite_screenshots                | false              |
2018-12-04T13:32:16.6663190Z | reject_if_possible                   | false              |
2018-12-04T13:32:16.6687570Z | phased_release                       | false              |
2018-12-04T13:32:16.6712800Z | run_precheck_before_submit           | true               |
2018-12-04T13:32:16.6737970Z | precheck_default_rule_level          | warn               |
2018-12-04T13:32:16.6764510Z | ignore_language_directory_validation | false              |
2018-12-04T13:32:16.6789020Z | precheck_include_in_app_purchases    | true               |
2018-12-04T13:32:16.6814920Z +--------------------------------------+--------------------+
2018-12-04T13:32:16.6828280Z 
2018-12-04T13:32:17.6783150Z [14:32:17]: Running precheck before submitting to review, if you'd like to disable this check you can set run_precheck_before_submit to false
2018-12-04T13:32:17.6814360Z [14:32:17]: Making sure we pass precheck 👮‍♀️ 👮 before we submit  🛫
2018-12-04T13:32:17.6828000Z 
2018-12-04T13:32:17.6853200Z +--------------------------+--------------------+
2018-12-04T13:32:17.6879810Z |         Summary for precheck 2.108.0          |
2018-12-04T13:32:17.6906360Z +--------------------------+--------------------+
2018-12-04T13:32:17.6931590Z | default_rule_level       | warn               |
2018-12-04T13:32:17.6955740Z | include_in_app_purchases | true               |
2018-12-04T13:32:17.6979890Z | app_identifier           | PACKAGE_ID         |
2018-12-04T13:32:17.7004090Z | username                 | ***     |
2018-12-04T13:32:17.7029550Z +--------------------------+--------------------+
2018-12-04T13:32:17.7042810Z 
2018-12-04T13:32:17.7066620Z [14:32:17]: Checking app for precheck rule violations
2018-12-04T13:32:26.1517530Z [14:32:26]: Reading in-app purchases. If you have a lot, this might take a while
2018-12-04T13:32:26.1543490Z [14:32:26]: You can disable IAP checking by setting the `include_in_app_purchases` flag to `false`
2018-12-04T13:32:26.5910990Z [14:32:26]: Done reading in-app purchases
2018-12-04T13:32:27.1982640Z [14:32:27]: ✅  Passed: No negative  sentiment
2018-12-04T13:32:27.2009500Z [14:32:27]: ✅  Passed: No placeholder text
2018-12-04T13:32:27.2039700Z [14:32:27]: ✅  Passed: No mentioning  competitors
2018-12-04T13:32:27.2069740Z [14:32:27]: ✅  Passed: No future functionality promises
2018-12-04T13:32:27.2098170Z [14:32:27]: ✅  Passed: No words indicating test content
2018-12-04T13:32:27.2124930Z [14:32:27]: ✅  Passed: No curse words
2018-12-04T13:32:27.2151610Z [14:32:27]: ✅  Passed: No words indicating your IAP is free
2018-12-04T13:32:27.2180760Z [14:32:27]: ✅  Passed: Incorrect, or missing copyright date
2018-12-04T13:32:35.1074920Z [14:32:35]: ✅  Passed: No broken urls
2018-12-04T13:32:35.1102200Z [14:32:35]: precheck 👮‍♀️ 👮  finished without detecting any potential problems 🛫
2018-12-04T13:32:36.0809720Z [14:32:36]: Selecting the latest build...
2018-12-04T13:32:41.7607490Z [14:32:41]: Selecting build 3.2.2 (3.2.2.161)...
2018-12-04T13:32:41.7654230Z 
2018-12-04T13:32:41.7682240Z Looking for related GitHub issues on fastlane/fastlane...
2018-12-04T13:32:41.7694560Z 
2018-12-04T13:32:42.3141250Z Found no similar issues. To create a new issue, please visit:
2018-12-04T13:32:42.3168430Z https://github.com/fastlane/fastlane/issues/new
2018-12-04T13:32:42.3192980Z Run `fastlane env` to append the fastlane environment to your issue
2018-12-04T13:32:42.3220510Z /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:48:in `select_build': [!] undefined method `select_build' for nil:NilClass (NoMethodError)
2018-12-04T13:32:42.3250210Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:7:in `submit!'
2018-12-04T13:32:42.3277940Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:172:in `submit_for_review'
2018-12-04T13:32:42.3305380Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:50:in `run'
2018-12-04T13:32:42.3340790Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:94:in `block (2 levels) in run'
2018-12-04T13:32:42.3393180Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
2018-12-04T13:32:42.3446250Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
2018-12-04T13:32:42.3503690Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
2018-12-04T13:32:42.3557200Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
2018-12-04T13:32:42.3585900Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
2018-12-04T13:32:42.3613330Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:182:in `run'
2018-12-04T13:32:42.3642090Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:17:in `start'
2018-12-04T13:32:42.3669990Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/fastlane/lib/fastlane/cli_tools_distributor.rb:100:in `take_off'
2018-12-04T13:32:42.3697560Z 	from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/bin/fastlane:23:in `<top (required)>'
2018-12-04T13:32:42.3724450Z 	from /usr/local/bin/fastlane:23:in `load'
2018-12-04T13:32:42.3751240Z 	from /usr/local/bin/fastlane:23:in `<main>'
2018-12-04T13:32:42.3935140Z ##[error]Error: fastlane failed with return code: 1
2018-12-04T13:32:42.5555510Z ##[section]Finishing: Submit to the App Store for review

It might be worth noting that when run through Azure, the Username gets “star”'ed out (most likely for security-purposes. However the result is the same when I run said commands, with the real username.

I use Azure DevOps and the component that promotes the app to production has this same problem.

https://marketplace.visualstudio.com/items?itemName=ms-vsclient.app-store