Error running playground. Unable to find suitable target device. (iOS Swift)

HDdeveloper picture HDdeveloper · Jan 14, 2015 · Viewed 7.2k times · Source

I created a new project in XCode.

File > New > Playground (option+shift+cmd+N)

enter image description here

I restarted my XCode and also rebooted my system, but still same error.

Answer

Aaron Brager picture Aaron Brager · Jul 28, 2015

From the developer forums, this worked for me:

  1. Quit Xcode
  2. Delete the folder /Users/<username>/Library/Developer/CoreSimulator/Devices. For example, in Terminal: rm -rf ~/Library/Developer/CoreSimulator/Devices
  3. In Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService (or just reboot).