Swift Playgrounds not updating automatically on macOS [duplicate]

你。 提交于 2020-01-11 13:09:56

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/53304337/swift-playgrounds-not-updating-automatically-on-macos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!