Closed stowy closed 7 years ago
Can you please share the code so I can try to reproduce the issue?
sure, let me just test locally after installing the update, i was using a beta version of XCode 8.1
this is the code that isn't running currently:
require 'simctl'
puts SimCtl::Runtime.latest(:ios).name
puts SimCtl.devicetype(name: 'iPhone 6').name
# Destroy and create devices for given name, type and os version
runtime = SimCtl::Runtime.latest(:ios)
name = $options.sim_name
device = SimCtl.device({"name"=>name})
created = false
if device == nil then
puts "Creating device #{name}"
device = SimCtl.create_device(name, SimCtl.devicetype(name: 'iPhone 6'), runtime)
created = true
end
if (device.state != :booted) then
puts "Booting device #{name}"
device.launch!
device.wait!{|d| d.state == :booted }
if !$options.boot_only && !$options.build then
# Wait for sim to load before running tests
if created then
sleep 10
end
sleep 5
end
end
I think the failure we're seeing is at the wait command
Never mind, seems i was wrong, is working after the latest update. Thanks for your attention and very useful tool!
Perfect! Thanks for the feedback!
Trying to launch a simulator with iOS10.1 in XCode 8.1 build tools fails with: