I repeatedly failed to code and run, with MacOS Monterey, Xcode and Swift, an app that simply sends "hello world" to the console. The result remained "Expressions are not allowed at the top level". Could anyone fully desribe a simple solution? Thanks in advance
How to avoid "Expressions are not allowed at the top level"
Add a Comment