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

会有一股神秘感。 提交于 2019-11-28 21:27:17

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 ?

Greg Martin

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?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!