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>&1Build 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: [1;31merror: [1;39mObjective-C interoperability is disabled[0;0m
[0;36m438 |[0;0m
[0;36m439 |[0;0m /// Start the prepare -> subscribe lifecycle, if there are subscribers
[0;36m440 |[0;0m @objc private func checkStateAndStart() {
[0;36m|[0;0m `- [1;31merror: [1;39mObjective-C interoperability is disabled[0;0m
[0;36m441 |[0;0m guard let connection = connection else {
[0;36m442 |[0;0m HAGlobal.log(.error, "not subscribing to connection as the connection no longer exists")
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:14:45: [1;31merror: [1;39mcannot find type 'SecTrust' in scope[0;0m
[0;36m12 |[0;0m
[0;36m13 |[0;0m /// Certificate validation handler
[0;36m14 |[0;0m public typealias EvaluateCertificate = ([4;39mSecTrust[0;0m, (Result<Void, Error>) -> Void) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'SecTrust' in scope[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m /// Client identity provider for mTLS
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:17:53: [1;31merror: [1;39mcannot find type 'SecIdentity' in scope[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m /// Client identity provider for mTLS
[0;36m17 |[0;0m public typealias ClientIdentityProvider = () -> [4;39mSecIdentity[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'SecIdentity' in scope[0;0m
[0;36m18 |[0;0m
[0;36m19 |[0;0m /// Create a connection info
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocketEngine.swift:11:25: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m9 |[0;0m func register(delegate: HAWebSocketEngineDelegate)
[0;36m10 |[0;0m /// Open the connection for the given request.
[0;36m11 |[0;0m func start(request: [4;39mURLRequest[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m /// Close the connection with the given RFC 6455 close code.
[0;36m13 |[0;0m func stop(closeCode: UInt16)
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:82:40: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m80 |[0;0m }
[0;36m81 |[0;0m
[0;36m82 |[0;0m internal func request(url: URL) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m83 |[0;0m var request = URLRequest(url: url)
[0;36m84 |[0;0m
/host/spi-builder-workspace/Source/HAConnectionInfo.swift:103:10: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m101 |[0;0m path: String,
[0;36m102 |[0;0m queryItems: [URLQueryItem]
[0;36m103 |[0;0m ) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m104 |[0;0m var urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false)!
[0;36m105 |[0;0m urlComponents.path += "/" + path
/host/spi-builder-workspace/Source/HAKit.swift:18:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m16 |[0;0m configuration: HAConnectionConfiguration,
[0;36m17 |[0;0m connectAutomatically: Bool = true,
[0;36m18 |[0;0m urlSession: [4;39mURLSession[0;0m? = nil
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m19 |[0;0m ) -> HAConnection {
[0;36m20 |[0;0m HAConnectionImpl(
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:11:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m9 |[0;0m func provideClientCertificate(
[0;36m10 |[0;0m for challenge: URLAuthenticationChallenge,
[0;36m11 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m12 |[0;0m )
[0;36m13 |[0;0m
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:10:24: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m8 |[0;0m /// - completionHandler: Handler to call with the authentication result
[0;36m9 |[0;0m func provideClientCertificate(
[0;36m10 |[0;0m for challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m12 |[0;0m )
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:20:24: [1;31merror: [1;39mcannot find type 'SecTrust' in scope[0;0m
[0;36m18 |[0;0m /// - completionHandler: Handler to call with the validation result
[0;36m19 |[0;0m func evaluateServerTrust(
[0;36m20 |[0;0m _ serverTrust: [4;39mSecTrust[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'SecTrust' in scope[0;0m
[0;36m21 |[0;0m forHost host: String,
[0;36m22 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:22:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m20 |[0;0m _ serverTrust: SecTrust,
[0;36m21 |[0;0m forHost host: String,
[0;36m22 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m23 |[0;0m )
[0;36m24 |[0;0m }
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:48:46: [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m46 |[0;0m /// let connection = HAKit.connection(configuration: config, urlSession: session)
[0;36m47 |[0;0m /// ```
[0;36m48 |[0;0m public class HAURLSessionDelegate: NSObject, [4;39mURLSessionDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m49 |[0;0m private let certificateProvider: HACertificateProvider
[0;36m50 |[0;0m
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:61:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m59 |[0;0m _ session: URLSession,
[0;36m60 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m61 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m62 |[0;0m ) {
[0;36m63 |[0;0m switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:59:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m public func urlSession(
[0;36m59 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m60 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m61 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/HAURLSessionDelegate.swift:60:31: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m58 |[0;0m public func urlSession(
[0;36m59 |[0;0m _ session: URLSession,
[0;36m60 |[0;0m didReceive challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m61 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m62 |[0;0m ) {
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:66:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m64 |[0;0m let responseController: HAResponseController
[0;36m65 |[0;0m let reconnectManager: HAReconnectManager
[0;36m66 |[0;0m let urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m67 |[0;0m var connectAutomatically: Bool
[0;36m68 |[0;0m var hasSetupResubscribeEvents = HAProtected<Bool>(value: false)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:21: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m74 |[0;0m responseController: HAResponseController = HAResponseControllerImpl(),
[0;36m75 |[0;0m reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
[0;36m76 |[0;0m urlSession: [4;39mURLSession[0;0m = .init(configuration: .ephemeral),
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m77 |[0;0m connectAutomatically: Bool = false
[0;36m78 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m74 |[0;0m responseController: HAResponseController = HAResponseControllerImpl(),
[0;36m75 |[0;0m reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
[0;36m76 |[0;0m urlSession: URLSession = .init(configuration: .ephemeral),
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m77 |[0;0m connectAutomatically: Bool = false
[0;36m78 |[0;0m ) {
/host/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:76:35: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m74 |[0;0m responseController: HAResponseController = HAResponseControllerImpl(),
[0;36m75 |[0;0m reconnectManager: HAReconnectManager = HAReconnectManagerImpl(),
[0;36m76 |[0;0m urlSession: URLSession = [4;39m.init[0;0m(configuration: .ephemeral),
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m77 |[0;0m connectAutomatically: Bool = false
[0;36m78 |[0;0m ) {
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:8:23: [1;31merror: [1;39mcannot find type 'os_unfair_lock_t' in scope[0;0m
[0;36m6 |[0;0m public class HAProtected<ValueType> {
[0;36m7 |[0;0m private var value: ValueType
[0;36m8 |[0;0m private let lock: [4;39mos_unfair_lock_t[0;0m = {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'os_unfair_lock_t' in scope[0;0m
[0;36m9 |[0;0m let value = os_unfair_lock_t.allocate(capacity: 1)
[0;36m10 |[0;0m value.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:9:21: [1;31merror: [1;39mcannot find 'os_unfair_lock_t' in scope[0;0m
[0;36m7 |[0;0m private var value: ValueType
[0;36m8 |[0;0m private let lock: os_unfair_lock_t = {
[0;36m9 |[0;0m let value = [4;39mos_unfair_lock_t[0;0m.allocate(capacity: 1)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'os_unfair_lock_t' in scope[0;0m
[0;36m10 |[0;0m value.initialize(to: os_unfair_lock())
[0;36m11 |[0;0m return value
/host/spi-builder-workspace/Source/Internal/HAProtected.swift:10:30: [1;31merror: [1;39mcannot find 'os_unfair_lock' in scope[0;0m
[0;36m8 |[0;0m private let lock: os_unfair_lock_t = {
[0;36m9 |[0;0m let value = os_unfair_lock_t.allocate(capacity: 1)
[0;36m10 |[0;0m value.initialize(to: [4;39mos_unfair_lock[0;0m())
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'os_unfair_lock' in scope[0;0m
[0;36m11 |[0;0m return value
[0;36m12 |[0;0m }()
/host/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:139:6: [1;31merror: [1;39mObjective-C interoperability is disabled[0;0m
[0;36m137 |[0;0m }
[0;36m138 |[0;0m
[0;36m139 |[0;0m @objc private func retryTimerFired(_ timer: Timer) {
[0;36m|[0;0m `- [1;31merror: [1;39mObjective-C interoperability is disabled[0;0m
[0;36m140 |[0;0m delegate?.reconnectManagerWantsReconnection(self)
[0;36m141 |[0;0m }
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:9:80: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m7 |[0;0m /// evaluation and client-identity (mTLS) challenges, so it serves every connection whether or not a
[0;36m8 |[0;0m /// client identity is provided.
[0;36m9 |[0;0m internal final class HAURLSessionWebSocketEngine: NSObject, HAWebSocketEngine, [4;39mURLSessionDataDelegate[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m10 |[0;0m URLSessionWebSocketDelegate {
[0;36m11 |[0;0m /// 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: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketDelegate' in scope[0;0m
[0;36m8 |[0;0m /// client identity is provided.
[0;36m9 |[0;0m internal final class HAURLSessionWebSocketEngine: NSObject, HAWebSocketEngine, URLSessionDataDelegate,
[0;36m10 |[0;0m [4;39mURLSessionWebSocketDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketDelegate' in scope[0;0m
[0;36m11 |[0;0m /// Home Assistant can deliver large frames (e.g. full state dumps). Raise the receive limit well
[0;36m12 |[0;0m /// above `URLSessionWebSocketTask`'s 1 MiB default so those frames aren't rejected.
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:17:19: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m15 |[0;0m private struct State {
[0;36m16 |[0;0m var session: URLSession?
[0;36m17 |[0;0m var task: [4;39mURLSessionWebSocketTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m18 |[0;0m }
[0;36m19 |[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:16:22: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m private struct State {
[0;36m16 |[0;0m var session: [4;39mURLSession[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m var task: URLSessionWebSocketTask?
[0;36m18 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:42:25: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m40 |[0;0m }
[0;36m41 |[0;0m
[0;36m42 |[0;0m func start(request: [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m43 |[0;0m let task: URLSessionWebSocketTask = state.mutate { state in
[0;36m44 |[0;0m let session = state.session ?? URLSession(configuration: .default, delegate: self, delegateQueue: nil)
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:71:34: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// Atomically clear and return the current task and session.
[0;36m71 |[0;0m private func takeState() -> ([4;39mURLSessionWebSocketTask[0;0m?, URLSession?) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m72 |[0;0m state.mutate { state in
[0;36m73 |[0;0m defer { state = .init() }
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:109:47: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m107 |[0;0m }
[0;36m108 |[0;0m
[0;36m109 |[0;0m func handleReceiveResult(_ result: Result<[4;39mURLSessionWebSocketTask[0;0m.Message, Error>) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m110 |[0;0m switch result {
[0;36m111 |[0;0m case let .success(message):
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:129:24: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m127 |[0;0m func urlSession(
[0;36m128 |[0;0m _ session: URLSession,
[0;36m129 |[0;0m webSocketTask: [4;39mURLSessionWebSocketTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m130 |[0;0m didOpenWithProtocol protocol: String?
[0;36m131 |[0;0m ) {
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:128:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m126 |[0;0m
[0;36m127 |[0;0m func urlSession(
[0;36m128 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m129 |[0;0m webSocketTask: URLSessionWebSocketTask,
[0;36m130 |[0;0m didOpenWithProtocol protocol: String?
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:137:24: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m135 |[0;0m func urlSession(
[0;36m136 |[0;0m _ session: URLSession,
[0;36m137 |[0;0m webSocketTask: [4;39mURLSessionWebSocketTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m138 |[0;0m didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
[0;36m139 |[0;0m reason: Data?
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:138:33: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m136 |[0;0m _ session: URLSession,
[0;36m137 |[0;0m webSocketTask: URLSessionWebSocketTask,
[0;36m138 |[0;0m didCloseWith closeCode: [4;39mURLSessionWebSocketTask[0;0m.CloseCode,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m139 |[0;0m reason: Data?
[0;36m140 |[0;0m ) {
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:136:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m134 |[0;0m
[0;36m135 |[0;0m func urlSession(
[0;36m136 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m137 |[0;0m webSocketTask: URLSessionWebSocketTask,
[0;36m138 |[0;0m didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:145:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m143 |[0;0m }
[0;36m144 |[0;0m
[0;36m145 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m146 |[0;0m broadcast(event: .error(error))
[0;36m147 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:145:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m143 |[0;0m }
[0;36m144 |[0;0m
[0;36m145 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m146 |[0;0m broadcast(event: .error(error))
[0;36m147 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:152:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m150 |[0;0m _ session: URLSession,
[0;36m151 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m152 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m153 |[0;0m ) {
[0;36m154 |[0;0m switch challenge.protectionSpace.authenticationMethod {
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:150:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m148 |[0;0m
[0;36m149 |[0;0m func urlSession(
[0;36m150 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m151 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m152 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:151:31: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m149 |[0;0m func urlSession(
[0;36m150 |[0;0m _ session: URLSession,
[0;36m151 |[0;0m didReceive challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m152 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m153 |[0;0m ) {
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:42:27: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m40 |[0;0m func didReceive(
[0;36m41 |[0;0m for identifier: HARequestIdentifier,
[0;36m42 |[0;0m response: Result<([4;39mHTTPURLResponse[0;0m, Data?), Error>
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m43 |[0;0m )
[0;36m44 |[0;0m }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/ResponseController/HAResponseController.swift:135:27: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m133 |[0;0m func didReceive(
[0;36m134 |[0;0m for identifier: HARequestIdentifier,
[0;36m135 |[0;0m response: Result<([4;39mHTTPURLResponse[0;0m, Data?), Error>
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m136 |[0;0m ) {
[0;36m137 |[0;0m let didReceive = HAResetLock { [self] (result: Result<HAData, HAError>) in
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:15:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m13 |[0;0m internal final class HAWebSocket {
[0;36m14 |[0;0m /// The request used to open the connection.
[0;36m15 |[0;0m let request: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m16 |[0;0m
[0;36m17 |[0;0m /// The object notified of connection events.
/host/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:23:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m21 |[0;0m private var isStopped = false
[0;36m22 |[0;0m
[0;36m23 |[0;0m init(request: [4;39mURLRequest[0;0m, engine: HAWebSocketEngine) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m24 |[0;0m self.request = request
[0;36m25 |[0;0m 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