I had to run RunLoop.current.run() at the end of my script for it to run the asynchronous code.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: