[Resolved] Corona Build iOS doesn't work, failed codesign verification

Hey Guys!
I used XCode to create a HelloWorld app on Mac, compiled it, signed it, tested it on my iPad. Everything works fine.

Corona is not working (sigh…)
I tried to Build the “EggBreaker” example in the “Sample Code” directory, but I obtain this error:

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
/Users/vortika/Desktop/EggBreaker.app: code or signature modified
failed to extract entitlements: 1
AssertMacros: entitlements_requested, At least need an application-identifier entitlements file: /SourceCache/codesign_wrapper_Sim/Security-1245/codesign_wrapper/codesign_wrapper.c, line: 866

  • (null)
    warning: Unable to extract codesigning entitlements from your application. Please make sure EggBreaker is a valid Mach executable that’s properly codesigned. (-19050)
    /Users/vortika/Desktop/EggBreaker.app/EggBreaker: code or signature modified
  • (null)

Here it the log of what I did:

Opened https://developer.apple.com/devcenter/ios/index.action

Logged in

Section “iOS Provisioning Portal”

click “App IDs” -> New AppID
Description: EggBreaker
Bundle SeedID: Use Team ID
Bundle Identifier: com.vortika.eggbreaker

Section “Provisioning”
Tab “Distribution”
click “New profile”
Distribution Method: Add Hoc
Profile Name: EggBreaker Profile
App ID: EggBreaker
Devices: iPad (previously registered on section “Devices”)

Section “Provisioning”
Refreshed page, so that the download button appears
Click “Download” to obtain the provisioning certificate
Double click on download file to install it into XCode
Open corona simulator
Open EggBreaker example (Corona Samples)
Click “File -> Build -> iOS”
Application Name: EggBreaker
Version: 1.0
Build for: Device
Supported Devices: iPhone + iPad (Universal)
Code Signing Identity: selected “EggBreaker Profile”
Click “Build”
BOOM!!! I get the error…!!!

Please, someone tells me what’s WRONG!!!

[import]uid: 86439 topic_id: 26447 reply_id: 326447[/import]

I do not understand WHY you`re trying to use the DISTRIBUTION profile at all! Are you going to release to AppStore the “EggBreaker”?

I believe that is not and so for what do you need an Distribution Profile?

For testing purposes you only need an AD-HOC profile at all or at a Team Provisioning Profile* at least, nothing else.

Take care also of you Xcode Version, iOS version, OSX version and so on. Mantain your keychain “clean” too.

PS: Also, keep your system updated as well (eg. Apple has released few time ago 2 OSX JAVA updates) and those updates was responsible to make the Application Loader be working again as well (so be sure to have your application loader updated if you really want to PUBLISH your app).

Rodrigo. [import]uid: 89165 topic_id: 26447 reply_id: 107312[/import]

Hi Rodrigo!
First of all, thank you for replying.
Maybe you missed something on my log, I DID select “Distribution Method: Ad Hoc”

And I used the Distribution “Ad Hoc” because I do want to test my own APP on many Apple Devices of some friends before uploading my app on the App Store.

One important fact is that it can’t be a Keychain mess, simply because XCode doesn’t show any problem about compiling, signing and deploying on real devices.
[import]uid: 86439 topic_id: 26447 reply_id: 107316[/import]

@vortika, am sorry for that! I really missed that info about the Ad-hoc.

So, let`s go to see what it could be:

Reading again ALL the info you provided above, I really cannot see now any thing you have done wrong way. :\

BUT, what about your open Xcode >> Organizer and there click on REFRESH/LOG-IN into with your credential of the iTC and it will start to “fetch” all your provisionings uptodate, your certificates, and everything else and if it “catch” a “bug” it will display for you in RED color, so it would be an easy found.

Also, I only use the Organizer to make all my installations on my test devices and also delete from the iDevice too - it has just to be USB plugged with your Mac to work nice.

So, sorry one more time about my first attempt to help (I was blind) and it is my “best” shot right now -> Use Organizer to see if there are “all good” with your provisionings and also still with your registered iDevices (take care to not have any EXPIRED profile installed into your test device as well before trying to install any other new built one).

EDIT: Considering am speaking about OSX Lion and Xcode latest Version 4.3.2 (4E2002)
I really hope it shed some light for you.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 26447 reply_id: 107341[/import]

What’s in your build.settings? [import]uid: 27183 topic_id: 26447 reply_id: 107346[/import]

@don, wonderful! Nice question.
[import]uid: 89165 topic_id: 26447 reply_id: 107347[/import]

One more possibility. If you already had Corona simulator started before you generated the new provisioning profile, then once you created your new profile, you simply tried to build your app… if that’s the process you took, Corona will not register the latest certificate (or at least that’s been my experience.) You’ll need to, first, have the latest provisioning profile added to Xcode before you launch Corona. Once it’s added, launch Corona and build your app.

This may have nothing to do with your situation, but just in case.

Naomi [import]uid: 67217 topic_id: 26447 reply_id: 107369[/import]

This is really interesting:

“EDIT: Considering am speaking about OSX Lion and Xcode latest Version 4.3.2 (4E2002)”
Of course I don’t have Lion, but OSX 10.6.8 Snow Leopard (fully updated) and XCode 3.2.3

Now you are telling me that developing with Corona “forces” me to have/buy LION and XCode 4.3.2 ??? I have never read anywhere, my bad, that minimum system requirements of Corona are so “high”.

I have no problem to buy Lion, but I have to be ABSOLUTELY sure that my money spent on a new OS will solve this bug.

[import]uid: 86439 topic_id: 26447 reply_id: 107382[/import]

Hey there,

Just to clarify these are *NOT* Corona requirements; these are in fact Apple requirements when it comes to building an app that will run on iOS 5.1. (So many iOS devices and all new iPads.)

Your signing error is hard to answer but no, our requirements are not “so high” - these are Apple’s requirements and you would want to post in their dev forum if you want to discuss that.

For signing, do you have any special characters in your cert/prov names? Do you have any subfolders in your project with reserved names, such as “resources”? [import]uid: 52491 topic_id: 26447 reply_id: 107407[/import]

@Peach, thanks for making my post clear for @vortika.

Also, when I posted that, I was telling about my own config just because I know about it and also because I`ve heard also that Apple is dropping support down many things. :\

Sorry for the misunderstanding anyway.
Rodrigo. [import]uid: 89165 topic_id: 26447 reply_id: 107420[/import]

My company decided to upgrade to Lion and XCode and see what happens, I will keep you updated.

@Peach: I don’t have any special characters anywhere, and I only have one subfolder named “images”, do you think it’s better to move all the contents in the root?

Just for the record, I didn’t mean to start an argument about requirements of Corona or Apple. [import]uid: 86439 topic_id: 26447 reply_id: 107473[/import]

@vortika that won’t make any difference. keep your images in the subfolder you have named “images” :slight_smile: [import]uid: 84637 topic_id: 26447 reply_id: 107489[/import]

Hi all!
Keeping my promise…

I updated to Lion 10.7.4 and XCode 4.3.2, and now the Corona Simulator builds for iOS without any warning or errors.

For the ones who are reading this message, this means that EVEN IF your old XCode works great and everything runs fine, you should always upgrade to the latest version of both iOS and XCode to be sure that Corona works smoothly.

Of course Apple does recommend to upgrade everything, all the time, but some Apple developers still use the “old” XCode to create APPs and there are no problems at all (of course you can’t use latest iPad3 libraries, but not all people care about that…).

Thank you to the whole forum for the great support to solve this case.
[import]uid: 86439 topic_id: 26447 reply_id: 107860[/import]

Hey Vortika, thanks very much for updating the thread - marking as resolved :slight_smile: [import]uid: 52491 topic_id: 26447 reply_id: 107936[/import]

Hi, I am glad to know yours is working!

My corona SDK: 2012.821
Mac: Lion 10.7.2.
XCode 4.3.2. It has only executable Xcode.

When I do iOS build in Corona simulator, get error.
The iOS SDK located at is missing the following component(s):
(null)Please (re)install the iOS SDK.
Should I try lion 10.7.4?

thanks advance!
[import]uid: 150242 topic_id: 26447 reply_id: 108474[/import]

I will try to use Lion 10.7.4 exactly as Vortika did. It may resolve this problem. [import]uid: 150242 topic_id: 26447 reply_id: 108511[/import]

or use build 915 for 5.1 build [import]uid: 118379 topic_id: 26447 reply_id: 138879[/import]

or use build 915 for 5.1 build [import]uid: 118379 topic_id: 26447 reply_id: 138879[/import]