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 Code Signing Resources | Apple Developer Forums. (ID: 435c30f9-12d0-4367-a930-33c3b39229be)

First, Ionic Framework doesn’t have anything do with building/bundling the app for iOS or Android. That is either Cordova (which I assume you are using from the topic you chose) or Capacitor.

The error message seems to say what is wrong. You either didn’t set up the signing cert or you are using the wrong one.

A bit old, but the Capacitor docs link to this article with some tips on deploying to the App Store.

If you are in fact using Cordova, they have a page over here about signing.

1 Like

The problem was X-Code.
I had to manually download the certificates through the Xcode settings screen. Then I unchecked the option to allow it to manage signatures and then checked it again.
It seems that Xcode requires you to manually download the certificates, even if you select it to manage them.

1 Like