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
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".