如何在不卸载 Xcode 的情况下删除 iOS 模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23450214/
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 04:54:36  来源:igfitidea点击:

How could I remove iOS simulator without uninstall Xcode

iosobjective-cxcode

提问by zontragon

There is a problem with my iOS simulator. I want to remove iOS 7.1 simulator from Xcode then download and install it again from XCode/Preferences/download tab. I couldn't find how to remove it.

我的 iOS 模拟器有问题。我想从 Xcode 中删除 iOS 7.1 模拟器,然后从 XCode/Preferences/download 选项卡重新下载并安装它。我找不到如何删除它。

How could I remove iOS Simulator without uninstall Xcode?

如何在不卸载 Xcode 的情况下删除 iOS Simulator?

采纳答案by Zane Helton

What you're going to want to do is open the iOS Simulator you want to uninstall and go to the menu in the top left and follow the path iOS Simulator > Reset Content and Settings...

您要做的是打开要卸载的 iOS 模拟器,然后转到左上角的菜单,然后按照路径iOS 模拟器 > 重置内容和设置...

This'll delete all contents on the iOS Simulator. This won't uninstall it, but it usually will fix it.

这将删除 iOS 模拟器上的所有内容。这不会卸载它,但通常会修复它。

If your problem persists go to ~/Library/Application Support/iPhone Simulatorand delete whatever version you want to delete. I'm not 100% sure it'll reinstall next time you debug but it's worth a shot. If it does manage to slip away though, you'll have to reinstall Xcode.

如果您的问题仍然存在,请转到~/Library/Application Support/iPhone Simulator并删除您要删除的任何版本。我不是 100% 确定它会在您下次调试时重新安装,但值得一试。如果它确实设法溜走了,您将不得不重新安装 Xcode。