Reads booted CoreSimulator devices and safely shuts down an exact device.
The device list comes from simctl. The persisted CoreSimulator
lastUsedAt value protects devices that were only recently booted. Active
xcodebuild and xctest processes are treated as automation blockers.
Summary
Functions
Returns current-user xcodebuild or xctest processes.
Returns every booted Simulator device in the default device set.
Revalidates and shuts down one exact Simulator device without erasing it.