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

前端 未结 22 948
情歌与酒
情歌与酒 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:20

    Buggy Simulator's main process is still working even after Xcode closing. So here're the steps:

    1. Quit Xcode;
    2. Kill com.apple.CoreSimulator.CoreSimulatorService process in Activity Monitor;
    3. Launch Xcode and run your Playground.

提交回复
热议问题