Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate

2 Solutions Collect From Internet About “Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate”

Verify below steps to create distribution certificate and perform that if you miss anyone.
1) Generate a certificate signing request in keychain.
2) Using that create or revoke a DISTRIBUTION certificate in the portal. after that download and install it and verify key under the name.
3) Register the device in the provisioning portal.
4) Then create or modify a DISTRIBUTION profile in the portal. after that download and install it and verify it appears to be valid in Organiser as there are no warnings.

Make sure to select proper build setting in xcode.

I got the same error when I use Application Loader(Version 2.5.1(235)) to upload my app which compiled in Xcode 4.2.

But when I used Xcode4.2’s Archive, it’s validated and successfully submitted.
I don’t know why.