Build Error

I tried to build a version of the game I’m working on and got this error:

luac: /Applications/Corona/A New Game/._main.lua:1: unexpected symbol
logout

The console says:
1/16/10 11:22:48 AM [0x0-0x181181].com.anscamobile.Corona_Simulator[3801] luac: /Users/…/Documents/Code/Corona Code/A New Game/._main.lua:1: unexpected symbol
1/16/10 11:22:48 AM com.apple.launchd.peruser.501[96] ([0x0-0x181181].com.anscamobile.Corona_Simulator[3801]) Exited with exit code: 1

This doesn’t seem to provide any helpful information to diagnose the problem.

The program runs fine in the simulator.

The first lines of the code are:
– Load external button library (should be in the same folder as main.lua)
local ui = require(“ui”)

and the ui.lua is in the project folder.

Any idea why the build isn’t working? [import]uid: 1560 topic_id: 398 reply_id: 300398[/import]

What program are you using to edit your code? [import]uid: 5 topic_id: 398 reply_id: 715[/import]

TextMate.

I could email you a copy of the source if that would help.

I just downloaded TextWrangler, did a “Save As” and tried building again. Same result. [import]uid: 1560 topic_id: 398 reply_id: 716[/import]

Tom

send me code info@anscamobile.com (zipped)

carlos
[import]uid: 24 topic_id: 398 reply_id: 718[/import]

Sent. As I mentioned in the note, it may be a corrupt file that’s causing the problems. The project folder will not zip properly. [import]uid: 1560 topic_id: 398 reply_id: 720[/import]

Problem resolved. Thanks for the help anyway. The folder the files were in seemed to be corrupt. I could not zip it. I moved the files into a new folder and it zipped. Then tried a build and it worked. [import]uid: 1560 topic_id: 398 reply_id: 721[/import]

Glad it works. BTW: Looks cool. :slight_smile:

Carlos [import]uid: 24 topic_id: 398 reply_id: 722[/import]

I’m using the latest Corona version and the exact same thing just happened to me. Copying the files to a new folder did not help.

I fixed the problem by using the OS X terminal to navigate to my code directory, and removing ._main.lua with the command:

rm ._main.lua

I had no problem building my app after that.
[import]uid: 4418 topic_id: 398 reply_id: 1014[/import]