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

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

    For me, the issue was the fact that MyPlayground was syncing to iCloud. Xcode saves your files every few seconds, and it leads to "not responding" states.

    So there is a simple solution- just go to:

    System Preferences - Apple ID - Apps on this Mac using iCloud- iCloud Drive - Options- And then uncheck "Playground"

    That little trick helps to solve frozen "Running".

提交回复
热议问题