The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HAKit, reference main (c24be0), with Swift 6.4 for Linux on 8 Nov 2026 01:12:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/home-assistant/HAKit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/home-assistant/HAKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c24be0c Release 0.4.21 (#131)
Cloned https://github.com/home-assistant/HAKit.git
Revision (git rev-parse @):
c24be0c9d68bc4903f616b895aae9296ae80cdb8
SUCCESS checkout https://github.com/home-assistant/HAKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/home-assistant/HAKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:b44244c3c3fc9f2af9eceb487c9bff83319ab045277845df83db1e4f60420d2c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Fetching https://github.com/mxcl/PromiseKit
[1/17244] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit (1.07s)
Computing version for https://github.com/mxcl/PromiseKit
Computed https://github.com/mxcl/PromiseKit at 8.2.0 (1.26s)
Creating working copy for https://github.com/mxcl/PromiseKit
Working copy of https://github.com/mxcl/PromiseKit resolved at 8.2.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 241]
[Constructing 206 / 485]
[54 / 86] PromiseKit
[55 / 95] HAKit
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/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/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/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/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: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: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/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: value of type '_' expected to be instance of class or class-constrained type
 74 |         responseController: HAResponseController = HAResponseControllerImpl(),
 75 |         reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
 76 |         urlSession: URLSession = .init(configuration: .ephemeral),
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 77 |         connectAutomatically: Bool = false
 78 |     ) {
/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/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:9:21: error: cannot find 'os_unfair_lock_t' in scope
 7 |     private var value: ValueType
 8 |     private let lock: os_unfair_lock_t = {
 9 |         let value = os_unfair_lock_t.allocate(capacity: 1)
   |                     `- error: cannot find 'os_unfair_lock_t' in scope
10 |         value.initialize(to: os_unfair_lock())
11 |         return value
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:10:30: error: cannot find 'os_unfair_lock' in scope
 8 |     private let lock: os_unfair_lock_t = {
 9 |         let value = os_unfair_lock_t.allocate(capacity: 1)
10 |         value.initialize(to: os_unfair_lock())
   |                              `- error: cannot find 'os_unfair_lock' in scope
11 |         return value
12 |     }()
/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/HAURLSessionWebSocketEngine.swift:9:80: error: cannot find type 'URLSessionDataDelegate' in scope
  7 | /// evaluation and client-identity (mTLS) challenges, so it serves every connection whether or not a
  8 | /// client identity is provided.
  9 | internal final class HAURLSessionWebSocketEngine: NSObject, HAWebSocketEngine, URLSessionDataDelegate,
    |                                                                                `- error: cannot find type 'URLSessionDataDelegate' in scope
 10 |     URLSessionWebSocketDelegate {
 11 |     /// Home Assistant can deliver large frames (e.g. full state dumps). Raise the receive limit well
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:10:5: error: cannot find type 'URLSessionWebSocketDelegate' in scope
  8 | /// client identity is provided.
  9 | internal final class HAURLSessionWebSocketEngine: NSObject, HAWebSocketEngine, URLSessionDataDelegate,
 10 |     URLSessionWebSocketDelegate {
    |     `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 11 |     /// Home Assistant can deliver large frames (e.g. full state dumps). Raise the receive limit well
 12 |     /// above `URLSessionWebSocketTask`'s 1 MiB default so those frames aren't rejected.
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:17:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 15 |     private struct State {
 16 |         var session: URLSession?
 17 |         var task: URLSessionWebSocketTask?
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 18 |     }
 19 |
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:16:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     private struct State {
 16 |         var session: URLSession?
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         var task: URLSessionWebSocketTask?
 18 |     }
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/HAURLSessionWebSocketEngine.swift:42:25: error: cannot find type 'URLRequest' in scope
 40 |     }
 41 |
 42 |     func start(request: URLRequest) {
    |                         `- error: cannot find type 'URLRequest' in scope
 43 |         let task: URLSessionWebSocketTask = state.mutate { state in
 44 |             let session = state.session ?? URLSession(configuration: .default, delegate: self, delegateQueue: nil)
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:71:34: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |
 70 |     /// Atomically clear and return the current task and session.
 71 |     private func takeState() -> (URLSessionWebSocketTask?, URLSession?) {
    |                                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |         state.mutate { state in
 73 |             defer { state = .init() }
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:109:47: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |     }
108 |
109 |     func handleReceiveResult(_ result: Result<URLSessionWebSocketTask.Message, Error>) {
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |         switch result {
111 |         case let .success(message):
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:129:24: error: cannot find type 'URLSessionWebSocketTask' in scope
127 |     func urlSession(
128 |         _ session: URLSession,
129 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
130 |         didOpenWithProtocol protocol: String?
131 |     ) {
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:128:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |
127 |     func urlSession(
128 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |         webSocketTask: URLSessionWebSocketTask,
130 |         didOpenWithProtocol protocol: String?
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/HAURLSessionWebSocketEngine.swift:137:24: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |     func urlSession(
136 |         _ session: URLSession,
137 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
139 |         reason: Data?
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:138:33: error: cannot find type 'URLSessionWebSocketTask' in scope
136 |         _ session: URLSession,
137 |         webSocketTask: URLSessionWebSocketTask,
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
139 |         reason: Data?
140 |     ) {
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:136:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |
135 |     func urlSession(
136 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |         webSocketTask: URLSessionWebSocketTask,
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/HAURLSessionWebSocketEngine.swift:145:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |     }
144 |
145 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |         broadcast(event: .error(error))
147 |     }
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/HAURLSessionWebSocketEngine.swift:145:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |     }
144 |
145 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |         broadcast(event: .error(error))
147 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:152:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
150 |         _ session: URLSession,
151 |         didReceive challenge: URLAuthenticationChallenge,
152 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
153 |     ) {
154 |         switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:150:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |     func urlSession(
150 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |         didReceive challenge: URLAuthenticationChallenge,
152 |         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/Internal/HAURLSessionWebSocketEngine.swift:151:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |     func urlSession(
150 |         _ session: URLSession,
151 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
153 |     ) {
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/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/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/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
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Source/Caches/HACache.swift /host/spi-builder-workspace/Source/Caches/HACacheKeyStates.swift /host/spi-builder-workspace/Source/Caches/HACachePopulateInfo.swift /host/spi-builder-workspace/Source/Caches/HACacheSubscribeInfo.swift /host/spi-builder-workspace/Source/Caches/HACacheTransformInfo.swift /host/spi-builder-workspace/Source/Caches/HACachedStates.swift /host/spi-builder-workspace/Source/Caches/HACachedUser.swift /host/spi-builder-workspace/Source/Caches/HACachesContainer.swift /host/spi-builder-workspace/Source/Convenience/CurrentUser.swift /host/spi-builder-workspace/Source/Convenience/Event.swift /host/spi-builder-workspace/Source/Convenience/RenderTemplate.swift /host/spi-builder-workspace/Source/Convenience/Services.swift /host/spi-builder-workspace/Source/Convenience/States.swift /host/spi-builder-workspace/Source/Data/HACompressedEntity.swift /host/spi-builder-workspace/Source/Data/HAData.swift /host/spi-builder-workspace/Source/Data/HADataDecodable.swift /host/spi-builder-workspace/Source/Data/HADecodeTransformable.swift /host/spi-builder-workspace/Source/Data/HAEntity+CompressedEntity.swift /host/spi-builder-workspace/Source/Data/HAEntity.swift /host/spi-builder-workspace/Source/Data/HAService.swift /host/spi-builder-workspace/Source/HAConnection.swift /host/spi-builder-workspace/Source/HAConnectionConfiguration.swift /host/spi-builder-workspace/Source/HAConnectionInfo.swift /host/spi-builder-workspace/Source/HAError.swift /host/spi-builder-workspace/Source/HAGlobal.swift /host/spi-builder-workspace/Source/HAKit.swift /host/spi-builder-workspace/Source/HARequestToken.swift /host/spi-builder-workspace/Source/HAURLSessionDelegate.swift /host/spi-builder-workspace/Source/Internal/HACancellableImpl.swift /host/spi-builder-workspace/Source/Internal/HAConnectionImpl+Requests.swift /host/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift /host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift /host/spi-builder-workspace/Source/Internal/HAProtected.swift /host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift /host/spi-builder-workspace/Source/Internal/HAResetLock.swift /host/spi-builder-workspace/Source/Internal/HASchedulingTimer.swift /host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift /host/spi-builder-workspace/Source/Internal/RequestController/HARequestController.swift /host/spi-builder-workspace/Source/Internal/RequestController/HARequestIdentifier.swift /host/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocation.swift /host/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift /host/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift /host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift /host/spi-builder-workspace/Source/Internal/ResponseController/HAWebSocketResponse.swift /host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift /host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift /host/spi-builder-workspace/Source/Requests/HAHTTPMethod.swift /host/spi-builder-workspace/Source/Requests/HARequest.swift /host/spi-builder-workspace/Source/Requests/HARequestType.swift /host/spi-builder-workspace/Source/Requests/HAResponseVoid.swift /host/spi-builder-workspace/Source/Requests/HASttData.swift /host/spi-builder-workspace/Source/Requests/HATypedRequest.swift /host/spi-builder-workspace/Source/Requests/HATypedSubscription.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HAKit -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/HAKit_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/Modules/HAKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/Modules/HAKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/HAKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/HAKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/HAKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/HAKit.build/Debug-linux-x86_64/HAKit-t.build/Objects-normal/x86_64/Modules/HAKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux