fastlane: Deliver fails to create a new app version on App Store Connect
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
Deliver fails to create a new app version on App Store Connect
Command executed
lane :submit_review do
deliver(
submit_for_review: true,
automatic_release: false,
force: true, # Skip HTMl report verification
skip_metadata: true,
skip_screenshots: true,
skip_binary_upload: true,
run_precheck_before_submit: false,
submission_information: { export_compliance_uses_encryption: false,
add_id_info_uses_idfa: false }
)
end
Complete output when running fastlane, including the stack trace and command used
[17:42:54]: Cannot find edit app store version... Retrying after 10 seconds (remaining: 4)
[17:43:06]: Cannot find edit app store version... Retrying after 10 seconds (remaining: 3)
[17:43:17]: Cannot find edit app store version... Retrying after 10 seconds (remaining: 2)
[17:43:27]: Cannot find edit app store version... Retrying after 10 seconds (remaining: 1)
[17:43:38]: Cannot find edit app store version... Retrying after 10 seconds (remaining: 0)
and fails with
[17:43:48]: Cannot update languages - could not find an editable version for โIOSโ
Trying to upload a new version of an app to App Store Connect, Deliver fails when it tries to upload metadata because it didn't create a new app version successfully on App Store Connect.
Environment
Fastlane 2.217.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 27
- Comments: 26 (7 by maintainers)
Hey everyone! ๐
Iโve opened a PR that should resolve the issues you guys are seeing: https://github.com/fastlane/fastlane/pull/21742
@ everyone, if you wanna help (and increase the chances of your CI succeeding ๐), you can help test this PR of mine in the wild ๐ this would be tremendously helpful and Iโd be super grateful! โบ๏ธ โ Check out the PR description for steps on how to install my PR in your fastlane setup
Looking forward to hearing feedback from the community whether the proposed solution works ๐
@ArthurAlvarez I reviewed your PR and I proposed a different solution (see PR above), I hope youโre okay with that! ๐ thank you for taking a stab at fixing this issue, though! Super helpful! โค๏ธ
This is still a significant issue for us. I build hundreds of apps using Fastlane and approx. 50% of my builds fail. Iโm using Fastlane version 2.219.0.
Same issue. When I try to create the version in App Store Connect manually, I get an error that the version number is already in use. After a page reload, the new version magically appears.
In an attempt to mitigate this, we have updated our release flows to first trigger an independent call to ensure_version!(version_string, platform: nil, client: nil), then we actually build the app and trigger the upload.
Our assumption (that might be totally wrong) is that between the call that Fastlane does to create a new version in the App Store and the call to upload metadata, there is not enough time for ASC to properly propagate the changes. We hope that by introducing a few minutes delay between the 2 operations the release will be successful.
Hi @rogerluan but the chances of Apple fixing their code anytime soon are pretty low so maybe fastlane can work around it somehow? They did their 10 second retries so maybe something else needs to be incorporated?
Same issue here. Is there a way to increase the retry interval or number of retries?
Still happening. Is there any workaround or fix?
I have tested it with 10 apps. It always fails at the first attempt and succeeds on a retry.