2 ms·
You either need main.swift, in which case you get global execution, or another file with a type marked `@main`, which encapsulates the main execution (and enabl
by jshier 4y ago
You either need main.swift, in which case you get global execution, or another file with a type marked `@main`, which encapsulates the main execution (and enables async support).
- bartvk 4y agoYeah but within Xcode, you cannot run another file marked with main. Well, you can but it can’t start with a shebang. https://stackoverflow.com/questions/73258896/swift-error-hashbang-line-is-allowed-only-in-the-main-file https://stackoverflow.com/questions/73258896/swift-error-has...