Mahir Mahir - 1 month ago 9
iOS Question

Application failed codesign verification?

I'm having problems submitting my iphone application. I saw some similar questions, but I didn't find an answer.

When I archive the project and click validate, I get the error message "Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate."

I'm assuming I did something wrong in the codesigning section. I followed a youtube tutorial that had me download all the certificates and set up the codesigning section, but I don't think I set up the codesign section correctly.

enter image description here

enter image description here

Additionally, when I build for iOS I get this. In all the tutorials I've seen, no one actually has "" written out, so it's possible that this is related to the problem.

enter image description here

I am not getting Ear Training (name of my app) as an option under the menu of distribution. I downloaded all the distribution certificates, so I can't figure out what I'm doing wrong. I also tried making my own certificate, as instructed by this tutorial, but the certificate does not appear under the code signing options. Any help would be appreciated, Thanks

this is what I have in keychain access. The certificate with the x is the one I tried creating in the tutorial. Is it possible that I need to import them to xcode? I tried dragging and dropping into the project as well as the organizer, but to no avail.

enter image description here

Answer Source

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.