danielemm
(Daniele Margutti)
1
Hi, I'm working on a multiplatform library for logging.
A product inside the Package.swift is reserved only for iOS/macOS; is there a way to exclude it from being built in Linux?
That's the package: Glider/Package.swift at main · immobiliare/Glider · GitHub
I would to exclude .library(name: "GliderSentry", targets: ["GliderSentry"]), which is only for iOS and mac.
ktoso
(Konrad 'ktoso' Malawski 🐟🏴☠️)
2
You could
#if os(Linux)
#else
#endif
the library declaration
3 Likes