xcode 无法启动设备,因为它无法位于磁盘上
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47445797/
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
Unable to boot device because it cannot be located on disk
提问by Milan Jansen
The device's data is no longer present at /Users/[user name]/Library/Developer/CoreSimulator/Devices/D651BCC7-29FD-4B91-82F6-E255E856EA2F/data.
设备的数据不再存在于/Users/[user name]/Library/Developer/CoreSimulator/Devices/D651BCC7-29FD-4B91-82F6-E255E856EA2F/data。
I uninstalled xcode 9 and installed xcode 9.1, but when run project, following message was shown:
我卸载了 xcode 9 并安装了 xcode 9.1,但是在运行项目时,显示以下消息:
Unable to boot device because it cannot be located on disk. The device's data is no longer present at /Users/[user name]/Library/Developer/CoreSimulator/Devices/D651BCC7-29FD-4B91-82F6-E255E856EA2F/data.
无法启动设备,因为它无法位于磁盘上。设备的数据不再存在于 /Users/[user name]/Library/Developer/CoreSimulator/Devices/D651BCC7-29FD-4B91-82F6-E255E856EA2F/data。
I found "Developer" folder, but cannot find "CoreSimulator" folder.
我找到了“Developer”文件夹,但找不到“CoreSimulator”文件夹。
回答by Tomá? Linhart
I was able to resolve the issue running xcrun simctl erase all
in Terminal.
我能够解决xcrun simctl erase all
在终端中运行的问题。
回答by IKKA
Quit Xcode.app, Simulator.app, etc
退出 Xcode.app、Simulator.app 等
Try the follwing commands in terminal
在终端中尝试以下命令
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
须藤 killall -9 com.apple.CoreSimulator.CoreSimulatorService
rm -rf ~/Library/*/CoreSimulator
rm -rf ~/Library/*/CoreSimulator