[TIMOB-23821] ioslib: Use simctl to get list of all simulators
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-02-06T06:22:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS, Tooling |
Labels | cb-tooling, ioslib |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2016-08-24T21:19:34.000+0000 |
Updated | 2020-02-06T06:22:34.000+0000 |
Description
It's possible for an iOS or WatchOS Simulator to be deleted, but the device directory to remain. The current ioslib only detects simulators by walking the filesystem. This leads to an inconsistent state.
Instead, we should just eat the cost of subprocessing simctl. I think we're still going to have to read each device's plist file to get additional info.
This appears to have been resolved back in ioslib@1.1.0 over 3 years ago.