Error running playground. Unable to find suitable target device. (iOS Swift)
Fox Xcode 7, I had to install iPad Air or iPad Air 2 for the playground to work.
Another possible way to encounter that issue is to get Xcode being auto-updated, while the simulator was launched.
The solution is like mentioned above but more polite:
- Quit Xcode and Simulator app
- Run in Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService
- Launch Xcode and find that all fixed now.
Sure, you can just reboot instead.
From the developer forums, this worked for me:
- Quit Xcode
- Delete the folder
/Users/<username>/Library/Developer/CoreSimulator/Devices
. For example, in Terminal:rm -rf ~/Library/Developer/CoreSimulator/Devices
- In Terminal:
killall -9 com.apple.CoreSimulator.CoreSimulatorService
(or just reboot).