Question

So - I am a registered iPhone developer (Having paid my $99/year). I have followed all the steps provided by Apple to get the provisioning and code-signing files. However, when I click 'build', it says:

"Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)"

I have re-downloaded all of the certificates and profiles repeatedly, and it still won't work. However, if I click 'build' (and it says codesign failed), but then drag the product .app file to my device in the organizer or click "Run", it will run on my device. Any suggestions?

Was it helpful?

Solution

Since you are able to run the .app on your device, your problem might be that you have buildt it with your developer provision profile. That won't work. You need to build it with a distribution provisioning profile for App store.

Apple provides good information of how to do this, but I think the info is kind of hidden in all this itunesconnect/provisioning portal stuff... Check this link: http://developer.apple.com/iphone/manage/distribution/index.action . There you sould see two important points: "Create and download your iPhone Distribution Provisioning Profile for App Store Distribution" "Building your Application with Xcode for Distribution"

Good luck :-)

OTHER TIPS

Does your profile show up in Xcode's Organizer window? (If not, drag the files from Finder to Xcode.)

What profile is selected in your Xcode project settings? Are you building debug, release, or for distribution?

There are many possible causes of the -19011 code verification error (as evidenced by the dozens of near identical stackoverflow questions about it). The specific cause is hinted at in the detail of the message (see Apple Technical note TN2250 advice on the -19011 issue for details)

In my case the error detail contained the phrase "Failed to load provision profile from:" after which I discovered that having spaces or special characters in the app OR the xcode scheme name can cause codesign verification fail.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top