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

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

    In my experience, you should:

    1. Prevent Swift playground refresh, by holding: the ► arrow at the bottom left part of the Playground and selecting "Manually Run"
    2. Quit Xcode
    3. Restart Xcode

    It works very well.

提交回复
热议问题