Sha256: 91283e76cbd5ffc67e06748797ad2eac4c99f32d66c8a2bb0a2e1057b9ed6296
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
module SimCtl class Command module Launch XCODE_HOME = `xcode-select -p`.chomp # Launches a Simulator instance with the given device # # @param device [SimCtl::Device] the device to launch # @return [void] def launch_device(device) # Launching the same device twice does not work. # Simulator.app would just hang. Solution: Kill first. kill_device(device) command = "open -n #{XCODE_HOME}/Applications/Simulator.app --args -ConnectHardwareKeyboard 0 -CurrentDeviceUDID #{device.udid}" system command end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simctl-1.1.0 | lib/simctl/command/launch.rb |
simctl-1.0.2 | lib/simctl/command/launch.rb |
simctl-1.0.1 | lib/simctl/command/launch.rb |