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)
Now it works.
- My App - Targets - Signing & Capabilities - Unchecked Automatically manage signing
- Xcode Settings - Accounts - Download Manual Profiles
- Xcode Settings - Accounts - Manage Certificates - Download Apple Distribution (on "+" icon)
- My App - Targets - Signing & Capabilities - checked Automatically manage signing
- Product - Clean Build Folder
- Product - Archive
Done!