I'm building a Swift package which should work for MacOS and Linux.
I have tried specifying the platform like so:
let package = Package(
name: "MyPackage",
platforms: [
.macOS,
.linux
],
...
However I get this error:
| /.../Package.swift:10:10: Type 'Array.ArrayLiteralElement' (aka 'SupportedPlatform') has no member 'linux'
It seems like this should be allowed according to the documentation:
Supporting Linux
static let linux: Platform
The Linux platform.
What am I missing here?