You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Package.swift
+19-3
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// swift-tools-version:5.1
1
+
// swift-tools-version:5.3
2
2
3
3
import PackageDescription
4
4
import Foundation
@@ -16,6 +16,21 @@ let package = Package(
16
16
]
17
17
)
18
18
19
+
// Include the parser library as a binary dependency if both the host and the target are macOS.
20
+
// - We need to require that the host is macOS (checked by `#if os(macOS)`) because package resolve will download and unzip the referenced framework, which requires `unzip` to be installed. Only macOS guarantees that `unzip` is installed, the Swift Docker images don’t have unzip installed, so package resolve would fail.
21
+
// - We need to require that the target is macOS (checked by `.when`) because binary dependencies are only supported by SwiftPM on macOS.
0 commit comments