如何在 Xcode 9 中重置模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/46372976/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:17:17  来源:igfitidea点击:

How do I reset the Simulator in Xcode 9

xcodeios-simulatorxcode9

提问by Gandalf458

I'm trying to reset it. In Xcode 8 we went to "Simulator -> Reset Content and Settings". I don't see that in Xcode 9 and need to wipe my simulator.

我正在尝试重置它。在 Xcode 8 中,我们转到“模拟器 -> 重置内容和设置”。我在 Xcode 9 中没有看到,需要擦除我的模拟器。

回答by Gandalf458

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 中,它现在位于“设备 -> 擦除所有内容和设置”下

回答by Naishta

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.

您需要先单击模拟器。硬件 > 擦除所有内容和设置。这将重置模拟器。等待一分钟让模拟器重建。

enter image description here

在此处输入图片说明

回答by krummens

Xcode 11.4

Xcode 11.4

The simulator app no longer has the Hardwaremenu. It is now the Devicemenu.

模拟器应用程序不再有Hardware菜单。现在是Device菜单。

Device > Erase All Content and Settings

设备 > 抹掉所有内容和设置

Erase All Content and Settings location

擦除所有内容和设置位置