fastlane: "Could not find any available candidate builds on iTunes Connect to submit" when uploading and submitting a new binary
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
When submitting a new iOS binary for review, the binary upload succeeds but the submission fails with Could not find any available candidate builds on iTunes Connect to submit. If there are older builds that have been uploaded previously but not submitted, deliver picks one of those and submits it instead of the one that was just uploaded. This fastlane output doesn’t include that as no old builds were sitting around unsubmitted.
Random shot in the dark as to a possible cause is that our visible version label (1.100.0) differs from the build number of the binary (100.12.0).
$ fastlane ios publish
[16:43:47]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[16:43:49]: -----------------------------
[16:43:49]: --- Step: update_fastlane ---
[16:43:49]: -----------------------------
[16:43:49]: Looking for updates for fastlane...
[16:43:55]: Nothing to update
[16:43:55]:
[16:43:55]: Please help us test early releases of fastlane by opting into nightly builds
[16:43:55]: Just replace your `update_fastlane` call with
[16:43:55]:
[16:43:55]: update_fastlane(nightly: true)
[16:43:55]:
[16:43:55]: Nightly builds are reviewed and tested just like the public releases
[16:43:55]:
[16:43:55]: -------------------
[16:43:55]: --- Step: is_ci ---
[16:43:55]: -------------------
[16:43:55]: -------------------------------------------------
[16:43:55]: --- Step: Verifying required fastlane version ---
[16:43:55]: -------------------------------------------------
[16:43:55]: Your fastlane version 2.59.0 matches the minimum requirement of 2.57.0
[16:43:55]: ------------------------------
[16:43:55]: --- Step: default_platform ---
[16:43:55]: ------------------------------
[16:43:55]: Driving the lane 'ios publish'
[16:43:55]: ---------------------
[16:43:55]: --- Step: deliver ---
[16:43:55]: ---------------------
[16:43:56]: Successfully loaded '/path/to/project/fastlane/Deliverfile
+--------------------+--------------------------+
| Detected Values from './fastlane/Deliverfile' |
+--------------------+--------------------------+
| username | dev@companyxyz1.com |
| team_id | 12345ASDFJ |
| copyright | 2017-2017 Acme Co, Inc. |
+--------------------+--------------------------+
[16:43:56]: Running precheck before submitting to review, if you'd like to disable this check you can set run_precheck_before_submit to false
[16:43:56]: Login to iTunes Connect (dev@companyxyz1.com)
[16:43:58]: Login successful
+--------------------------------------+--------------------------+
| deliver 2.59.0 Summary |
+--------------------------------------+--------------------------+
| ipa | out/my.ipa |
| force | true |
| submit_for_review | true |
| automatic_release | true |
| skip_metadata | false |
| skip_screenshots | true |
| skip_binary_upload | false |
| ignore_language_directory_validatio | true |
| n | |
| username | dev@companyxyz1.com |
| team_id | 12345ASDFJ |
| copyright | 2017-2017 Acme Co, Inc. |
| screenshots_path | ./fastlane/screenshots |
| metadata_path | ./fastlane/metadata |
| app_version | 1.100.0 |
| app_identifier | com.my.app |
| edit_live | false |
| platform | ios |
| skip_app_version_update | false |
| dev_portal_team_id | 12345ASDFJ |
| overwrite_screenshots | false |
| run_precheck_before_submit | true |
| precheck_default_rule_level | warn |
+--------------------------------------+--------------------------+
[16:43:58]: Making sure the latest version on iTunes Connect matches '1.100.0' from the ipa file...
[16:44:05]: '1.100.0' is the latest version on iTunes Connect
[16:44:05]: Loading './fastlane/metadata/default/release_notes.txt'...
[16:44:05]: Loading './fastlane/metadata/en-US/name.txt'...
<other locales ommitted for brevity>
[16:44:11]: Uploading metadata to iTunes Connect
When you create a new app name or update an existing one, it must now be 30 characters or fewer. Also, you can only update an app’s description when submitting ersion of that app. <a href="https://developer.apple.com/app-store/product-page/" target="_blank">Learn more</a>
[16:44:13]: Successfully uploaded set of metadata to iTunes Connect
[16:44:14]: Uploading binary to iTunes Connect
[16:44:15]: Going to upload updated app to iTunes Connect
[16:44:15]: This might take a few minutes. Please don't interrupt the script.
[16:44:42]: iTunes Transporter successfully finished its job
[16:44:42]: --------------------------------------------------------------------
[16:44:42]: Successfully uploaded package to iTunes Connect. It might take a few minutes until it's visible online.
[16:44:42]: --------------------------------------------------------------------
[16:44:42]: Finished the upload to iTunes Connect
[16:44:42]: Making sure we pass precheck before we submit
+--------------------------+-------------------------+
| Summary for precheck 2.59.0 |
+--------------------------+-------------------------+
| default_rule_level | warn |
| app_identifier | com.my.app |
| username | dev@companyxyz1.com |
| include_in_app_purchases | true |
+--------------------------+-------------------------+
[16:44:42]: Checking app for precheck rule violations
[16:45:05]: Reading in-app purchases. If you have a lot, this might take a while
[16:45:05]: You can disable IAP checking by setting the `include_in_app_purchases` flag to `false`
[16:45:27]: Done reading in-app purchases
[16:45:28]: ✅ Passed: No negative  sentiment
[16:45:28]: ✅ Passed: No placeholder text
[16:45:28]: ✅ Passed: No mentioning  competitors
[16:45:28]: ✅ Passed: No future functionality promises
[16:45:28]: ✅ Passed: No words indicating test content
[16:45:28]: ✅ Passed: No curse words
[16:45:28]: ✅ Passed: No words indicating your IAP is free
[16:45:28]: ✅ Passed: Incorrect, or missing copyright date
[16:45:44]: ✅ Passed: No broken urls
[16:45:44]: precheck finished without detecting any potential problems
[16:45:45]: Selecting the latest build...
[16:45:47]: Waiting iTunes Connect processing for build 1.100.0 (100.12.0)... this might take a while...
+------------------+-------------+
| Lane Context |
+------------------+-------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios publish |
+------------------+-------------+
[16:46:19]: Could not find any available candidate builds on iTunes Connect to submit
+------+---------------------+-------------+
| fastlane summary |
+------+---------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------+-------------+
| 1 | update_fastlane | 6 |
| 2 | is_ci | 0 |
| 3 | Verifying required | 0 |
| | fastlane version | |
| 4 | default_platform | 0 |
| * | deliver | 142 |
+------+---------------------+-------------+
[16:46:19]: fastlane finished with errors
Environment
✅ fastlane environment ✅
Stack
| Key | Value |
|---|---|
| OS | 10.12.6 |
| Ruby | 2.2.4 |
| Bundler? | false |
| Git | git version 2.13.5 (Apple Git-94) |
| Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
| Host | Mac OS X 10.12.6 (16G29) |
| Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
| OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
| Is contained | false |
| Is homebrew | true |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 9.0 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | en_US.UTF-8 | ✅ |
| LANGUAGE | en_US.UTF-8 | ✅ |
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.59.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| slack-notifier | 1.5.1 |
| CFPropertyList | 2.3.5 |
| claide | 1.0.2 |
| colored2 | 3.1.2 |
| nanaimo | 0.2.3 |
| xcodeproj | 1.5.1 |
| rouge | 1.11.1 |
| xcpretty | 0.2.6 |
| terminal-notifier | 1.7.1 |
| unicode-display_width | 1.1.3 |
| terminal-table | 1.7.3 |
| plist | 3.2.0 |
| public_suffix | 2.0.5 |
| addressable | 2.5.1 |
| multipart-post | 2.0.0 |
| word_wrap | 1.0.0 |
| tty-screen | 0.5.0 |
| babosa | 1.0.2 |
| colored | 1.2 |
| highline | 1.7.8 |
| commander-fastlane | 4.4.5 |
| excon | 0.55.0 |
| faraday | 0.12.1 |
| unf_ext | 0.0.7.4 |
| unf | 0.1.4 |
| domain_name | 0.5.20170404 |
| http-cookie | 1.0.3 |
| faraday-cookie_jar | 0.0.6 |
| fastimage | 2.1.0 |
| gh_inspector | 1.0.3 |
| json | 1.8.1 |
| mini_magick | 4.5.1 |
| multi_json | 1.12.1 |
| multi_xml | 0.6.0 |
| rubyzip | 1.2.1 |
| security | 0.1.3 |
| xcpretty-travis-formatter | 0.0.4 |
| dotenv | 2.2.0 |
| bundler | 1.14.6 |
| faraday_middleware | 0.11.0.1 |
| uber | 0.0.15 |
| declarative | 0.0.9 |
| declarative-option | 0.1.0 |
| representable | 3.0.4 |
| retriable | 2.1.0 |
| mime-types-data | 3.2016.0521 |
| mime-types | 3.1 |
| little-plugger | 1.1.4 |
| logging | 2.2.2 |
| jwt | 1.5.6 |
| memoist | 0.15.0 |
| os | 0.9.6 |
| signet | 0.7.3 |
| googleauth | 0.5.1 |
| httpclient | 2.8.3 |
| google-api-client | 0.13.2 |
generated on: 2017-09-25
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 28 (2 by maintainers)
I also have this problem (since using fastlane through MS AppCenter). A fix would be very appriciated!
We’re still experience this issue. I’ve done some investigation and it turns out that candidate build is not always available after the binary upload. I’ve made a workaround (simple wait loop) which solves it, and I’ll submit a PR soon.
We were seeing this issue somewhat regularly, but after we reconfigured our CI to only upload one app per machine at a time we stopped seeing the issue entirely.
Hope that helps someone else.