He could be running in a “Playground” not an “App” which means he has to set PlaygroundPage.current.needsIndefiniteExecution = true. This gets everyone starting out.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags: