【问题标题】:xcrun simctl status_bar not working in xcode 12xcrun simctl status_bar 在 xcode 12 中不起作用
【发布时间】:2020-07-06 12:32:55
【问题描述】:

我刚刚将我的 Xcode 升级到 12 beta。我尝试使用以下命令覆盖模拟器上的状态栏:

xcrun simctl status_bar  52B135BF-F549-4684-A959-914499AB3296  override --time '9:41' --batteryState charged --batteryLevel 100;

此命令适用于以前的版本。但是,它不再起作用了。 有谁知道如何解决这个问题?

【问题讨论】:

  • 您可以只说 booted 而不是大长标识符。或者使用 sim 名称。
  • 我刚刚运行了xcrun simctl status_bar booted override --time '9:41' --batteryState charged --batteryLevel 100,它运行良好。投票结束是不可复制的。
  • 它在我的 Mac 上不起作用。请问有没有人有同样的问题。

标签: xcode statusbar simulator xcrun simctl


【解决方案1】:

来自Xcode 12b3 Release Notes:“simctl 状态栏覆盖在运行 iOS 或 iPadOS 13.6 或更早版本的模拟设备上无法正常工作。(63958080)”

我自己也被这个烫伤了。

【讨论】:

  • 记录为不适用于 Xcode 13 Beta 2: >状态栏覆盖在模拟设备中不可用。 (78155601)
猜你喜欢
  • 2023-02-10
  • 1970-01-01
  • 1970-01-01
  • 2020-06-10
  • 2016-06-19
  • 1970-01-01
  • 2020-10-27
  • 2016-04-09
  • 1970-01-01
相关资源
最近更新 更多