-
Notifications
You must be signed in to change notification settings - Fork 42
Description
When specifying a specific device to launch with, an already running simulator will be used regardless of any inconsistency between that simulator's device and the requested device.
To reproduce:
- quit the simulator
- sim.launch_ipad_app(test_app_path)
- DON'T quit the simulator
- sim.launch_iphone_app(test_app_path)
The app will be launched inside the already running iPad simulator, instead of in an iPhone simulator. This looks like a problem with ios-sim. To workaround, you need to restart the simulator whenever you want to launch with a device type that isn't that of the currently running simulator. This can be done using Simulator#quit_simulator or by specifying the :restart param when using the Sinatra app. Perhaps Sim-Launcher could detect a currently running simulator, interrogate for the device type and force a restart when launching an app that is incompatible?
Probably a better idea just to fix in ios-sim.
See also: ios-control/ios-sim#49