Application failed codesign verification - over and over again... ugh!!!!!!!

Hey Naomi,

I had the same problem this morning. I build with two different developer accounts across two different machines, so my provisioning profiles and developer certificates were all over the place. I fixed it by cleaning all this up.

I’d recommend going to Keychain Access and deleting your iPhone developer certificates. If you have more than one, this might causing the problem. You can see them all by clicking “My Certificates” in the category box on the left.

Then go to the iOS Provisioning Portal > Certificates and revoke your developer certificate. Then create a new one. Download this and double click it when it’s on your computer. This will add your certificate back into you keychain.

Now last step: Go to Xcode > Window > Organizer, click Provisioning Profiles in the left bar under Library and delete old copies of the provisioning profiles. You’ll be downloading a new one from Apple. Go to the iOS Provisioning Portal > Provisioning and download your provisioning profile again. You may have to click “Renew” and refresh to see the download button. After downloading double click it. You should see it load in Xcode.

Close Corona, reopen Corona and rebuild your app with the provisioning profile.

It worked for me.

That’s the best I can do for you. If you need more help or want to just send us your code to fix it for you, we now offer Premium Support. We have experts here who will bill on an hourly basis, but you have to purchase in 5 hour blocks. You can check that out here: http://www.anscamobile.com/corona/support/

-Gilbert
[import]uid: 5917 topic_id: 7899 reply_id: 61682[/import]

Thank you, Gilbert. Yes, I had a very messed up keychain. I deleted everything, revoked everything, and generated entirely new sets. I uninstalled, rebooted and reinstalled the Xcode (which was probably not necessary after all) – and I did this so many times that I feel I can do this in my sleep now.

Thanks again!
[import]uid: 67217 topic_id: 7899 reply_id: 61696[/import]

Naomi,

I had been trying to use my dist profiles to create a file and upload it to the apple store for 8 days.

I was attempting to pull what little hair I have left until I read the article https://developer.anscamobile.com/forum/2011/03/13/build-app-store

Between 8 pm and midnight last evening I followed the directions and was successful in compiling, and uploading to the apple store.

I was getting the same mixture of codesigning and other error messages.

Ed
[import]uid: 8102 topic_id: 7899 reply_id: 61705[/import]

Thank you, @edwainwright. I guess I didn’t make myself very clear. I was able to solve this a few days ago. But then, I stupidly thought I needed to use dev provisional profile for the build to test In App Purchase. It turns out I should’ve used Ad Hoc, and as soon as I switched over, it worked.

Anyhow, I looked at the link you posted, and indeed, it is an amazingly thorough article. I wish I knew about it 10 days ago.

Thanks again.

EDIT: It truly worked!! [import]uid: 67217 topic_id: 7899 reply_id: 61707[/import]

Hi everyone. I get this error. I don’t know what to do.

warning: There is no codesign_wrapper executable. Please reinstall the Xcode developer tools. (-19058)

thanks [import]uid: 81363 topic_id: 7899 reply_id: 68458[/import]

Hey there - have you tried reinstalling Xcode? [import]uid: 52491 topic_id: 7899 reply_id: 68526[/import]

Thank you Peach thats it. [import]uid: 81363 topic_id: 7899 reply_id: 68968[/import]

Glad to hear it’s sorted :slight_smile: [import]uid: 52491 topic_id: 7899 reply_id: 69067[/import]

I’m trying to help someone setup their Corona SDK (Pro version) to build an app I have been working on for them, and they are getting code signing errors.

From what I can tell things seem to be okay, but, we are getting a weird error in the terminal message.
2012-01-17 19:15:44.660 Corona Simulator[42545:2403] WARNING: Could not find certificate for identity (iPhone Developer: Peter Samulevich (C8CU878HB6)) whose user id is: F59WCJSFNA
2012-01-17 19:15:44.668 Corona Simulator[42545:2403] WARNING: Could not find certificate for identity (iPhone Developer: Leanne Long (JFTVYJ8L4E)) whose user id is: 7L5959XHY5

Neither me or my friend know either of these people.

We’ve deleted all non-important keys.

Any thoughts?
[import]uid: 19626 topic_id: 7899 reply_id: 80740[/import]

Uhm wow. That’s kind of weird :S Really weird.

I honestly have no idea why that would happen or any suggestions to assist - I’m going to pass it on to the rest of the team and see if anyone has any ideas. [import]uid: 52491 topic_id: 7899 reply_id: 80784[/import]

The messages you’re seeing generally come from using shared provisioning files (part of a group). Not sure why you are seeing them if you are on an individual account. I see messages like that when I build with a shared Ansca provisioning file.

I would suggest deleting your provisioning files and generating new ones. [import]uid: 7559 topic_id: 7899 reply_id: 80875[/import]

We are ready to submit our first app - a big children ebook.

I’m stuck with codesigning (like many others).

I personally suspect that something is wrong with the “Common Name” that I fill when requesting a certificate. Not sure what it should be.
Also there are quotation marks in the certificates titles, like this:
iPhone Distribution: NTC “Spider Group” LLC
This is what I get after build:

warning: Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
failed to extract requirements data: 1
/Volumes/MacintoshDAT/iOS/Corona/Tests/coords.app: code or signature modified
failed to extract entitlements: 1

  • (null)

warning: Unable to extract codesigning entitlements from your application. Please make sure coords is a valid Mach executable that’s properly codesigned. (-19050)
/Volumes/MacintoshDAT/iOS/Corona/Tests/coords.app/coords: code or signature modified

  • (null)

And I noticed in Terminal (when building) the string:
iPhone Distribution: NTC Spider: no identity found
Can someone plese give a hint of what can be wrong? [import]uid: 13989 topic_id: 7899 reply_id: 81205[/import]

@Fox, sorry cause I am not able to help you “a lot” but for now, as a simple tip, I would like to ask you:

  • Are you using your Distribution Profile to build your app for the store?

Because if youre not, it is probably the issue youre having or at least one of.

PS: To get a Distribution Profile (this one is used only when building for store - live app - not test/debug) you go to your iTunnes Connect dashboard to make one. To know how to do it exactly, Mrs. @Peach has posted one big forum about it short time ago and so you can find it and follow the step-by-step list.
Hope this at least give you some fresh idea.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 7899 reply_id: 81212[/import]

@RSCdev, thank you for your reply!

Yes, it’s the Distribution one for sure.

Yeah, I’ve seen this guide and followed it, but unfortunately no success yet.
BTW some info about my system:
Snow Leopard
the latest XCode 4.2 (Build 4C199) [import]uid: 13989 topic_id: 7899 reply_id: 81219[/import]

@Fox, sorry for not helping at all, btw just tried.

I do not see any problem with your system, I just hope you`re not using the Beta version of XCode because I think that would cause you some issue…or may I be wrong. :\

EDIT: Sorry as I can see it`s not beta XCode,forget what I said.

Let`s wait @Peach or others that know more than us.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 7899 reply_id: 81223[/import]

Rodrigo, anyway thank you very much! It’s very good to see a support!
This is the 3rd day I’m trying to solve it myself and will keep trying but yes, at this point I need some input here. [import]uid: 13989 topic_id: 7899 reply_id: 81225[/import]

There are 2 main reasons I can think of:

  1. I’m doing something wrong with certificates.
    I’m not really sure how to properly request them.
    It is an organization account, and I’m doing it as a Team Agent.
    Specifically I’m confused here: In Peach’s guide ‘BOTH the “Development” and “Distribution”’ are requested with one CertificateSigningRequest, but at Provisioning Portal in tutorial (http://developer.apple.com/ios/manage/distribution/index.action) these two certificates are being requested differently - one with Developer name in the “Common Name” field and one with Company/Organization/Department name - I don’t know where I should look for this one.

From Apple’s guide:
“5. In the Common Name field enter your Company/Organization/Department name. Please ensure that the name entered matches the information that was submitted when you registered as an iOS Developer.”

  1. Some bug.
    Maybe with quotations marks in our organization’s (and certificates’) name. (wrote about it in post #31)
    I keep trying to solve this. [import]uid: 13989 topic_id: 7899 reply_id: 81226[/import]

Hey there,

Do you have a company account or an individual account? In the steps I used to request and upload a certificate to Apple (something I have done myself many, many times) I have only needed to request one certificate which I then upload to Apple.

That said, I never use a developer certificate for anything - I have no reason to - I have an AdHoc provisioning profile called Corona that I used for testing on device.

Beyond that, the quotes is not something I’ve encountered before - hopefully someone else may have some guidance.

One way to check your provisioning profile matches a certificate on your machine is to open Xcode and view your profiles in the organizer (CMD+Shift+2) - click on the profile and see if any warnings are present.

Please let me know how you go.

Peach :slight_smile: [import]uid: 52491 topic_id: 7899 reply_id: 81231[/import]

Hey Peach!

In the Member center it’s said:
Account Type: Company/Organization

So, I’m sure it is a company one. Do you use a company account too?)

I have only needed to request one certificate which I then upload to Apple.

Sorry, I don’t understand here. I thought you create a CertificateSigningRequest on you computer and then you upload it to Apple (and you don’t upload a certificate later).
I used developer certificate and provision to test on devices.

In Xcode everything is usually fine - it works as expected: when I create a Profile, it’s always green (no warnings). And then codesign fails, I delete a certificate from the Keychain and the Profile begins to show a warning. So, nothing here. [import]uid: 13989 topic_id: 7899 reply_id: 81824[/import]

Uh, no, I don’t use a company account - I should but I’m too lazy to go register a business name here :wink: (They wont let you do it online and if you want to do it via mail you need to write a cheque and I refuse to get a cheque book just for that purpose.)

TL;DR - No, I don’t use a company account.

For the certificate thing, yeah, I worded that badly - I do one certificate signing request then upload what is returned to Apple, then download both a distribution and development certificate from Apple along with the world wide dev one.

Is it only you with access to this company account or multiple people? [import]uid: 52491 topic_id: 7899 reply_id: 81848[/import]