Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dflems opened this issue Jan 17, 2018 · 1 comment

Comments

@dflems
Copy link

dflems commented Jan 17, 2018

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.

@UnsafePointer
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants