Unable to boot device because it cannot be located on disk

IosXcodexcode9.1

Ios Problem Overview


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.

Ios Solutions


Solution 1 - Ios

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

Solution 2 - Ios

Quit Xcode.app, Simulator.app, etc

Try the following commands in Terminal

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService    
rm -rf ~/Library/*/CoreSimulator

Solution 3 - Ios

Go to Xcode menu Window-> Devices and Simulators -> Simulators tab, right-click the bad simulator and choose Delete from the menu list, then add it back from the left bottom entry again, it works!

enter image description here

Solution 4 - Ios

Click on the simulators dropdown at the top of Xcode, and select Download Simulators....

Simulators Dropdown

From here, you can select which versions you want to download and for what devices.

Solution 5 - Ios

Just run this command in terminal:

xcrun simctl shutdown all && xcrun simctl erase all

Solution 6 - Ios

I had the same issue.

It worked for me by erasing the device which your Mac does not found.

xcrun simctl erase AKADKJ-

Here is also a link where a found a good explanation.

https://medium.com/xcblog/simctl-control-ios-simulators-from-command-line-78b9006a20dc

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMilan JansenView Question on Stackoverflow
Solution 1 - IosTomáš LinhartView Answer on Stackoverflow
Solution 2 - IosIKKAView Answer on Stackoverflow
Solution 3 - IosItachiView Answer on Stackoverflow
Solution 4 - IosNick MeehanView Answer on Stackoverflow
Solution 5 - IosLevan KaranadzeView Answer on Stackoverflow
Solution 6 - IosmichaeldibseView Answer on Stackoverflow