Method: RunLoop::CoreSimulator#initialize

Defined in:
lib/run_loop/core_simulator.rb

#initialize(device, app, options = {}) ⇒ CoreSimulator

Returns a new instance of CoreSimulator.

Parameters:

  • device (RunLoop::Device)

    The device.

  • app (RunLoop::App)

    The application.

  • options (Hash) (defaults to: {})

    Controls the behavior of this class.

Options Hash (options):

  • :quit_sim_on_init (Object) — default: true

    If true, quit any running

  • :xcode (Object)

    An instance of Xcode to use simulators in the initialize method.



373
374
375
376
377
378
379
380
# File 'lib/run_loop/core_simulator.rb', line 373

def initialize(device, app, options={})
  @app = app
  @device = device
  @xcode = options[:xcode]

  # stdio.pipe - can cause problems finding the SHA of a simulator
  rm_instruments_pipe
end