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?
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.
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.
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.
Glad it works. BTW: Looks cool. :-)
Carlos
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.
What program are you using to edit your code?