使用xcrun simctl status_bar在iOS模拟器上更改或删除运营商名称

问题描述 投票:7回答:1

[从iOS 13开始,SimulatorStatusMagic不再起作用,但是很高兴Apple通过simctl status_bar提供了第一方解决方案。

但是我找不到删除或更改“运营商”文本的任何方法:

iOS 13 Status Bar

设置--cellularMode notSupported将其删除,但它也将删除蜂窝条。

是否有任何方法可以重现SimulatorStatusMagic的先前功能并仅删除或更改运营商名称?

Edit: Xcode 11.4包含一个新参数来设置运算符名称,尽管它似乎不起作用。该文档提供以下内容:

    --operatorName <string>
         Set the cellular operator/carrier name. Use '' for the empty string.
xcode ios-simulator xcrun
1个回答
0
投票

对我有用的是

--operatorName ' '
© www.soinside.com 2019 - 2024. All rights reserved.