【问题标题】:Error shutting down simulator关闭模拟器时出错
【发布时间】:2017-02-27 09:13:34
【问题描述】:

xcrun simctl 文档中有一个条目:

xcrun simctl shutdown booted - 关闭设备

当我从命令行调用它时,模拟器实际上并没有关闭,而是被冻结了。

如何解决?

我发现的唯一解决方法是通过模拟器的进程 ID 杀死模拟器。

killall "Simluator"

【问题讨论】:

    标签: ios ios-simulator xcrun simctl


    【解决方案1】:

    Simulator.app 早于 CoreSimulator 并且仍然假定它拥有整个启动生命周期。您应该只对通过“simctl boot”启动的设备使用“simctl shutdown”。

    【讨论】:

    • 你能给我举个例子,如何使用simctl boot正确启动模拟器吗?
    • Simulator.app 只能在它拥有生命周期的设备上正常工作;我们目前不支持混合 simctl boot / simctl shutdown 和 Simulator.app。大多数其他 simctl 命令都适用于由 Simulator.app 启动的设备。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-20
    • 2023-03-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多