无法在Xcode中安装Watch模拟器,报错如何解决?
解决Xcode安装Watch模拟器时的SimError 410/DVTDownloadableErrors 29错误
错误详情
Registering simulator runtime with CoreSimulator failed.
Domain: DVTDownloadableErrors
Code: 29
User Info: {
DVTErrorCreationDateKey = "2022-11-01 16:19:17 +0000";
}The service used to manage runtime disk images (simdiskimaged) crashed or is not responding
Domain: com.apple.CoreSimulator.SimError
Code: 410
系统信息:macOS 12.6 (Build 21G115),Xcode 14.0.1 (21336)
解决方案
重启simdiskimaged服务
终端执行以下命令强制终止并重启该服务:sudo killall -9 simdiskimaged完成后重新尝试安装Watch模拟器。
重置CoreSimulator状态
- 关闭Xcode及所有运行的模拟器
- 终端依次执行:
xcrun simctl shutdown all xcrun simctl erase all - 重启Xcode后重试安装。
修复Xcode命令行工具关联
- 打开Xcode ->
Settings->Locations,确认Command Line Tools选中当前Xcode 14.0.1版本 - 终端执行:
sudo xcode-select --reset sudo xcodebuild -license accept - 重启Xcode后尝试安装。
- 打开Xcode ->
手动安装模拟器Runtime
- 打开Xcode的
Settings->Platforms,查看需要的Watch Simulator Runtime版本号 - 前往苹果开发者官网的「更多下载」区域,搜索对应版本的Watch模拟器Runtime并下载
- 打开下载的.dmg文件,将里面的Runtime文件拖入
/Library/Developer/CoreSimulator/Profiles/Runtimes/目录 - 重启Xcode,检查模拟器是否正常加载。
- 打开Xcode的
升级Xcode或macOS
该错误在Xcode 14.0.1与macOS 12.6的组合中偶现,尝试升级Xcode到14.1及以上版本,或升级macOS到最新兼容版本后重试。
内容的提问来源于stack exchange,提问作者Chris Jimmy
相关产品推荐
相关产品推荐

