hey guys i know this is a little off topic but i tried posting on stack overflow and apple devforums with no answer. I’m struggling with this issue for a week now I’ve tried all I could find on google with no luck. this is my first time trying to submit an app to the App Store. but i keep getting this email after each try:
invalid Signature - 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.
so here is what I’m doing :
- I have my distribution certificate in login keychain , with the private and public key .
- I have the distribution provisioning profile with the same certificate i’ve created earlier .
- The bundle ID on my provisioning profile is the same on my iTunes connect app and the same in Xcode general settings .
- The same version (0.8.2) in iTunes connect app and Xcode .
- I’m building with device selected not a simulator (but i don’t have a device connected to the mac).
- the code signing part under build settings (for both target and project) i have "iPhone Distribution : … " for everything and also i’m selecting the distribution provisioning profile .
what I am missing ? I’ve looked all over and all I find is people with incorrect versions or incorrect bundle id.
I am using cordova and ionic to build my app i don’t know if that has something to do with it.
i’ve seen the troubleshoot guide of apple on this issue and run this command :
codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)' /path/to/the.app
I get : a sealed resource is missing or invalid file modified: /path/to/MyApp.app/MyApp
they suggest to run this to resolve the issue : dot_clean path/to/xcodeproject
but that didn’t help i keep getting the same error .
please help i’m out of clues