9

By mistake I deleted ~/Library/Developer/CoreSimulator/Devices from my Mac so all my Xcode simulators were deleted.

Now none of my Xcode projects run. When I try to, an alert shows that no simulator is selected in select device.

1
  • As I am not a developer I am guessing on this, but did you try re-installing X-Code? Commented Mar 16, 2016 at 13:19

4 Answers 4

26

To get back to a vanilla state, quit Xcode, Simulator, Instruments, and any other CoreSimulator clients that you have and run:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService 2> /dev/null
rm -rf ~/Library/*/CoreSimulator
3
  • 1
    This is the answer. did the trick after the Xcode 11 update.
    – 0x6A75616E
    Commented Sep 24, 2019 at 6:23
  • This answer still works as of Xcode 12.4. Thanks! Commented Feb 2, 2021 at 16:24
  • Amazing! I deleted all simulators by mistake. Now they are all back. Thanks!
    – migrant
    Commented Feb 23, 2021 at 19:36
3

You can add new simulators inside the Xcode. Simply press ⌘ CMD+⇧ SHIFT+2 to open Devices window. There on the lower left side you have small "+".

enter image description here

-1

You can download simulator from internet and add it in you Xcode package content or directly select option "DOWNLOAD SIMULATOR" from Xcode.

-2

Finally, I solve my problem by updating Xcode you can solve this problem..

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .