Use ControlKit
Seto Elkahfi committed
Jul 30, 2026 at 17:02 UTC
2cac7a1cbab93305b8a94d8ec3c94fb6f15aea0d
3 files changed
+5
-5
Runners/iOS/ControlKitRPCServer.swift
+2
-2
@@ -17,8 +17,8 @@ final class ControlKitRPCServer {
17
private let host: String
18
19
init() {
20
- port = UInt16(ProcessInfo.processInfo.environment["DEVICEKIT_LISTEN_PORT"] ?? "12004") ?? 12004
21
- host = ProcessInfo.processInfo.environment["DEVICEKIT_LISTEN_HOST"] ?? "127.0.0.1"
20
+ port = UInt16(ProcessInfo.processInfo.environment["CONTROLKIT_LISTEN_PORT"] ?? "12004") ?? 12004
21
+ host = ProcessInfo.processInfo.environment["CONTROLKIT_LISTEN_HOST"] ?? "127.0.0.1"
22
}
23
24
func start() async throws {
Runners/iOS/README.md
+2
-2
@@ -5,5 +5,5 @@ testing project, not a SwiftPM target, and imports the public
5
`XCRSControlKit` package for capability and request contracts.
6
7
The runner exposes a small localhost JSON-RPC server to the Rust `xcrs`
8
-client using SwiftNIO's HTTP/1 server pipeline. It intentionally contains no
9
-DeviceKit source or private XCTest headers.
8
+client using SwiftNIO's HTTP/1 server pipeline. It is an independent
9
+ControlKit implementation with no private XCTest headers.
Runners/tvOS/README.md
+1
-1
@@ -6,4 +6,4 @@ testing project, not a SwiftPM target, and imports the public
6
7
The runner exposes a localhost JSON-RPC server to the Rust `xcrs` client using
8
SwiftNIO's HTTP/1 server pipeline. tvOS remote buttons are handled through
9
-`XCUIRemote`, with no DeviceKit source or private XCTest headers.
9
+`XCUIRemote`, with no private XCTest headers.