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

Ok, so, this really may be something related with company account.

Basically, there are two people with access. I’m like Developer (in Apple terms) and another - Team Agent.

It’s written there that only team agent can create distribution profile (but I as a developer have this button in Provisioning Portal, too), so I login as Team Agent and do everything with his email and name. [import]uid: 13989 topic_id: 7899 reply_id: 81851[/import]

I tried to build a test app with Xcode using my Provisioning Profile and it worked! No errors!
And the Application Loader started to upload it!

When I build with Corona (build 703 or 704) with the same Profile, I keep getting “Application failed codesign verification”! And the Loader won’t upload cause it gives the same errors that Corona!

(I’m trying a test app with just 2 files that just shows an image) [import]uid: 13989 topic_id: 7899 reply_id: 81858[/import]

That is very interesting; can you double check to ensure you do not have any additional certificates installed in keychain access and let me know, please?

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

It seems like no additional certificates… (I’ve enabled showing expired ones).

I’ve rebooted mac and checked again building with Corona and Xcode: same result.

What should we do about it? It’s pretty important for us to publish the app finally. [import]uid: 13989 topic_id: 7899 reply_id: 82152[/import]

The next step would be to check permissions.

Open keychain access and choose “get info” on each of your certificates, then select “Always Trust” under the trust settings.

Next do “get info” on your private keys and switch to “allow all applications to access this item”.

Just to make sure, when you said about building with Xcode, you selected your provisioning profile and your distribution certificate, not the development certificate, yes? Because selecting the dev cert overrides any dist profile selected. (Or it did last I used Xcode to build, this may have changed.)

Please let me know results.

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

Changed them, Corona still gives warning.

Right now there is only one Provisioning Profile on my system - the Distribution one.
So if I managed to upload the binary with the Apple Loader I guess the app was signed successfully with Xcode.
Actually I was building for “Debug” but with the right Profile. [import]uid: 13989 topic_id: 7899 reply_id: 82182[/import]

OK, I might be wrong here

EDIT: No, I’m not wrong where I thought I was.
The thing was that Xcode has started to fail building after changing permissions of certificate to “Always trust” [import]uid: 13989 topic_id: 7899 reply_id: 82183[/import]

In terminal when building with Corona

iPhone Distribution: NTC Spider: no identity found  

doesn’t tell you anything?

It’s just an idea but it looks like maybe Corona doesn’t escape quotes when signing [import]uid: 13989 topic_id: 7899 reply_id: 82185[/import]

Hey again,

The quote thing does seem to be a concern; I’m going to pass this along to another member of the team who has more experience than me and see if they can help get this sorted out. [import]uid: 52491 topic_id: 7899 reply_id: 82232[/import]

Hey Peach,

thank you very much! I look forward to sorting this out! [import]uid: 13989 topic_id: 7899 reply_id: 82238[/import]

Got a distribution certificate and uploaded to App Store.
Now when I build using the dev profile, I get errors , BUT it still lets me install on the iPad
Build 722 [import]uid: 108660 topic_id: 7899 reply_id: 82239[/import]

I always get an error when I use a development profile but it installs and runs fine. If you get that error building a distribution one, then you have problems. [import]uid: 19626 topic_id: 7899 reply_id: 82242[/import]

I tested a profile:
iPhone Developer: Eric Wing (33DSK6A4N8) [iOS Team Provisioning Profile: *]

It built and installed fine. I assume this would need quoting? (I didn’t fully understand what you meant by quoting.)

Some random things to try:

You said you have expired keys. You should delete those. I’ve seen expired keys cause things to fail in Xcode.

Also in Keychain Access, your Certificate must have a private key associated with it. If there is no triangle disclosure for your Certificate and you can’t expand it showing a private key, it is not installed correctly.

[import]uid: 7563 topic_id: 7899 reply_id: 82310[/import]

Fox,

Just to clarify, the quotes - are they in the certificate name or the provisioning profile name? [import]uid: 52491 topic_id: 7899 reply_id: 82316[/import]

The company name is

NTC "Spider Group" LLC

Also it is the name of the Team in Member Center.
Provisioning profile’s name doesn’t contain quotes.

The certificate’s name is

iPhone Distribution: NTC "Spider Group" LLC

Also I noticed that my distribution Provisioning Profile dissapeares from Xcode Organizer when Automatic Device Provisioning is turned on, so, I turn it off. [import]uid: 13989 topic_id: 7899 reply_id: 82410[/import]

Screenshot of certificates
[import]uid: 13989 topic_id: 7899 reply_id: 82413[/import]

My best guess is you are right that that the quotes in your company name is causing the problem. Any chance you can rename or create a second distribution certificate without the quotes? (I’m worried that this will not be a fast or easy fix and it may be faster for you to work around it.)
[import]uid: 7563 topic_id: 7899 reply_id: 82534[/import]

We’ll try to contact Apple to remove quotes from the company name.

The Corona SDK is awesome. Nevertheless - that what I didn’t expect - not to have an ability to publish the app.
Also can’t we somehow publish the app with Corona and then codesign it with some other tool? [import]uid: 13989 topic_id: 7899 reply_id: 82674[/import]

We called Apple, and they have removed the quotes from the company name.

Regenerated Distribution certificate and Provisioning profile, built successfully with Corona.
(There were nothing unusual in the quotes, the are in all our legal papers, so, they should’ve been in the Company Name) [import]uid: 13989 topic_id: 7899 reply_id: 82711[/import]

Hey Fox,

I’m really happy to hear you got this sorted out :slight_smile:

Peach [import]uid: 52491 topic_id: 7899 reply_id: 82737[/import]