是否可以通过 xcrun simctl 与克隆的 iOS 模拟器进行交互?

Is it possible to interact with cloned iOS simulators via xcrun simctl?

当我在多个模拟器上并行 运行 宁 UI 测试时,克隆的模拟器似乎对 xcrun simctl 完全不可见。

运行宁xcrun simctl list时,源码模拟器出现,但处于"shutdown"状态:

4 Inch Snapshots - en-US (0) (3334A5D1-A4EC-41ED-AB10-55495B4BE329) (Shutdown)

当我尝试 运行 任何命令反对 "booted" 设备时,它声称没有模拟器 运行ning:

xcrun simctl status_bar booted override --time "2007-01-09T09:41:00-05:00"
No devices are booted.

有什么方法可以用 xcrun simctl 定位这些克隆的模拟器吗?

假设您指的是由 Xcode 的测试管理的克隆,您可以:

xcrun simctl --set testing ...