Error: app is not a valid binary after upload to TestFlight

Hello,

I have a working App which archives and distributes ok. However I receive a message in Xcode (15.2) after a few minutes saying app "is not a valid binary". The app is not added to available Builds in TestFlight on App Store Connect.

Is there a way of finding out what is going on ? or a likely reason for this error ?

Thanks

As a starting point, can you post a screenshot of the exact error message?

It's a notification in the top right corner of the screen that appears a few minutes after upload.

Apart from the fact that the build does not become available in App Connect, that's the only info.

Screenshot attached.

Any info on this problem ?

Bearing in mind that the app runs on multiple versions of iphones, and passes the app connect validation ("Your app successfull passed all validation checks") what could possibly be causing this error after upload ??

Running into this too. Super annoying. What's the solution?

Instead of uploading the app through Xcode's Organizer, I just exported in from there and then used the Transporter App to upload to the App Store. It gives a much more detailed error message.

In my case, it wasn't satisfied with the Build Number that I gave and found a duplicate. I was able to resolve that by uploading through the Transporter App.

Transporter App can be downloaded here: https://apps.apple.com/de/app/transporter/id1450874784?l=en-GB&mt=12

Also happened to me once with code that I downloaded from GitHub instead of cloning it. When downloading, many Browsers add the com.apple.quarantine attribure to the files, which will be rejected by the App Store.

You can remove it by running this command: xattr -dr com.apple.quarantine /path/to/the/folder.

Error: app is not a valid binary after upload to TestFlight
 
 
Q