Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

This was a looong time ago. But if someone is interested [Simulator_installation_path]/iPhone\ Simulator -SimulateApplication [AppFolder_full_path]/[AppName].app/[AppName]

My simulator path was: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS

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 ?

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

Can I install an app to the simulator without the source code?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top