From caeb693cac69cfb7392cb183236209e36de14da0 Mon Sep 17 00:00:00 2001 From: Cal Stephens Date: Sun, 28 Jan 2024 09:55:04 -0800 Subject: [PATCH] Update Package.swift to explicitly not support Linux --- Package.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Package.swift b/Package.swift index bd4fda1..acaa32a 100644 --- a/Package.swift +++ b/Package.swift @@ -38,3 +38,9 @@ let package = Package( dependencies: ["Lottie"], path: "Tests") ]) + +// Emit an error on Linux, so Swift Package Manager's platform support detection doesn't say this package supports Linux +// https://github.com/airbnb/swift/discussions/197#discussioncomment-4055303 +#if os(Linux) +#error("Linux is currently not supported") +#endif