Ah, just what I needed thanks! I happen to be a Mac user and old-school who prefers the command line. Reading the link you sent I realized that the simulator executable provides -project and -skin options to do exactly what I was after.
This may be useful for other people. In my project I have a Makefile that in its simplest for looks like this:
.PHONY: all run
SIMULATOR = /Applications/CoronaSDK/Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator
all: run
run: DEVICE?=iPad
run:
@echo “Running in $(DEVICE) Simulator”
@$(SIMULATOR) -project $(PWD) -skin $(DEVICE)
(Just remember to insert and actual tab before the @ symbols, the forum is stripping spaces out)
Now, when you want to run it, just type:
make run
If you wanted a different device, you can then run:
make run DEVICE=iPhone
And, there you go. As a bonus, I just realized that this is what the “Corona Terminal” script is doing, so I can get debugging output right in the shell where I ran make. Just like what I’m used to when running other types of apps (c++, python, etc.)
Thanks! [import]uid: 79443 topic_id: 14717 reply_id: 55618[/import]