[Resolved] Your application built but failed to pass Apple's validation tests

Hahaha…yes, I believe that it was a “hard” (to not say very boring) kind of work (re-working to get the Xcode) running nicely again! :slight_smile:
Cheers Ansca Staff! (hello Peach!)
Hey Carlos…thanks for that!
PS: Its really awesome IMHO that were able to support older iOS versions again and still using the latest tools. :slight_smile:
Rodrigo. [import]uid: 89165 topic_id: 22661 reply_id: 93732[/import]

Hi guys! I can confirm now that this issue can be solved by upgrading to XCode 4.3.1 and installing the latest daily build. :slight_smile: [import]uid: 44127 topic_id: 22661 reply_id: 93782[/import]

@egarayblas - Nice to hear that!
[import]uid: 89165 topic_id: 22661 reply_id: 93830[/import]

Fantastic news - hopefully this solves others issues as well :slight_smile: [import]uid: 52491 topic_id: 22661 reply_id: 94020[/import]

Success! Upgrading to Mac OS X 10.7.3 (11D50d) fixes the problem. No need to upgrade Corona or Xcode. I will likely upgrade Corona for the iPad 3 issue regardless. Here are the gory details:

Issue description:
Building app for device development provisioning results in the following error: codesign_wrapper-0.7.10: using Apple CA for profile evaluation

Building the app for distribution has no errors
All provisioning profiles and the certificate are verfied ‘good’ through XCode
Assumption: Code signing involves both the certificate and provisioning profile. Since the distribution build works, I am assuming the certificate is good.

January and February 2012:
Built app for development and distribution with no errors
Corona: Build 704
Development OS: OS X 10.7.2
XCode: Version 4.1 Build 4B110
iOS 4.3.5 on iPad 1

February 23: Submitted to the app store
I think I started having the issue around this time
February 29: Accepted at the app store
I definitely had the problem after this date
Early March: Terms of ‘iOS Paid Applications’ contract changed by Apple (not sure if this is related)
March 10: Accepted new terms
Now: Continue to have the issue

March 17:
Removed development provisioning profile
Created and downloaded updated development provisioning profile
Double clicked on provision profile and XCode showed in the organizer
Copied the provisioning profile to: /Users/(your user)/Library/MobileDevice/Provisioning Profiles/
Updated provisioning profile is now listed twice on the build drop down
Build fails with either provisioning profile option selected
Updated OS X to 10.7.3 (required for XCode 4.3)
Build is now successful [import]uid: 101075 topic_id: 22661 reply_id: 94079[/import]

This is fantastic news - glad to see these issues being resolved :slight_smile: [import]uid: 52491 topic_id: 22661 reply_id: 94213[/import]

I’m glad I found this thread!
I built my app at last without errors, and tried it on my iPhone (both actually, the iPhone 4 with iOS 5.0.1, and the 3G with iOS 3.1.3)
Yesterday, I zipped my app and wanted to upload it to the App Store, after I uploaded the assets.

I didn’t have the application loader, so I downloaded it (that I guess was the only change made).
When I attempted to upload the zipped file of my application, I got two errors from the application loader:

"
a) the bundle ID defined in your XCode project does not match the bundle ID that you entered for this app in iTunes Connect

b) Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate
"
I tried to rebuild the app again using Corona SDK, but no matter what I do, I get the following error:

"

warning: Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)

"

I’m using the Corona Build 704, on a MAC 10.6.8, with XCode 4.2

It’s gonna be hard for me to go through all the updates processes, I’m using a MAC mini with the minimum requirements for a MAC lion.
Shall I update the Corona Build, or shall I use a different copy of the Application loader?

P.S. I have an older XCode, which I couldn’t uninstall, but it didn’t affect the building process before. [import]uid: 90736 topic_id: 22661 reply_id: 94526[/import]

Every Body!
My problem is solved and I successfully uploaded my app to the store, it is pending review now.

Here’s what I tried after I replied to the thread above (in details):

I rechecked the certificates again, and everything was ok.

I checked the provisioning profiles (on the provisioning portal and on my hard disk).
I noticed that even though I had two provisioning profiles on my hard disk, none of them was the “Distribution profile”!

It seems after I hooked up my iPhone4 to my MAC and clicked the “use for development” button, XCode created a new provisioning profile that replaced the one for distribution and kept the one for development!

So I downloaded the distribution profile from the provision portal in Safari and double clicked it to install it using XCode.
The old XCode 3 started and it did nothing, so I dragged the file to the new XCode 4.2 icon to install it.

I then tried to rebuild the app again, but no luck! the same problem, I noticed that I have two “Application loaders” too, and both gave the same error.

I thus tried to uninstall the old XCode again through the terminal window, and magically, this time it worked!
I tried to rebuild, and this time, I got the “iOS SDK was not found” error message from the Corona SDK!

I had nothing to do but to uninstall the new Xcode 4.2 again and re install it.

After re-installing and restarting my MAC, I tried to build my app again, now things really changed!
When choosing a profile, I had three choices now, instead of two!
one of them was the distribution profile, which I chose, and built my app.
When building was done, and this time without errors, Corona gave three buttons:
“Upload to App store”, “view in Finder” , and “Done”
I chose the first, and it automatically compressed the .app file and launched the “Application loader”.
I followed the steps, and the app was uploaded successfully!
I logged in to iTunesConnect, and my app “Awaiting review”
Hope it will be approved :slight_smile:
And hope each one of you will get his problems solved and benefit from the Corona SDK to the max!

(P.S. sorry if I sound like a mystery writer ;D ) [import]uid: 90736 topic_id: 22661 reply_id: 94571[/import]

@peach
Seems like upgrading to XCode 4.2 and installing iOS 5.1 SDK help us.

Corona: Build 704B
Development OS: OS X 10.6.8 (Snow Leopard)
XCode: Version 4.2 Build 4C199
iOS SDK: 5.1 (installed on Snow Leopard using advice from here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/100229-snow-leopard-sdk-5-1-a.html)

Everything works fine. Thanks for supporting. [import]uid: 9058 topic_id: 22661 reply_id: 96285[/import]

Well every thing worked fine for me!
My App is already launched, you can check it out here:

http://itunes.apple.com/us/app/bombs-juggle/id511753801?ls=1&mt=8

it’s still my first game / app, many more will come, thanks to Corona :slight_smile: [import]uid: 90736 topic_id: 22661 reply_id: 97775[/import]

I have a slightly different problem here but it may be related.

I can build for IOS and install on the device but when I go to run the app the display is black.

During the build the only warning I got was regarding the icon sizes even though the icons are the correct size.

I can’t test (as of yet) in xCode because my device is IOS 5.1 and in typical Apple arrogant fashion xcode 4.2 does not support IOS 5.1 on Snow Leopard - there’s now way I’m upgrading to Lion. I may try the hack listed above.

Until then - any advice? Has anyone else installed an app only to see nothing displayed when it is run?

Thanks!

[import]uid: 104904 topic_id: 22661 reply_id: 109626[/import]

Plug in your device while testing and look at the Xcode console - are you getting an error message there?

What do you first do when you launch your app? Do you initiate anything that doesn’t happen on the simulator? (Gamenetwork, ads, etc). [import]uid: 52491 topic_id: 22661 reply_id: 109959[/import]

I’ve made some progress since this post. It seems I needed to use Lion and a later version of Xcode.

I am not doing anything different from the simulator.

When you speak of the Xcode console do you meant the output from the corona terminal window? [import]uid: 104904 topic_id: 22661 reply_id: 110017[/import]

No I mean the Xcode console.

The way to see that is to make sure your device is plugged in, then open Xcode and go to the Orangizer screen (either from the menu or by pressing CMD+Shift+2) then look on the left. You will see your device and under it there will be “console”.

Click on that and you will see output from your device.

Make sense? :slight_smile:

Peach [import]uid: 52491 topic_id: 22661 reply_id: 110085[/import]

Makes sense except are you talking about build time or run time?

Thanks. [import]uid: 104904 topic_id: 22661 reply_id: 110142[/import]

OK. With xcode console output…

First - is there anywhere on the Ansca site with correct, accurate, and up-to-date instructions on building for IOS? I find myself going in circles between the Ansca docs and the Apple Developer site but not making significant progress.

I’ve been through the certificate and provisioning process at least 10 times and have tried in every way I could find. I’ve combined the instructions here with those on the Apple site in every way I could find as well.

I’m using OSX Lion 10.7.4 and xcode 4.3.2 and Corona 704 (not a but the version for iPad Retina).

The output from Corona is:

warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Volumes/Voyager Kids/VoyagerKids.app/VoyagerKids
codesign_wrapper-0.7.10: using Apple CA for profile evaluation
/Volumes/Voyager Kids/VoyagerKids.app: a sealed resource is missing or invalid
In architecture: armv6
codesign_wrapper-0.7.10: failed to execute codesign(1)

  • (null)

The output from the xcode console is:
>
Jun 4 16:33:20 unknown SpringBoard[15] : Reloading and rendering all application icons.
[import]uid: 104904 topic_id: 22661 reply_id: 110184[/import]

The xcode log data keeps getting cut off when I try and post it.

Jun 4 16:33:20 unknown SpringBoard[15] : Reloading and rendering all application icons.
>
Jun 4 16:36:38 unknown SpringBoard[15] : Posting ‘com.apple.iokit.hid.displayStatus’ notifyState=1
Jun 4 16:36:38 unknown UserEventAgent[12] : DEBUG: Changing screen blanked state: 0
Jun 4 16:36:38 unknown SpringBoard[15] : MultitouchHID: detection mode: 255->3 (deferring until bootloaded)
Jun 4 16:36:39 unknown SpringBoard[15] : MultitouchHID: device bootloaded
Jun 4 16:36:39 unknown SpringBoard[15] : MultitouchHID: detection mode: 3->3
Jun 4 16:36:39 unknown kernel[0] : set_crc_notification_state 0
>
Jun 4 16:36:42 unknown kernel[0] : AppleKeyStore:cp_key_store_action(1)
Jun 4 16:36:42 unknown kernel[0] : AppleKeyStore:Sending lock change
>
Jun 4 16:36:45 unknown timed[7056] : (Note ) CoreTime: Want active time in 39.18hrs. Need active time in 122.51hrs.
> >
Jun 4 16:36:47 unknown kernel[0] : launchd[7058] Builtin profile: container (sandbox)
Jun 4 16:36:47 unknown kernel[0] : launchd[7058] Container: /private/var/mobile/Applications/491247FA-A1CC-4D15-9E02-638D32F2F13C [69] (sandbox)
>
Jun 4 16:36:51 unknown kernel[0] : launchd[7061] Builtin profile: container (sandbox)
Jun 4 16:36:51 unknown kernel[0] : launchd[7061] Container: /private/var/mobile/Applications/491247FA-A1CC-4D15-9E02-638D32F2F13C [69] (sandbox)
>
Jun 4 16:36:54 unknown kernel[0] : launchd[7062] Builtin profile: container (sandbox)
Jun 4 16:36:54 unknown kernel[0] : launchd[7062] Container: /private/var/mobile/Applications/491247FA-A1CC-4D15-9E02-638D32F2F13C [69] (sandbox)
>
Jun 4 16:36:55 unknown timed[7056] : (Note ) CoreTime: Not setting system time to 06/04/2012 23:36:56 from GPS because time is unchanged
Jun 4 16:36:55 unknown timed[7056] : (Note ) CoreTime: Not setting time zone to America/Los_Angeles from CDMA
>
Jun 4 16:36:57 unknown kernel[0] : launchd[7063] Builtin profile: container (sandbox)
Jun 4 16:36:57 unknown kernel[0] : launchd[7063] Container: /private/var/mobile/Applications/491247FA-A1CC-4D15-9E02-638D32F2F13C [69] (sandbox)
>
Jun 4 16:41:59 unknown SpringBoard[15] : Posting ‘com.apple.iokit.hid.displayStatus’ notifyState=0
Jun 4 16:41:59 unknown SpringBoard[15] : MultitouchHID: detection mode: 3->255
Jun 4 16:41:59 unknown UserEventAgent[12] : DEBUG: Changing screen blanked state: 1
Jun 4 16:41:59 unknown profiled[7064] : (Note ) profiled: Service starting…
Jun 4 16:41:59 unknown profiled[7064] : (Note ) profiled: Locking device
Jun 4 16:41:59 unknown kernel[0] : AppleKeyStore:Sending lock change
>
Jun 4 16:42:09 unknown kernel[0] : AppleKeyStore:timer fired
Jun 4 16:42:09 unknown kernel[0] : AppleKeyStore:cp_key_store_action(0)
Jun 4 16:42:09 unknown kernel[0] : AppleKeyStore:Removing timer
Jun 4 16:42:09 unknown kernel[0] : AppleKeyStore:Sending lock change
>
Jun 4 16:42:59 unknown profiled[7064] : (Note ) profiled: Idled.
Jun 4 16:42:59 unknown profiled[7064] : (Note ) profiled: Service stopping.

[import]uid: 104904 topic_id: 22661 reply_id: 110186[/import]

I was referring to run not build RE console.

However the black screen issue is now confusing me - you get a signing error but also a black screen? It shouldn’t be able to install at all with a signing error.

RE up to date docs on building, certs, etc. - yes. In Device Builds sub forum there are three sticky threads; one for certificates, one for testing on device and one for app store submission. They are accurate and up to date. [import]uid: 52491 topic_id: 22661 reply_id: 110230[/import]

Thank you for keeping up on this, Peach. Your support really matters. I have been working on this continuously so between exchanges the situation changes as I push forward and sometimes fall back.

I did already find your “sticky” posts and followed them. I think it would be very helpful if the main documentation was updated accordingly even if with just a note and link to these posts so others who are starting out don’t waste so much time like I did with the wrong instructions.

* The current situation is as follows:
I started building the app by paring it down to a bare minimum (cutting out 90% of the code) and was able to get that to build, load and run. When I try and build the entire thing I get signing errors (see below). (to add to the confusion - I was actually able to build without error and load the full app first thing this morning without having made any changes. After making some modifications I again got the signing errors when I tried to build).

* The Corona errors from building the full version are:

warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Volumes/Voyager Kids/VoyagerKids.app/VoyagerKids
codesign_wrapper-0.7.10: using Apple CA for profile evaluation
/Volumes/Voyager Kids/VoyagerKids.app: a sealed resource is missing or invalid
In architecture: armv6
codesign_wrapper-0.7.10: failed to execute codesign(1)

  • (null)

* When I try and install the app via xcode I get the error message:

A signed resource has been added, modified, or deleted.

* I’m still getting some errors from the xcode console during the build process. Should I be concerned about these (I have no idea what they are)?

>
Jun 5 11:09:16 unknown SpringBoard[69] : Posting ‘com.apple.iokit.hid.displayStatus’ notifyState=0
Jun 5 11:09:16 unknown SpringBoard[69] : MultitouchHID: detection mode: 3->255
Jun 5 11:09:16 unknown UserEventAgent[12] : DEBUG: Changing screen blanked state: 1
Jun 5 11:09:16 unknown profiled[1069] : (Note ) profiled: Service starting…
Jun 5 11:09:16 unknown profiled[1069] : (Note ) profiled: Locking device
Jun 5 11:09:16 unknown kernel[0] : AppleKeyStore:Sending lock change
Jun 5 11:09:16 unknown VoyagerKids[1068] : Error setting audio session active to 0! ‘!act’
> >
Jun 5 11:09:26 unknown kernel[0] : AppleKeyStore:timer fired
Jun 5 11:09:26 unknown kernel[0] : AppleKeyStore:cp_key_store_action(0)
Jun 5 11:09:26 unknown kernel[0] : AppleKeyStore:Removing timer
Jun 5 11:09:26 unknown kernel[0] : AppleKeyStore:Sending lock change
> >
Jun 5 11:10:16 unknown profiled[1069] : (Note ) profiled: Idled.
Jun 5 11:10:16 unknown profiled[1069] : (Note ) profiled: Service stopping.
>
Jun 5 11:15:32 unknown kernel[0] : AppleBCMWLANBusInterfaceHSIC::resumeBus(): Failed, disconnect in flight (no such device) [state 0xF04, HOST_READY 0, DEVICE_READY 0]
Jun 5 11:15:32 unknown kernel[0] : AppleBCMWLANBusInterfaceHSIC::txPacket(): Failed to resume, 0xe3ff8200 (UNDEFINED)
Jun 5 11:15:32 unknown kernel[0] : AppleBCMWLANCore::txPacket(): Bus is disconnecting, issuing reconnect to retry data pkt
Jun 5 11:15:32 unknown kernel[0] : AppleBCMWLANCore::doOutputPacket(): Packet transmission failure: 0xd0748700 HSIC Bus Disconnecting
Jun 5 11:15:32 unknown kernel[0] : AppleBCMWLANCore::powerOnSystem() : Powering On
Jun 5 11:15:32 unknown kernel[0] : AppleBCMWLANCore::powerOn(): stateFlags(34823)
Jun 5 11:15:32 unknown kernel[0] : en0: BSSID changed to c4:3d:c7:a3:c6:dd
>
Jun 5 11:16:32 unknown kernel[0] : AppleBCMWLANBusInterfaceHSIC::resumeBus(): Failed, disconnect in flight (no such device) [state 0xF04, HOST_READY 0, DEVICE_READY 0]
Jun 5 11:16:32 unknown kernel[0] : AppleBCMWLANBusInterfaceHSIC::txPacket(): Failed to resume, 0xe3ff8200 (UNDEFINED)
Jun 5 11:16:32 unknown kernel[0] : AppleBCMWLANCore::txPacket(): Bus is disconnecting, issuing reconnect to retry data pkt
Jun 5 11:16:32 unknown kernel[0] : AppleBCMWLANCore::doOutputPacket(): Packet transmission failure: 0xd0749a00 HSIC Bus Disconnecting
Jun 5 11:16:32 unknown kernel[0] : AppleBCMWLANCore::powerOnSystem() : Powering On
Jun 5 11:16:32 unknown kernel[0] : AppleBCMWLANCore::powerOn(): stateFlags(34823)
Jun 5 11:16:32 unknown kernel[0] : en0: BSSID changed to c4:3d:c7:a3:c6:dd

Thanks again.
[import]uid: 104904 topic_id: 22661 reply_id: 110329[/import]

Update (thank you for getting back to me on this asap)

* The build signing error only happens when my app goes over 20MB. Are there any settings/flags/prayers to build an app greater than 20MB?

warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Volumes/Voyager Kids/Build.app/Build
codesign_wrapper-0.7.10: using Apple CA for profile evaluation
/Volumes/Voyager Kids/Build.app: a sealed resource is missing or invalid
In architecture: armv6
codesign_wrapper-0.7.10: failed to execute codesign(1)

  • (null)

* After reviewing the Apple documentation I ran the command

codesign --verify -vvvv -R=‘anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)’ /Volumes/Voyager\ Kids/VKBuild.app

and got the following output:

/Volumes/Voyager Kids/VKBuild.app: a sealed resource is missing or invalid
In architecture: armv6
resource added: /Volumes/Voyager Kids/VKBuild.app/sr_tabicon_40-inbox.png
resource added: /Volumes/Voyager Kids/VKBuild.app/sr_tabicon_support.png

* I have no idea what sr_tabicon_40-inbox.png and sr_tabicon_support.png are and why I should need them. Contrary to what the output says these resources were not added to the project folder. When I tried rebuilding again after running this command I got the same signing error as above.


* As I continue to fiddle with this I am getting inconsistent and intermittent build errors. Sometimes I can build a smaller app and sometimes I can’t (including sub 20MB apps). The latest error I am encountering is:

/Volumes/Voyager Kids/VoyagerKids3.app: replacing invalid existing signature
/Volumes/Voyager Kids/VoyagerKids3.app: signed bundle with Mach-O universal (armv6 armv7) [com.edissey.voyagerkidsv0]

* One time I also got:

warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
failed to extract requirements data: 1
/Volumes/Voyager Kids/VoyagerKids3.app: CSSMERR_TP_NOT_TRUSTED
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: codesign_wrapper.c, line: 880

  • (null)

* This seems to be due to changing the certificate trust to “Always Trust” per another post here. Per Apple it should always be “Use System Defaults”. When I changed it back the above error went away but the others remained (see below).

warning: Unable to extract codesigning entitlements from your application. Please make sure VoyagerKids3 is a valid Mach executable that’s properly codesigned. (-19050)
/Volumes/Voyager Kids/VoyagerKids3.app/VoyagerKids3: CSSMERR_TP_NOT_TRUSTED

  • (null)

* I looked up the above error on the Apple Developer site and followed all the instructions. No luck.

* I even went back and for the umpteenth time revoked all my certificates and associated keys and redid them and the provisioning profile from scratch. Afterwards I was able to build a 20MB+ app but still with the “replacing invalid existing signature” message.

* I re-installed Corona and xcode

* I rebooted

* The most consistent issue I can find find is when I try and build the app greater than 20MB - it is then that I seem to get the signing error which makes no sense to me. I still get the “replacing invalid existing signature” message from the Corona terminal.

Thanks. [import]uid: 104904 topic_id: 22661 reply_id: 110346[/import]