Submitting iOS/macOS package to TestFlight can fail with error
POST https://api.appstoreconnect.apple.com/v1/betaAppReviewSubmissions returned 422: The build is not in a valid processing state for this operation. - The build is not in a valid processing state for this operation.
To better understand why the error happened without having to check the internal tool logs, print out the build which is about to be submitted, and its beta detail information, right after the tool has confirmed that their processing is completed by Apple.
Submitting iOS/macOS package to TestFlight can fail with error
To better understand why the error happened without having to check the internal tool logs, print out the build which is about to be submitted, and its beta detail information, right after the tool has confirmed that their processing is completed by Apple.
Example of updated logs:
Updated actions
app-store-connect publish
app-store-connect builds submit-to-app-store
app-store-connect builds submit-to-testflight