简体   繁体   English

如何在 Xcode 12.4 上运行具有控制中心的 iOS 模拟器?

[英]how to run an iOS simulator that has a control center int it on Xcode 12.4?

while debugging on simulators operating on iOS 13.1, 14.4 I can't use the control center of the simulator, it always shows a blank screen when I swipe from top of the screen to bottom.在 iOS 13.1、14.4 上运行的模拟器上调试时,我无法使用模拟器的控制中心,当我从屏幕顶部滑动到底部时,它总是显示空白屏幕。

after some googling, I found some answers suggesting to use simulators operating on iOS 10.3.1经过一番谷歌搜索,我发现一些答案建议使用在iOS 10.3.1上运行的模拟器

I am using Xcode 12.4, and I downloaded simulator 10.3.1 but its not showing in installing list when I try to add additional simulators,我正在使用 Xcode 12.4,我下载了模拟器 10.3.1,但是当我尝试添加其他模拟器时,它没有显示在安装列表中,

and in Xcode release notes I saw that Xcode 12.4 supports iOS simulators from 10.3.1 to 14.4在 Xcode 发行说明中,我看到Xcode 12.4 支持从 10.3.1 到 14.4 的 iOS 模拟器

so my question is:所以我的问题是:

how can use a simulator that has a control center in it while developing on Xcode 12.4在 Xcode 12.4 上开发时,如何使用具有控制中心的模拟器

any help would be much appreciated.任何帮助将非常感激。

You can't do it.你不能这样做。 Simulators do not have control center "widgets".模拟器没有控制中心“小部件”。 You can bring down the control center sheet, which is a good test of what your app does when deactivated;您可以拉下控制中心工作表,这可以很好地测试您的应用在停用时的功能; but it is blank, as you say.但正如你所说,它是空白的。

I cannot imagine what sort of test you would need actual "widgets" for, but if you want those, test on a device.我无法想象您需要实际的“小部件”进行什么样的测试,但如果您想要这些,请在设备上进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM