I've done codesigning and submitting for iOS apps countless times. This time it struck me with the Mac App Store. I'm repeatedly getting the same error message:
"My Name" is a valid identity. However, you do not have the associated package identity.
I've recognized this 2 topics here on stack overflow: mas-code-signing-identity-private-key and mac-app-package-identity-not-installed
Nothing inside there solved the problem for me.
Thats how I (most reliably) reproduce this message:
- I clean up all my certificates and private keys starting with "Mac Developer" or "3rd Party Mac Developer". Of course also the expired ones.
- Revoking all the stuff inside the Mac certification portal.
- Create App-ID (did it only once)
- Create new certificate for Mac Development. I can only assume that this is comparable to the debugging certificates for iOS development.
- Create new certificate for Mac App. Once again I can only assume that this could be something similar to a distribution certificate in iOS-development.
- For completion reasons create a new certificate/profile for my system.
- Create a production provisioning profile. I can only assume that this might be equivalent to an iOS distribution profile.
- I then download all the certificate mess and install it properly. Some go into the Keychain, others got into the Preferences and XCode.
- For making sure I restart XCode or even the whole Mac (doesn't change the frustrating outcome anyway).
- I go to the project build settings and select the production provisioning profile, because I assume "production" is equivalent to "distribution". Changing the codesigning identity in the target build settings doesn't work either. While Apple claims in it's documentation that for App Store submission the signing identity has to be changed in the project build settings.
- I run an archive build.
- I select the archive in the organizer and click validate.
- This error message appears:
"My Name" is a valid identity. However, you do not have the associated package identity.
I can't find any pointer to what the term "package identity" actually means. What is most frustrating to me is that this terminology mess in Apples documentation concerning the code signing and submission process appears not very clear and precise to me. At least not as clear and precise as the documentation for the same process concerning iOS App submission (which is using completely different terminology).
Probably I understood something wrong? Thanx for any help or pointer in advance.