90

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.

Dale K
  • 16,372
  • 12
  • 37
  • 62
Milan Jansen
  • 1,001
  • 1
  • 7
  • 4

4 Answers4

404

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

Tomáš Linhart
  • 11,549
  • 4
  • 47
  • 52
29

Quit Xcode.app, Simulator.app, etc

Try the following commands in Terminal

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService    
rm -rf ~/Library/*/CoreSimulator
grg
  • 3,915
  • 3
  • 27
  • 38
IKKA
  • 4,963
  • 5
  • 40
  • 75
  • 1
    still same error message, how do I add the simulators back? – Ahmed Eid Dec 15 '17 at 18:50
  • 4
    I needed to run the killall command before I could use `xcrun simctl erase all` from above – Allison Jul 28 '18 at 04:03
  • YESSSSSSSSSS, finally! Thank you so much! – 3li Jul 07 '19 at 22:30
  • 2
    Thanks a lot!! Ran all the above and then ran `xcrun simctl erase all` and it started to work. – Alfa Aug 01 '19 at 15:54
  • I tried the above and received errors in the terminal related to permissions even though I rand with sudo. I made sure I quite both Xcode and the simulator. I did a reboot and then it worked. – xdeleon Nov 14 '19 at 12:54
  • I think the cleanest way to stop a service is with launchctl, i.e. "launchctl stop com.apple.CoreSimulator.CoreSimulatorService" – Bart van Kuik Nov 18 '19 at 13:08
24

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

Itachi
  • 4,925
  • 2
  • 31
  • 63
6

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.

Nick Meehan
  • 703
  • 5
  • 6