The Windows compiler & @main

Just a note in case it's useful for somebody else. Workaround is swift build -Xswiftc -parse-as-library or

swiftSettings: [
.unsafeFlags(["-parse-as-library"], .when(platforms: [.windows])),
]

added to the target in Package.swift.

1 Like