Error message: An error occurred during the build. Please try again later.

Hi there,

I am unable to get any project to build using the “Build for iPhone” command in the Corona simulator. The build starts and ends with the error message “An error occurred during the build. Please try again later.”

The terminal shows the following output:


Copyright © 2009-2010 ANSCA, Inc.
Version: 1.1
Build: 2010.1.29.1
adding: embedded.mobileprovision (deflated 30%)
adding: main.lu (deflated 45%)
Runtime error
assertion failed!
stack traceback:
[C]: ?
[C]: in function ‘assert’
?: in function ‘?’
?: in function <?:226>


I am using a registered and up to date version of the Corona SDK. The SDK I have installed is iPhone SDK 3.2 beta 2 (to target iPad).

Does anyone know if there are any compatibility issues for this beta?

Thanks in advance,

Bart
[import]uid: 4848 topic_id: 504 reply_id: 300504[/import]

Hi again,

just a short update; I’ve removed iPhone SDK 3.2 beta 2 and reinstalled iPhone SDK 3.1.3 . Unfortunately the problem persists with the exact same message.

Does anyone know a solution to this problem?

Regards,

  • Bart [import]uid: 4848 topic_id: 504 reply_id: 1000[/import]

I get the same error message, exactly, down to the same terminal trace.
I cannot do a device build at all.

Corona SDK 1.1
iPhone_SDK 3.13

clean install on a brand new Mac Mini, OS 10.6.2

Ive got working Dev and AdHoc distribution certs installed. [import]uid: 4606 topic_id: 504 reply_id: 1118[/import]

Hi Daddy Sculpin,

I contacted Ansca and had to check for the following:

  • Is SDK installed in /Developer (not a different location, but /Developer is the default)
  • The folder of Corona and your program should not contain any non standard ASCII characters (e.g. ü)
  • Neither Corona folder nor the project folder should be locked
  • System should not be a hackintosh
  • Have you tried deleting the preferences ( user/library/preferences/ com.anscamobile.Corona_Simulator.plist (any additional com.anscamobile.* files in the prererences folder).

Just thought I’d let you know to check for these aspects before contacting Ansca. In any case, it did not resolve the problem for me unfortunately.

Still awaiting a solution, though being on a time schedule I moved to Xcode for the time being.

Regards,

Bart
[import]uid: 4848 topic_id: 504 reply_id: 1125[/import]

Hi Bart,
thanks for the thoughts.
I just ran through the checklist you provided, trashed prefs, checked paths, even renamed a few directories swapping under_scores to CamelCase just in case.
No joy yet.
I’d sure like to get a build working before my 30 day trial is over, it took me most of that time wrestling with Apple to get valid certs and proving that I exist to get developer status.
I have just 8 days left and havent seen a hardware build yet.
I really -want- to like this solution.

FWIW, I am successfully building and installing via another framework, so I know that Ive got valid Apple permissions and certificates. Perhaps they are not in the right spots for Corona though…

[import]uid: 4606 topic_id: 504 reply_id: 1127[/import]

Hi Daddy Sculpin,

good to hear that the certificates seem to work with another framework. There is one solution to the time trial though: buying the SDK :slight_smile: There might possibly be a slight chance that this will eleviate the problem, though it sure did not for me.

Hope Ansca comes up with a suitable solution ASAP. If any solutions surfaces I will let you know through this forum. For now I’m off to Xcode again…

Regards,

Bart [import]uid: 4848 topic_id: 504 reply_id: 1134[/import]

We can setup an adobe connect session next week to see what is going on from this end

Does Monday of next week work? 11:00am pacific time?

c [import]uid: 24 topic_id: 504 reply_id: 1135[/import]

Also, do either of you want to send in your project folders so we can try and build them here? That might shed some light on what’s going on. [import]uid: 3007 topic_id: 504 reply_id: 1136[/import]

I’m having the exact same issue. I’m using the trial version to see if I want to purchase Corona for my iPad development, but I can’t get ANY of the demos that come with it to build for testing on my iPod Touch. They work fine in the simulator, but the “Build for iPhone” gives me the exact same error specified at the beginning of this thread for any and all of the demos. I’m seriously bummed, because Corona looked very promising to me.
[import]uid: 5540 topic_id: 504 reply_id: 1143[/import]

Id be happy to supply a project folder.
By that do you mean the directory form which we are trying to build?
If so, Im just trying to build-to-device the supplied Hello World project.
Runs fine on the simulator, so Im guessing there is some kind of configuration issue,
certificates, or SDK version issues perhaps, directory naming, default paths?

let me know specifically what you need me to supply and I’ll be happy to send it along.

thanks [import]uid: 4606 topic_id: 504 reply_id: 1144[/import]

I agree, this problem occurs independent of which project I try to build. For example, I tried the Hello World and Fishies demo code projects. Both appear to run without any problems in the simulator but won’t run when opening for build.

@Carlos: Unfortunately I’m in GMT+1 which is kind of a problem when setting up a meeting in your timeframe…

@evank: Isn’t there any feature we can try to have the Corona compiler output more specific details as to the cause of the error? I don’t expect the problem to reside in the projects we try to compile or the provisioning profiles we have installed. [import]uid: 4848 topic_id: 504 reply_id: 1146[/import]

My experience installing and testing Cocos2d gave me the ability to find the answer. The problem is that the App ID that you create on Apple’s site MUST be “com.anscamobile.*” The DeviceBuildGuide.PDF almost kinda tells you that, but not quite. The closest it gets is “com.anscamobile.newapplication” and “com.domainname.*”, which was just not quite clear enough for this newbie!

Once you create that App ID you can create the Provisioning Profile(s) (development only if you’re using trial, development or distribution if you’ve already bought Corona) using that App ID and all of the Corona demos will successfully build! You can then use Xcode to move them to your device.

I’ve now got the “Fishies” and “Hello World” demos on my iPod Touch and they work fine.

Hope this helps others!

Jim
[import]uid: 5540 topic_id: 504 reply_id: 1150[/import]

Pinback,

thanks for that, Im another step closer.
I was, indeed, using my own internal appID, not ‘com.anscamobile.*’

Ive successfully created a Corona specific AppID, then a dev and AdHoc distribution profile.

Using the adhoc, Im able to build the HelloWorld example.
When installing via XCode,
I got the error:
“The executable was signed with invalid entitlements”

If anybody else runs across this, make sure you have added your Corona-specific provisioning profile to the device’s provisioning area.

bottom line is - a successful install of the Hello World app.

thanks community.
Hooray, testing begins in earnest now. [import]uid: 4606 topic_id: 504 reply_id: 1152[/import]

Hi all,

Indeed changing the app ID to match the com.anscamobile.myappname did resolve the problem. This leaves the question as how to proceed when deploying our own applications through the App store. Isn’t it possible to use our own com.companyname.myappname app ID?

Thanks for the helpful suggestion Pinback!

Regards,

Bart [import]uid: 4848 topic_id: 504 reply_id: 1182[/import]

I shouldn’t comment here since I’m still a noob, but I don’t see how you could specify your own com.companyname.myappname when using Corona. If you were doing it the hard way with just the Apple SDK and Xcode, you’d set that using a file in your project that has a “.plist” ending. But there is no such file when building with Corona, so it seems to me that is taken care of internally by Corona and therefore you can’t change it.

I could be wrong though… often am… :slight_smile:
[import]uid: 5540 topic_id: 504 reply_id: 1186[/import]

Don’t know if this is any help, but I didn’t have any success building for the device with an unregistered version of Corona either. As soon as I registered it allowed me to build using an ad-hoc distribution certificate without any problems. I used an existing certificate from previous Xcode builds with my own domain name for the naming scheme.

-srk [import]uid: 4639 topic_id: 504 reply_id: 1242[/import]