iPhone Simulator does not open application supplied via -SimulateApplication parameter

Originator:mteper
Number:rdar://17851359 Date Originated:7/29/2014
Status: Resolved:
Product:iOS Simulator Product Version:Version 7.1 (463.9.41)
Classification: Reproducible:
 
Summary:
According to various Internet (blog / StackOverflow) postings, it used to be possible to launch an app in iOS Simulator from the command line by supplying the path to the app executable via -SimulateApplication parameter. As of Mavericks / Xcode 5, this no longer appears to work.

Note: it *does* work when pointing to a build-in app (e.g. Safari)

Steps to Reproduce:
1. Build app targeting iOS Simulator
2. Launch simulator from Terminal, supplying -SimulateApplication parameter like this: /path/to/simulator -SimulateApplication /path/to/MyApp.app/MyApp
3. Observe that simulator launches but the app does not open

However, the same steps, pointed to Safari.app/Safari do result in simulator launching and opening Safari.

Expected Results:
Would expect the simulator to launch my app.

Actual Results:
Simulator does not launch my app.

Version:
OS X Mavericks
Xcode 5.1.1
iOS Simulator Version 7.1 (463.9.41)

Notes:
We are developing a tool aimed at iOS developers, and forcing them to step out of our tool and into Xcode just to launch their app is cumbersome at best. We need a way to launch the app in simulator directly from our tool.

Configuration:
MacBook Air
OS X Mavericks
Xcode 5.1.1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!