Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

I uninstalled xcode 9 and installed xcode 9.1, but when run project, following message was shown:

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.

I found "Developer" folder, but cannot find "CoreSimulator" folder.

like image 235
Milan Jansen Avatar asked Nov 23 '17 00:11

Milan Jansen


2 Answers

I was able to resolve the issue running xcrun simctl erase all in Terminal.

like image 198
Tomáš Linhart Avatar answered Nov 18 '22 13:11

Tomáš Linhart


Quit Xcode.app, Simulator.app, etc

Try the following commands in Terminal

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService    
rm -rf ~/Library/*/CoreSimulator
like image 55
IKKA Avatar answered Nov 18 '22 13:11

IKKA