Xcode playground gets stuck on 'Running playground' or 'Launching simulator' and won't run the code, what to do?

前端 未结 22 721
情歌与酒
情歌与酒 2020-12-22 16:03

Every time I create a new playground in order to test some code, Xcode gets stuck and won\'t run the code. It simply presents \'Running playground\' or \'Launching simulator

相关标签:
22条回答
  • 2020-12-22 16:23

    One last tip that works for me: Make sure no iOS simulator is running. They conflict with each other.

    0 讨论(0)
  • 2020-12-22 16:24

    Make sure you kill xcode in the activity monitor before eventually killing com.apple.CoreSimulator.CoreSimulatorService process in the activity monitor. I tried killing the process a number of times and I realized if xcode is still running in the background activity then the com.apple.CoreSimulator.CoreSimulatorService process would pop up again even when you just killed it.

    0 讨论(0)
  • 2020-12-22 16:29

    In my case, Xcode 8.3.2, it works when I try as steps below:

    1. File -> Close "Name.playground"
    2. File -> Close Playground
    3. Quit Xcode
    4. Re-open Xcode
    0 讨论(0)
  • 2020-12-22 16:29

    I deleted derived data and clean build folder. This works for me. I was facing with Xcode 11.2.1 and Xcode 10.1 on same machine.

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