I can't submit my app to Apple Store Connect

I created my app with Ionic in its latest version 8. Everything worked in tests on simulators and on iPhone devices. However, when I compile and generate the file to submit to App Store Connect, I receive the error:

Validation failed Invalid Signature. Code failed to satisfy specified code requirement(s). The file at path “App.app/App” is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose “Clean All” in Xcode, delete the “build” directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/support/code-signing. (ID: 435c30f9-12d0-4367-a930-33c3b39229be)

Answered by tllo in 850384022

Now it works.

  1. My App - Targets - Signing & Capabilities - Unchecked Automatically manage signing
  2. Xcode Settings - Accounts - Download Manual Profiles
  3. Xcode Settings - Accounts - Manage Certificates - Download Apple Distribution (on "+" icon)
  4. My App - Targets - Signing & Capabilities - checked Automatically manage signing
  5. Product - Clean Build Folder
  6. Product - Archive

Done!

Right, and did you do any of the things it mentions in that error?

Yes. I tried everything they say in the description and the error persists. I even tried manually, but Xcode won't download the certificates. I think there's a problem with my Xcode.

Accepted Answer

Now it works.

  1. My App - Targets - Signing & Capabilities - Unchecked Automatically manage signing
  2. Xcode Settings - Accounts - Download Manual Profiles
  3. Xcode Settings - Accounts - Manage Certificates - Download Apple Distribution (on "+" icon)
  4. My App - Targets - Signing & Capabilities - checked Automatically manage signing
  5. Product - Clean Build Folder
  6. Product - Archive

Done!

I can't submit my app to Apple Store Connect
 
 
Q