When trying to configure the XCode Build options to run the Corona Simulator, I discovered a bug. It doesn’t work if there is a space in the path name.
To test this, do the following:
Create a main.lua file in a directory with a space in the name. For example, in my user home directory I have a folder named “Projects” and within that is a folder named “Test Project” which contains the main.lua file.
Now open a Terminal window and type:
/Applications/Corona/simulator “~/Projects/Test Project”
it will fail to open the file. Now remove the space in the folder (so it is called “TestProject”) and now in the Terminal window, type:
/Applications/Corona/simulator ~/Projects/TestProject
and you will see that it works correctly. Seems like a bug in the simulator and should be fixed asap.
Note that if you put quotes around the second example, like this:
/Applications/Corona/simulator “~/Projects/TestProject”
then it also will not work. So it seems Corona is not handling " quotes around the file name properly.
Also, adding a way to specify the device from the command line is really needed. If you guys are not going to write your own IDE, then to use external editors like XCode you really need to support a full set of command line arguments so we can automate our build process.
[import]uid: 12529 topic_id: 5958 reply_id: 305958[/import]