简体   繁体   中英

How do you deploy an iPhone app to the simulator from the command line?

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.

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.

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM