Build Information
Failed to build HAKit, reference 0.4.21 (c24be0), with Swift 6.1 for Linux on 7 Nov 2026 16:15:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:42:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | func didReceive(
41 | for identifier: HARequestIdentifier,
42 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | )
44 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:135:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | func didReceive(
134 | for identifier: HARequestIdentifier,
135 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | ) {
137 | let didReceive = HAResetLock { [self] (result: Result<HAData, HAError>) in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:155:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
153 | didReceive.pop()?(.failure(.underlying(error as NSError)))
154 | case let .success((urlResponse, data)):
155 | if urlResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | let errorMessage: String
157 |
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:165:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | didReceive.pop()?(.failure(.external(.init(
165 | code: String(urlResponse.statusCode),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | message: errorMessage
167 | ))))
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
172 |
173 | if let data = data {
174 | let contentType = urlResponse.allHeaderFields["Content-Type"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
175 | if contentType == nil ||
176 | contentType! == "application/json" ||
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
[45/75] Compiling HAKit HAWebSocket.swift
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:42:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | func didReceive(
41 | for identifier: HARequestIdentifier,
42 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | )
44 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:135:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | func didReceive(
134 | for identifier: HARequestIdentifier,
135 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | ) {
137 | let didReceive = HAResetLock { [self] (result: Result<HAData, HAError>) in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:155:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
153 | didReceive.pop()?(.failure(.underlying(error as NSError)))
154 | case let .success((urlResponse, data)):
155 | if urlResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | let errorMessage: String
157 |
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:165:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | didReceive.pop()?(.failure(.external(.init(
165 | code: String(urlResponse.statusCode),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | message: errorMessage
167 | ))))
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
172 |
173 | if let data = data {
174 | let contentType = urlResponse.allHeaderFields["Content-Type"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
175 | if contentType == nil ||
176 | contentType! == "application/json" ||
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
[46/75] Compiling HAKit HAWebSocketEngine.swift
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:42:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | func didReceive(
41 | for identifier: HARequestIdentifier,
42 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | )
44 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:135:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | func didReceive(
134 | for identifier: HARequestIdentifier,
135 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | ) {
137 | let didReceive = HAResetLock { [self] (result: Result<HAData, HAError>) in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:155:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
153 | didReceive.pop()?(.failure(.underlying(error as NSError)))
154 | case let .success((urlResponse, data)):
155 | if urlResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | let errorMessage: String
157 |
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:165:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | didReceive.pop()?(.failure(.external(.init(
165 | code: String(urlResponse.statusCode),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | message: errorMessage
167 | ))))
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
172 |
173 | if let data = data {
174 | let contentType = urlResponse.allHeaderFields["Content-Type"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
175 | if contentType == nil ||
176 | contentType! == "application/json" ||
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
[47/75] Compiling HAKit HAHTTPMethod.swift
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:42:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | func didReceive(
41 | for identifier: HARequestIdentifier,
42 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | )
44 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:135:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | func didReceive(
134 | for identifier: HARequestIdentifier,
135 | response: Result<(HTTPURLResponse, Data?), Error>
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | ) {
137 | let didReceive = HAResetLock { [self] (result: Result<HAData, HAError>) in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:155:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
153 | didReceive.pop()?(.failure(.underlying(error as NSError)))
154 | case let .success((urlResponse, data)):
155 | if urlResponse.statusCode >= 400 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | let errorMessage: String
157 |
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:165:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 | didReceive.pop()?(.failure(.external(.init(
165 | code: String(urlResponse.statusCode),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 | message: errorMessage
167 | ))))
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
172 |
173 | if let data = data {
174 | let contentType = urlResponse.allHeaderFields["Content-Type"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
175 | if contentType == nil ||
176 | contentType! == "application/json" ||
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
[53/75] Compiling HAKit HAReconnectManager.swift
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
[54/75] Compiling HAKit HAResetLock.swift
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | let responseController: HAResponseController
65 | let reconnectManager: HAReconnectManager
66 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | var connectAutomatically: Bool
68 | var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | connectAutomatically: Bool = false
78 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:56: error: cannot infer contextual base in reference to member 'ephemeral'
74 | responseController: HAResponseController = HAResponseControllerImpl(),
75 | reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
76 | urlSession: URLSession = .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
77 | connectAutomatically: Bool = false
78 | ) {
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
414 | audioData.insert(sttBinaryHandlerId, at: 0)
415 | workQueue.async { [connection] in
416 | connection?.write(data: audioData) { [weak self] in
| `- warning: reference to captured var 'audioData' in concurrently-executing code; this is an error in the Swift 6 language mode
417 | guard let self else { return }
418 | self.responseController.didWrite()
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: error: cannot find type 'os_unfair_lock_t' in scope
6 | public class HAProtected<ValueType> {
7 | private var value: ValueType
8 | private let lock: os_unfair_lock_t = {
| `- error: cannot find type 'os_unfair_lock_t' in scope
9 | let value = os_unfair_lock_t.allocate(capacity: 1)
10 | value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:30:9: error: cannot find 'os_unfair_lock_lock' in scope
28 | @discardableResult
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
31 | defer { os_unfair_lock_unlock(lock) }
32 | return handler(&value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:31:17: error: cannot find 'os_unfair_lock_unlock' in scope
29 | public func mutate<HandlerType>(using handler: (inout ValueType) -> HandlerType) -> HandlerType {
30 | os_unfair_lock_lock(lock)
31 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
32 | return handler(&value)
33 | }
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:39:9: error: cannot find 'os_unfair_lock_lock' in scope
37 | /// - Returns: The value returned by the handler block
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
40 | defer { os_unfair_lock_unlock(lock) }
41 | return handler(value)
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:40:17: error: cannot find 'os_unfair_lock_unlock' in scope
38 | public func read<T>(_ handler: (ValueType) -> T) -> T {
39 | os_unfair_lock_lock(lock)
40 | defer { os_unfair_lock_unlock(lock) }
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | return handler(value)
42 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: error: Objective-C interoperability is disabled
137 | }
138 |
139 | @objc private func retryTimerFired(_ timer: Timer) {
| `- error: Objective-C interoperability is disabled
140 | delegate?.reconnectManagerWantsReconnection(self)
141 | }
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:217:27: error: '#selector' can only be used with the Objective-C runtime
215 | interval: 0,
216 | target: self,
217 | selector: #selector(retryTimerFired(_:)),
| `- error: '#selector' can only be used with the Objective-C runtime
218 | userInfo: nil,
219 | repeats: false
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:199:15: error: type of expression is ambiguous without a type annotation
197 |
198 | func didDisconnectTemporarily(error: Error?) {
199 | state.mutate { state in
| `- error: type of expression is ambiguous without a type annotation
200 | state.lastError = error
201 | state.pingTimer = nil
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
265 | repeats: false
266 | ) { [weak self] _ in
267 | pingToken?.cancel()
| `- warning: reference to captured var 'pingToken' in concurrently-executing code; this is an error in the Swift 6 language mode
268 | self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 | }
[55/75] Compiling HAKit HACache.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[56/75] Compiling HAKit HACacheKeyStates.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[57/75] Compiling HAKit HACachePopulateInfo.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[58/75] Compiling HAKit HACacheSubscribeInfo.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[59/75] Compiling HAKit HACacheTransformInfo.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[60/75] Compiling HAKit HACachedStates.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[61/75] Compiling HAKit HACachedUser.swift
/host/spi-builder-workspace/Source/Caches/HACache.swift:440:6: error: Objective-C interoperability is disabled
438 |
439 | /// Start the prepare -> subscribe lifecycle, if there are subscribers
440 | @objc private func checkStateAndStart() {
| `- error: Objective-C interoperability is disabled
441 | guard let connection = connection else {
442 | HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/Caches/HACache.swift:68:23: error: '#selector' can only be used with the Objective-C runtime
66 | NotificationCenter.default.addObserver(
67 | self,
68 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
69 | name: HAConnectionState.didTransitionToStateNotification,
70 | object: connection
/host/spi-builder-workspace/Source/Caches/HACache.swift:95:23: error: '#selector' can only be used with the Objective-C runtime
93 | NotificationCenter.default.addObserver(
94 | self,
95 | selector: #selector(checkStateAndStart),
| `- error: '#selector' can only be used with the Objective-C runtime
96 | name: HAConnectionState.didTransitionToStateNotification,
97 | object: connection
[62/75] Compiling HAKit HAConnectionConfiguration.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[63/75] Compiling HAKit HAConnectionInfo.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[64/75] Compiling HAKit HAError.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[65/75] Compiling HAKit HAGlobal.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[66/75] Compiling HAKit HAKit.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[67/75] Compiling HAKit HARequestToken.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[68/75] Compiling HAKit HAURLSessionDelegate.swift
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: error: cannot find type 'SecTrust' in scope
12 |
13 | /// Certificate validation handler
14 | public typealias EvaluateCertificate = (SecTrust, (Result<Void, Error>) -> Void) -> Void
| `- error: cannot find type 'SecTrust' in scope
15 |
16 | /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: error: cannot find type 'SecIdentity' in scope
15 |
16 | /// Client identity provider for mTLS
17 | public typealias ClientIdentityProvider = () -> SecIdentity?
| `- error: cannot find type 'SecIdentity' in scope
18 |
19 | /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: error: cannot find type 'URLRequest' in scope
9 | func register(delegate: HAWebSocketEngineDelegate)
10 | /// Open the connection for the given request.
11 | func start(request: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
12 | /// Close the connection with the given RFC 6455 close code.
13 | func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | internal func request(url: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var request = URLRequest(url: url)
84 |
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: error: cannot find type 'URLRequest' in scope
101 | path: String,
102 | queryItems: [URLQueryItem]
103 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
104 | var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
105 | urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:31:21: error: 'nil' requires a contextual type
29 | evaluateCertificate: evaluateCertificate,
30 | clientIdentity: clientIdentity,
31 | engine: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | }
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | internal final class HAWebSocket {
14 | /// The request used to open the connection.
15 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// The object notified of connection events.
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:83:23: error: cannot find 'URLRequest' in scope
81 |
82 | internal func request(url: URL) -> URLRequest {
83 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
84 |
85 | if let userAgent = userAgent {
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: error: cannot find type 'URLRequest' in scope
21 | private var isStopped = false
22 |
23 | init(request: URLRequest, engine: HAWebSocketEngine) {
| `- error: cannot find type 'URLRequest' in scope
24 | self.request = request
25 | self.engine = engine
/host/spi-builder-workspace/Source/HAKit.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: HAConnectionConfiguration,
17 | connectAutomatically: Bool = true,
18 | urlSession: URLSession? = nil
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | ) -> HAConnection {
20 | HAConnectionImpl(
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAKit.swift:22:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAKit.swift:22:61: error: cannot infer contextual base in reference to member 'ephemeral'
20 | HAConnectionImpl(
21 | configuration: configuration,
22 | urlSession: urlSession ?? .init(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
23 | connectAutomatically: connectAutomatically
24 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
12 | )
13 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// - completionHandler: Handler to call with the authentication result
9 | func provideClientCertificate(
10 | for challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
12 | )
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: error: cannot find type 'SecTrust' in scope
18 | /// - completionHandler: Handler to call with the validation result
19 | func evaluateServerTrust(
20 | _ serverTrust: SecTrust,
| `- error: cannot find type 'SecTrust' in scope
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 | _ serverTrust: SecTrust,
21 | forHost host: String,
22 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
23 | )
24 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | public func urlSession(
59 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | didReceive challenge: URLAuthenticationChallenge,
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | public func urlSession(
59 | _ session: URLSession,
60 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: error: cannot find type 'URLSessionDelegate' in scope
46 | /// let connection = HAKit.connection(configuration: config, urlSession: session)
47 | /// ```
48 | public class HAURLSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
49 | private let certificateProvider: HACertificateProvider
50 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:63:26: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
61 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
64 | case NSURLAuthenticationMethodClientCertificate:
65 | certificateProvider.provideClientCertificate(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:64:14: error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
62 | ) {
63 | switch challenge.protectionSpace.authenticationMethod {
64 | case NSURLAuthenticationMethodClientCertificate:
| `- error: cannot find 'NSURLAuthenticationMethodClientCertificate' in scope
65 | certificateProvider.provideClientCertificate(
66 | for: challenge,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:70:14: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
68 | )
69 |
70 | case NSURLAuthenticationMethodServerTrust:
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
72 | certificateProvider.evaluateServerTrust(
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:71:44: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
69 |
70 | case NSURLAuthenticationMethodServerTrust:
71 | if let serverTrust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:74:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
72 | certificateProvider.evaluateServerTrust(
73 | serverTrust,
74 | forHost: challenge.protectionSpace.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
75 | completionHandler: completionHandler
76 | )
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:36: error: cannot infer contextual base in reference to member 'performDefaultHandling'
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:78:60: error: 'nil' requires a contextual type
76 | )
77 | } else {
78 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
79 | }
80 |
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
83 | }
84 | }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:82:56: error: 'nil' requires a contextual type
80 |
81 | default:
82 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
83 | }
84 | }
[69/75] Compiling HAKit HACachesContainer.swift
[70/75] Compiling HAKit CurrentUser.swift
[71/75] Compiling HAKit Event.swift
[72/75] Compiling HAKit RenderTemplate.swift
[73/75] Compiling HAKit Services.swift
[74/75] Compiling HAKit States.swift
[75/75] Compiling HAKit HACompressedEntity.swift
BUILD FAILURE 6.1 linux