简体   繁体   English

如何在 Xcode 9 中重置模拟器

[英]How do I reset the Simulator in Xcode 9

I'm trying to reset it.我正在尝试重置它。 In Xcode 8 we went to "Simulator -> Reset Content and Settings".在 Xcode 8 中,我们转到“模拟器 -> 重置内容和设置”。 I don't see that in Xcode 9 and need to wipe my simulator.我在 Xcode 9 中没有看到,需要擦除我的模拟器。

I found it.我找到了。 It is now under "Hardware -> Erase All Content and Settings"它现在位于“硬件 - > 擦除所有内容和设置”下

Edit: In Xcode 11 it is now under "Device -> Erase All Content and Settings"编辑:在 Xcode 11 中,它现在位于“设备 -> 擦除所有内容和设置”下

Xcode 9.4 Xcode 9.4

You need to click on Simulator first.您需要先单击模拟器。 Hardware > Erase All Content and Settings.硬件 > 擦除所有内容和设置。 This will reset the simulator.这将重置模拟器。 Wait for a minute for the Simulator to rebuild.等待一分钟让模拟器重建。

在此处输入图片说明

Xcode 11.4 Xcode 11.4

The simulator app no longer has the Hardware menu.模拟器应用程序不再有Hardware菜单。 It is now the Device menu.现在是Device菜单。

Device > Erase All Content and Settings设备 > 抹掉所有内容和设置

擦除所有内容和设置位置

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

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