fastlane: [deliver] submit_build, promote build to production: undefined method `select_build' for nil:NilClass
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
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_purchasesflag tofalse[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 envto 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:inload’ 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:intake_off’ 11: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:17:instart' 10: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:182:inrun’ 9: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!' 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:inrun!’ 7: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command' 6: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:inrun’ 5: from /usr/local/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall' 4: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/commands_generator.rb:94:inblock (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:inrun' 2: from /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/runner.rb:172:insubmit_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:insubmit!' /usr/local/lib/ruby/gems/2.5.0/gems/fastlane-2.108.0/deliver/lib/deliver/submit_for_review.rb:48:inselect_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)
Reopening this because I want to fight @fastlane-bot 😉
I am facing this problem on latest Fastlane.
Quick update: This issue is still present in the latest release
Here’s what I have a month later. Still same issue sadly…
@janpio, unfortunately my project is not public. However, below is a complete log. I hope it helps. Thanks
@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:
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