iOS App Store upload fails with "Invalid Signature" on main executable (Godot 4.7.2, Xcode 27.1)

Hi everyone,

I'm trying to publish my first iOS app (a game built with the Godot engine), but every upload to App Store Connect fails with this error:

"Invalid Signature. Code failed to satisfy specified code requirement(s). The file at path "sevenatseven.app/sevenatseven" is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate."

Setup:

  • Xcode 27.1 (27A9275), macOS 27.0.1
  • The Xcode project is exported from Godot 4.7.2 (stable)
  • Automatic signing with my paid team; no signing errors shown in Xcode
  • Release configuration, Code Sign Identity: Apple Development (Xcode re-signs for distribution on upload)
  • My account has a valid Distribution Managed certificate

What I tried:

  • Archive with "Any iOS Device (arm64)", then Distribute App > App Store Connect > Upload
  • Clean Build Folder, fresh project export, new archive
  • The archive always succeeds and the app runs fine on a real iPhone, but the upload is rejected every time with the same error on the main executable.

What can cause this error on the main executable when the archive and signing look correct in Xcode? Is there a way to see which code requirement is failing, or a codesign command I should run on the archive to check it?

Thanks!