fastlane: Unable to distribute to testflight - The build is not in state for internal testing
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
Started from yesterday we cannot upload build to Testflight. It says:
The build is not in state for internal testing. - Build is not in internal testing state.
Is it related to App Store Connect API update? https://developer.apple.com/app-store-connect/whats-new/ Looks like it was updated yesterday. https://developer.apple.com/app-store-connect/whats-new/?id=submissionsupdate12-9
Command executed
lane :ios_beta do |options|
increment_build_number_in_plist(build_number: ci_build_number, target: ###)
match(type: "appstore", platform: "ios", template_name: "###", readonly: is_ci, app_identifier: ###)
gym(workspace: "###", scheme: ###)
pilot(
app_platform: "ios",
distribute_external: true,
groups: "###",
changelog: "###",
beta_app_description: "###",
app_identifier: ###,
reject_build_waiting_for_review: true
)
upload_symbols(scheme: ###, platform: "ios", project_slug: ###, sentry_api_key: ###, app_identifier: ###)
end
Complete output when running fastlane, including the stack trace and command used
[01:46:09]: -------------------
01:46:09
[01:46:09]: --- Step: pilot ---
01:46:09
[01:46:09]: -------------------
01:46:09
[01:46:09]: Login to App Store Connect (###)
01:46:10
Available session is not valid any more. Continuing with normal login.
01:46:11
[01:46:11]: Login successful
01:46:13
[01:46:13]: Ready to upload new build to TestFlight (App: ###)...
01:46:16
[01:46:16]: Going to upload updated app to App Store Connect
01:46:16
[01:46:16]: This might take a few minutes. Please don't interrupt the script.
01:54:23
[01:54:23]: iTunes Transporter successfully finished its job
01:54:23
[01:54:23]: --------------------------------------------------------------------
01:54:23
[01:54:23]: Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online.
01:54:23
[01:54:23]: --------------------------------------------------------------------
01:54:23
[01:54:23]: Successfully uploaded the new binary to App Store Connect
01:54:23
[01:54:23]: If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option
01:54:23
[01:54:23]: Waiting for processing on... app_id: ###, app_version: ###, build_version: ###, platform: IOS
01:54:24
[01:54:24]: Read more information on why this build isn't showing up yet - https://github.com/fastlane/fastlane/issues/14997
01:54:24
[01:54:24]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:54:54
[01:54:54]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:55:25
[01:55:25]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:55:55
[01:55:55]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:56:26
[01:56:26]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:56:56
[01:56:56]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:57:27
[01:57:27]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:57:58
[01:57:58]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:58:28
[01:58:28]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:58:59
[01:58:59]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
01:59:29
[01:59:29]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
02:00:00
[02:00:00]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
02:00:30
[02:00:30]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
02:01:01
[02:01:01]: Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
02:01:33
[02:01:33]: Successfully finished processing the build ### for IOS
02:01:34
[02:01:34]: Successfully set the beta_app_feedback_email and/or beta_app_description
02:01:35
[02:01:35]: Successfully set the changelog for build
02:01:36
[02:01:36]: Distributing new build to testers: ###
[02:01:37]: The build is not in state for internal testing. - Build is not in internal testing state.
02:01:37
02:01:37
+------+---------------------------------+-------------+
02:01:37
| fastlane summary |
02:01:37
+------+---------------------------------+-------------+
02:01:37
| Step | Action | Time (in s) |
02:01:37
+------+---------------------------------+-------------+
02:01:37
| 1 | default_platform | 0 |
02:01:37
| 2 | ci_build_number | 0 |
02:01:37
| 3 | increment_build_number_in_plist | 0 |
02:01:37
| 4 | is_ci | 0 |
02:01:37
| 5 | match | 2 |
02:01:37
| 6 | gym | 613 |
02:01:37
| 7 | git_branch | 0 |
02:01:37
| | pilot | 927 |
02:01:37
+------+---------------------------------+-------------+
02:01:37
02:01:37
[02:01:37]: fastlane finished with errors
Environment
fastlane 2.137.0
Related issues
https://github.com/fastlane/fastlane/issues/14033 https://github.com/fastlane/fastlane/issues/13903
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 16
- Comments: 20 (2 by maintainers)
I’m experiencing this issue as well. My local fastlane is up to date, double-checking Jenkins version. Any new information?
I’ve tested twice today and one has failed and one succeeded.
Having same issue…any word?
Happened here too
Getting the same error output as well.
Our config is similar: