xcode 如何强制重新安装iOS模拟器?

pokxtpni  于 2023-06-24  发布在  iOS
关注(0)|答案(1)|浏览(150)

我想下载模拟器组件(Xcode 6.2),但在下载过程中,我的互联网连接丢失了。Xcode仍然显示我已经安装了7.1模拟器。你知道如何重新安装iOS模拟器吗?我做了以下步骤:

  • 从~/Library/Caches/com.apple.dt.Xcode中删除了'Downloads'目录
  • 从窗口->设备中删除所有7.1设备

不管用...我会很感激任何帮助!

dauxcl2d

dauxcl2d1#

今天早上我遇到了同样的问题。解决这个问题的方法是在终端中输入以下内容:

sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 7.1.simruntime

编辑:忘记-r标志
确保在设备窗口中重新添加设备。
编辑2:Xcode 15在/Library/Developer/CoreSimulator/Volumes/中存储较新的“附加”运行时,格式类似于/Library/Developer/CoreSimulator/Volumes/{name_build}/Library/Developer/CoreSimulator/Profiles/Runtimes/{name version}.simruntime

相关问题