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
As if this question didn't have enough answers, I will provide my "solution" to the stuck Swift playgrounds problem:
The one solution I've come across which works nicely for me (so I do not have to restart Xcode):
killall launchd_sim
This will cause the spinning "Running Playground..." to go away and you can trigger a new execution. Be aware: the next execution is going to spin up launchd_sim
and all those child processes again. It would probably be best to kill only the relevant child process. But I didn't find it so far.
But I do this only when I'm not using the iOS Simulators in parallel, as the launchd_sim
process is a child process of Simulator
.