simctl icon indicating copy to clipboard operation
simctl copied to clipboard

Calling device.runtime throws exception for runtimes that are not installed

Open dflems opened this issue 7 years ago • 1 comments

If you have old simulators from an earlier version of Xcode and no longer have that runtime installed, calling device.runtime will throw an exception:

SimCtl::RuntimeNotFound: Could not find a runtime matching {:identifier=>"com.apple.CoreSimulator.SimRuntime.iOS-11-1"}

I'm not sure what the "correct" behavior is here. The simulator exists (has a directory on-disk and is reported by simctl), but has an invalid runtime.

dflems avatar Jan 17 '18 21:01 dflems

Yeah I've noticed this too when running tests in a computer that doesn't have all the required Xcode versions installed. What would you suggest instead of raising an exception? A nil value would be confusing in my opinion.

UnsafePointer avatar Jan 23 '18 08:01 UnsafePointer