使用 Apple 的新命令行工具,xcrun simctl status_bar您现在可以根据需要在模拟器中设置状态栏,而无需任何 3rd 方程序,但是,我无法更改 iPad Pro(12.9-英寸)。
xcrun simctl status_bar
在帮助菜单中,它指出如果您输入有效的 ISO 日期,那么它会在相关的设备上进行调整: xcrun simctl status_bar --help
所以我输入了一个有效的 ISO 日期2016-09-18T17:34:02.666Z,但状态栏之后将如下所示: 日期未正确更改
2016-09-18T17:34:02.666Z
xcode command-line xcode11
command-line ×1
xcode ×1
xcode11 ×1