Following Apple's instructions, I cannot upload my app to the Mac App Store.
Symptoms:
When I submit my app, I get an automated email from Apple that claims I signed it with the "wrong" certificate. The email says I must use the "3rd Party Mac Developer Installer" certificate - which I did.
Xcode4 forces me to use the "Installer" certificate - it has no other options in the drop-down
If I run codesign from the command line, I actually get an error message: "this identity cannot be used for signing code"
Things I've tried, with no success:
- Asking Apple for help (after 1 week, I got an email saying they would get back to me)
- Deleting all my certificates, rebooting, creating new certificates from Apple, trying again
- Exporting UNsigned from Xcode4, signing with codesign on the commandline, and submitting with Application Loader
- Signing inside Xcode4, then submitting with Application Loader (fails because Xcode refuses to even TRY to sign with the Installer cert)
NB: the app itself works fine and is tested on multiple machines - if I do "Share..." and save to disk as a mac .app, I can email that to friends etc and everythign works fine.
Finally, Apple's automated-email:
Invalid Signature - This error occurs when you have signed your app's installer incorrectly. There are two certs required for this process: the "3rd Party Mac Developer Application" cert and the "3rd Party Mac Developer Installer" cert. When signing your package, you need to ensure that you are using the Installer cert to sign your package. Ensure that you are specifying this cert when submitting your app via the Xcode Organizer or when running productbuild from the command line.