I have several Swift playgrounds on my machine that aren't updating automatically. I can manually select "Run Playground" from the Editor menu, which runs what's in the playground at that time, but it never updates when I type new code. I've tried clearing the compilation cache in "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
, restarting Xcode, restarting the simulator service, even rebooting my Mac, and none of these fix the issue. What can I look at to make my playground update automatically?
Asked
Active
Viewed 709 times
3

anahata
- 826
- 1
- 7
- 14
-
https://stackoverflow.com/a/43144667/1187415 – Martin R Nov 14 '18 at 16:17
-
Thanks; I searched three times and never found that question. :( – anahata Nov 14 '18 at 19:00
1 Answers
5
In this case, the issue was that my playgrounds were not set to run automatically. There's a Play arrow down the bottom of the playground window that will be empty if automatic running is disabled. Click and hold the arrow to reveal a dropdown menu and select "Automatically Run".

anahata
- 826
- 1
- 7
- 14