Skip to content

Commit 0ce783c

Browse files
committed
Add iOS/Catalyst deployment targets
1 parent 958dc3a commit 0ce783c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ if buildOnlyTests {
206206

207207
let package = Package(
208208
name: "swift-tools-protocols",
209-
platforms: [.macOS(.v14)],
209+
platforms: [
210+
.macOS(.v14),
211+
.iOS(.v17),
212+
.macCatalyst(.v17),
213+
],
210214
products: products,
211215
dependencies: dependencies,
212216
targets: targets,

Sources/LanguageServerProtocolTransport/JSONRPCConnection.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public final class JSONRPCConnection: Connection {
196196
sendIO.setLimit(highWater: Int.max)
197197
}
198198

199+
#if os(macOS) || !canImport(Darwin)
199200
/// Creates and starts a `JSONRPCConnection` that connects to a subprocess launched with the specified arguments.
200201
///
201202
/// `client` is the message handler that handles the messages sent from the subprocess to SourceKit-LSP.
@@ -267,6 +268,7 @@ public final class JSONRPCConnection: Connection {
267268

268269
return (connection, process)
269270
}
271+
#endif // os(macOS) || !canImport(Darwin)
270272

271273
deinit {
272274
assert(state == .closed)

0 commit comments

Comments
 (0)