Comment on Async and Await code doesn't work on command line tools but works on Xcode playgrounds Do you have any links to the documentation or how to add a @main attribute to a function? I put the task into a function and called the function, yet I still couldn't get it to work. Developer Tools & Services Xcode Dec ’21