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

前端 未结 5 822
清歌不尽
清歌不尽 2020-12-30 06:24

I created a new project in XCode.

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

\"enter

相关标签:
5条回答
  • 2020-12-30 06:34

    Fox Xcode 7, I had to install iPad Air or iPad Air 2 for the playground to work.

    0 讨论(0)
  • 2020-12-30 06:39

    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).
    0 讨论(0)
  • 2020-12-30 06:48

    As referred by @Mayank Gupta , It worked on adding new simulator and restarting the XCode.

    enter image description here

    enter image description here

    0 讨论(0)
  • 2020-12-30 06:49

    Try navigating to the Xcode Menu Window >> devices (shift+cmd+2) a new window will pop up.

    On the bottom left, add a new simulator, specifically one running on iOS 8.0 to the existing list.

    Restart Xcode.

    0 讨论(0)
  • 2020-12-30 06:55

    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:

    1. Quit Xcode and Simulator app
    2. Run in Terminal: killall -9 com.apple.CoreSimulator.CoreSimulatorService
    3. Launch Xcode and find that all fixed now.

    Sure, you can just reboot instead.

    0 讨论(0)
提交回复
热议问题