Code Signing Error: Application Failed Codesign Verification

Code signing Error: Application failed codesign verification

I had the exact same issue..

Go to Keychain Access

  1. Verify that you have your Public and Private keys set up correctly. This is a good reference https://developer.apple.com/legacy/library/technotes/tn2250/_index.html

  2. I had previously adjusted my Keychain Certificate Preferences to make Outlook work but that pretty much screwed up XCode code signing..

After I set these to the "best attempt" setting (see screenshot) validation worked fine

Sample Image

Application failed codesign verification warning

In Build settings -> Validate Built Product

Debug: YES changes to NO

Release: No changes to YES

and the warning goes away.

I think I've had some misunderstanding of "Validate Built Product" section before.

Application failed codesign verification?

Your Build settings appears to have a DEVELOPER certificate for the RELEASE version.

In order, to validate and submit a binary you've to configure the release version to use a DISTRIBUTION certificate.

Create and download a Distribution certificate and import it (drag and drop to Xcode).

Configure the build/release for using the distribution certificate. If you don't see the new distribution certificate as an option for your build, check the AppleID used both for generate the certificate and for your Build settings. They must be the same, otherwise Xcode can't sign your app correctly.

This will solve your problem.

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

So after a long pain staking process I finally got xcode to code sign with out the warning. But before I tell you how I solved it, I'm going to tell you what I've done.

I cleared out all my public/private keys, cleared all certificates, uninstalled xcode 4.0.2, reinstalled xcode 4.2 (tried redoing certificates), uninstalled xcode 4.2, installed xcode 4.0.2 (tried redoing certificates), and after all that, still no luck.

Finally I deleted the WWDR certificate from my local machine and downloaded a new certificate from the provisioning portal, and YATZEE! After I redid the certificates and provisioning profile, it finally built without a warning!

So just so anyone has to go through this I've decided to post my answer. I hope I help someone...

Application failed codesign verification. What do I do?

You probably need to check what code signing profile is selected in your distribution build properties.

Validation/Submission error: Application failed codesign verification

Ok, fixed this... I wish I'd tried this sooner, as it would've saved me many hours today!

It seems that the App Store provisioning file for this app was somehow corrupt - not on my Mac, but on Apples servers.. I downloaded it many times today, with no luck. I just discovered that selecting the Ad-Hoc profile during Validation worked, which led me to believe it was specific to the App Store one. So I deleted the App Store provisioning file from the iOS dev dashboard, then recreated it, downloaded it, and it worked!

Before I deleted it, I edited it, and everything was set correctly, and the expiration date was 6 months from now, so I can only assume something was broken Apple's side (even though I'm sure this same file worked in the past!) :-(



Related Topics



Leave a reply



Submit