views:

833

answers:

4

I'm using xcodebuild from the command line to compile several variations of an iPhone app but I've not been able to figure out how to deploy those builds into the iPhone Simulator from the command line. Could somebody please enlighten me? Thank you.

A: 

This topic will tell you how to do it manually, you should be able to automate the process as well:

http://stackoverflow.com/questions/947317/can-i-install-an-app-to-the-simulator-without-the-source-code

Greg Martin
thanks but that topic just explains how to copy an already-deployed-to-simulator project to another machine.
Teflon Ted
Just create the mentioned .sb file programatically and copy your executable built for the simulator along with that file into the applications directory in the simulators folder in your Library.
Greg Martin
+1  A: 

It would appear that using the -sdk iphonesimulator3.0 flag with xcodebuild should generate the .sb files, but this doesn't seem to work. Maybe it's not possible ? Anybody have an answer ? Thanks.

John
+2  A: 

Get the open source "iphonesim" and it'll do it for you: http://github.com/jhaynie/iphonesim/

It's small and written in objective C, and it seems to work fine from the command line.

apenwarr
A: 

Any chance it's possible to deploy to an iPhone via the command-line?

Jon
This isn't an answer to the question. No one will see your question here, so I suggest creating a new question that asks this and deleting this answer.
Brad Larson