I installed xcode 4.2 and i’m trying to archive my second app. I didn’t have any problem with my first (xcode 4.0.2) but now I’m getting the following error:
warning: Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
I’ve tried different things but nothing works. any suggestion?
thanks
I’ve had this issue a couple times and it always has been that I have the wrong Code Signing Identity set in Build Settings. Check you’ve got the correct certificates selected for the correct profiles? (Developer Profile to Developer Build and Distribution/Release Profile for Release Build)
Also check your Code Signing Identity Certificates for the Project Build Settings and also the Code Signing Identities for the Active Target. Sometimes you set the correct certificates for one but the other has something different set. This has tripped me up a couple times too
Once you find the issue, do a Clean and then Build to ensure everything is flushed out.
Just to note, this isn’t solely a Xcode 4.0.2 issue.