Application failed codesign verification

Building for iOS, I get this:

warning: Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
2011-09-02 16:12:39.847 Validation[74994:203] *** NSTask: Task create for path ‘/Developer/usr/bin’ failed: 22, “Invalid argument”. Terminating temporary process.

  • (null)

Why? [import]uid: 52127 topic_id: 14629 reply_id: 314629[/import]

Because it failed the codesign verification :wink:

You’re building it with the wrong certificate, I’m guessing? Or your certificates are messed up.

Open Xcode, look at Organizer and click on the provisioning profile you were using to sign it - then see what info it gives you and if there are any warnings showing. [import]uid: 52491 topic_id: 14629 reply_id: 54160[/import]

No warnings are displayed in Organizer.

I have tried re-downloading the certificate and profile. I still get the same error. Please help… this has never been a problem before. [import]uid: 52127 topic_id: 14629 reply_id: 54784[/import]

How long have you been a developer? Have your certificates expired? They expire once a year.

Open Keychain access and look at your certificates - any expired? [import]uid: 52491 topic_id: 14629 reply_id: 54837[/import]

this can also happen if you have an expired profile installed on your device that has nothing to do with the app you’re trying to install. this happened to me several times… try to delete all profiles from your device and re-install the particular profile via organizer. hope that helps…

-finefin [import]uid: 70635 topic_id: 14629 reply_id: 54838[/import]

@peach
None of my certs are expired (all expire in 2012)

@canupa
This doesn’t have to do with installing on the device. I get these errors from Corona when I try to create a build. [import]uid: 52127 topic_id: 14629 reply_id: 55910[/import]

And you have all three certificates installed along with the correct provisioning profile for the app you’re building? Clicking on the provisioning profile in Xcode Organizer says “Can be installed on *device name here*”? Or if it is an App Store build, “Cannot be installed on devices”? [import]uid: 52491 topic_id: 14629 reply_id: 55999[/import]

I still can’t get this to work.

Why do I need *three* certificates?

And why does it say “it was not signed with an iPhone Distribution Certificate”? I’m just trying to use a development Profile, for device testing, which is what I’ve always done. [import]uid: 52127 topic_id: 14629 reply_id: 56942[/import]

Well, you need the distribution certificate for Store and AdHoc builds and the development one for Xcode Simulator builds and the WWDC because, well, Apple says so.

How many certificates do you have? Do you have the WWDC installed?

What version of Xcode are you using? [import]uid: 52491 topic_id: 14629 reply_id: 57074[/import]

Yes, I have the WWDC installed. I also have iPhone Developer: My Name installed.
I’m not trying to distribute at the moment, I just want to create builds and test on devices.

I actually am able to install builds on the device, but I don’t understand why Corona is throwing this error every time I do a build. Even on previous projects where I never had this problem, if I go back and build them now, I get this error. [import]uid: 52127 topic_id: 14629 reply_id: 57137[/import]