We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d7d966 commit 14c5a4aCopy full SHA for 14c5a4a
1 file changed
Package.swift
@@ -1,18 +1,22 @@
1
// swift-tools-version: 5.10
2
import PackageDescription
3
4
-let package = Package(
5
- name: "LoopAlgorithmToPython",
6
- // Only apply localization and platforms if NOT on Windows
7
- #if !os(Windows)
8
- defaultLocalization: "no",
9
- platforms: [
+// Define platforms conditionally
+let packagePlatforms: [SupportedPlatform]
+#if os(Windows)
+ packagePlatforms = [] // Windows doesn't need platform-specific tags here
+#else
+ packagePlatforms = [
10
.macOS(.v13),
11
.iOS(.v15),
12
.tvOS(.v15),
13
.watchOS(.v8)
14
- ],
15
- #endif
+ ]
+#endif
16
+
17
+let package = Package(
18
+ name: "LoopAlgorithmToPython",
19
+ platforms: packagePlatforms,
20
products: [
21
.library(
22
name: "LoopAlgorithmToPython",
0 commit comments