Skip to content

Device Type ignored when Simulator Already Running #20

@rhgills

Description

@rhgills

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:

  1. quit the simulator
  2. sim.launch_ipad_app(test_app_path)
  3. DON'T quit the simulator
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions