The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ArtAdk, reference 1.0.0 (70ee2d), with Swift 6.2 for Linux on 28 Apr 2026 08:55:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aiotrixdev/art-swift-adk.git
Reference: 1.0.0
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/aiotrixdev/art-swift-adk
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 70ee2df gitignore fixes
Cloned https://github.com/aiotrixdev/art-swift-adk.git
Revision (git rev-parse @):
70ee2df37e276c6d27d390ed13a91ba43d3b4a65
SUCCESS checkout https://github.com/aiotrixdev/art-swift-adk.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/aiotrixdev/art-swift-adk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Fetching https://github.com/bitmark-inc/tweetnacl-swiftwrap
[1/421] Fetching tweetnacl-swiftwrap
Fetched https://github.com/bitmark-inc/tweetnacl-swiftwrap from cache (0.33s)
Computing version for https://github.com/bitmark-inc/tweetnacl-swiftwrap
Computed https://github.com/bitmark-inc/tweetnacl-swiftwrap at 1.1.0 (2.94s)
Creating working copy for https://github.com/bitmark-inc/tweetnacl-swiftwrap
Working copy of https://github.com/bitmark-inc/tweetnacl-swiftwrap resolved at 1.1.0
Building for debugging...
[0/4] Write sources
[2/4] Compiling CTweetNacl ctweetnacl.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/7] Compiling TweetNacl Constant.swift
[6/7] Emitting module TweetNacl
[7/7] Compiling TweetNacl TweetNacl.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/28] Emitting module ArtAdk
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:206:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
    |                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:39:38: error: cannot find type 'URLSessionTaskDelegate' in scope
 37 |
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
    |                                      `- error: cannot find type 'URLSessionTaskDelegate' in scope
 40 |                                      URLSessionDataDelegate {
 41 |
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:40:38: error: cannot find type 'URLSessionDataDelegate' in scope
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
 40 |                                      URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 41 |
 42 |     func urlSession(
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:45:38: error: cannot find type 'URLSessionTaskMetrics' in scope
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
    |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
 46 |     ) {
 47 |         guard
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     func urlSession(
 43 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/Sources/ArtAdk/Helper/Logs.swift:44:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     func urlSession(
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
 46 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:75:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     func urlSession(
 75 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         task: URLSessionTask,
 77 |         didCompleteWithError error: Error?
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/Sources/ArtAdk/Helper/Logs.swift:76:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     func urlSession(
 75 |         _ session: URLSession,
 76 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         didCompleteWithError error: Error?
 78 |     ) {
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/Sources/ArtAdk/WebSocket/Socket.swift:8:32: error: cannot find type 'URLSessionWebSocketTask' in scope
  6 | // MARK: - WebSocket event callbacks
  7 | public struct WebSocketEvents {
  8 |     public var onOpen:       ((URLSessionWebSocketTask.CloseCode?) -> Void)?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     public var onError:      ((Error) -> Void)?
 10 |     public var onClose:      ((URLSessionWebSocketTask.CloseCode, String?) -> Void)?
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:10:32: error: cannot find type 'URLSessionWebSocketTask' in scope
  8 |     public var onOpen:       ((URLSessionWebSocketTask.CloseCode?) -> Void)?
  9 |     public var onError:      ((Error) -> Void)?
 10 |     public var onClose:      ((URLSessionWebSocketTask.CloseCode, String?) -> Void)?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 11 |     public var onConnection: ((ConnectionDetail) -> Void)?
 12 | }
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:21:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |     private static var _instance: Socket?
 20 |     // MARK: - State
 21 |     private var websocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 22 |     private var credentials: AuthenticationConfig = AuthenticationConfig()
 23 |     private var subscriptions: [String: BaseSubscription] = [:]
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:41:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     private var sseTask: Task<Void, Never>?
 41 |     private var urlSession: URLSession!
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     // MARK: - Event emitter
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/Sources/ArtAdk/WebSocket/Socket.swift:668:19: error: cannot find type 'URLSessionWebSocketDelegate' in scope
666 |
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
    |                   `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
670 |                            didOpenWithProtocol protocol_: String?) {
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:669:66: error: cannot find type 'URLSessionWebSocketTask' in scope
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                                                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
670 |                            didOpenWithProtocol protocol_: String?) {
671 |         isConnectionActive = false  // wait for art_ready event
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:669:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
670 |                            didOpenWithProtocol protocol_: String?) {
671 |         isConnectionActive = false  // wait for art_ready event
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/Sources/ArtAdk/WebSocket/Socket.swift:676:24: error: cannot find type 'URLSessionWebSocketTask' in scope
674 |     public func urlSession(
675 |         _ session: URLSession,
676 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
677 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
678 |         reason: Data?
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:677:33: error: cannot find type 'URLSessionWebSocketTask' in scope
675 |         _ session: URLSession,
676 |         webSocketTask: URLSessionWebSocketTask,
677 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
678 |         reason: Data?
679 |     ) {
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:675:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
673 |
674 |     public func urlSession(
675 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
676 |         webSocketTask: URLSessionWebSocketTask,
677 |         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
[10/30] Compiling ArtAdk Auth.swift
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:206:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
    |                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:96:19: error: cannot find 'URLRequest' in scope
 94 |             throw ARTError.authenticationFailed("Malformed auth token URL")
 95 |         }
 96 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 97 |         req.httpMethod = "POST"
 98 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:100:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
 99 |
100 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
101 |         try validateHTTPResponse(response, data: data)
102 |
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:104:46: error: type of expression is ambiguous without a type annotation
102 |
103 |         let json = try JSONSerialization.jsonObject(with: data) as? [String: Any]
104 |         guard let tokenData = (json?["data"] as? [String: Any]) else {
    |                                              `- error: type of expression is ambiguous without a type annotation
105 |             throw ARTError.authenticationFailed("Unexpected token response shape")
106 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:133:19: error: cannot find 'URLRequest' in scope
131 |             throw ARTError.authenticationFailed("Malformed auth refresh URL")
132 |         }
133 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
134 |         req.httpMethod = "POST"
135 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:139:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
137 |         req.httpBody = try JSONSerialization.data(withJSONObject: ["refresh_token": authData.refreshToken])
138 |
139 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
140 |
141 |         if let httpResp = response as? HTTPURLResponse, httpResp.statusCode == 500 {
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:152:46: error: type of expression is ambiguous without a type annotation
150 |
151 |         let json = try JSONSerialization.jsonObject(with: data) as? [String: Any]
152 |         guard let tokenData = (json?["data"] as? [String: Any]) else {
    |                                              `- error: type of expression is ambiguous without a type annotation
153 |             throw ARTError.authenticationFailed("Unexpected refresh response shape")
154 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:207:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:207:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
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/Sources/ArtAdk/Auth/Auth.swift:208:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
    |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:208:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:210:32: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
211 |             throw ARTError.authenticationFailed(msg)
212 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:210:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |             throw ARTError.authenticationFailed(msg)
212 |         }
[11/30] Compiling ArtAdk CRDT.swift
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:206:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
    |                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:96:19: error: cannot find 'URLRequest' in scope
 94 |             throw ARTError.authenticationFailed("Malformed auth token URL")
 95 |         }
 96 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 97 |         req.httpMethod = "POST"
 98 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:100:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
 99 |
100 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
101 |         try validateHTTPResponse(response, data: data)
102 |
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:104:46: error: type of expression is ambiguous without a type annotation
102 |
103 |         let json = try JSONSerialization.jsonObject(with: data) as? [String: Any]
104 |         guard let tokenData = (json?["data"] as? [String: Any]) else {
    |                                              `- error: type of expression is ambiguous without a type annotation
105 |             throw ARTError.authenticationFailed("Unexpected token response shape")
106 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:133:19: error: cannot find 'URLRequest' in scope
131 |             throw ARTError.authenticationFailed("Malformed auth refresh URL")
132 |         }
133 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
134 |         req.httpMethod = "POST"
135 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:139:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
137 |         req.httpBody = try JSONSerialization.data(withJSONObject: ["refresh_token": authData.refreshToken])
138 |
139 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
140 |
141 |         if let httpResp = response as? HTTPURLResponse, httpResp.statusCode == 500 {
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:152:46: error: type of expression is ambiguous without a type annotation
150 |
151 |         let json = try JSONSerialization.jsonObject(with: data) as? [String: Any]
152 |         guard let tokenData = (json?["data"] as? [String: Any]) else {
    |                                              `- error: type of expression is ambiguous without a type annotation
153 |             throw ARTError.authenticationFailed("Unexpected refresh response shape")
154 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:207:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:207:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
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/Sources/ArtAdk/Auth/Auth.swift:208:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
    |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:208:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:210:32: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
211 |             throw ARTError.authenticationFailed(msg)
212 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:210:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |             throw ARTError.authenticationFailed(msg)
212 |         }
[12/30] Compiling ArtAdk CRDTTypes.swift
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:206:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
    |                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:96:19: error: cannot find 'URLRequest' in scope
 94 |             throw ARTError.authenticationFailed("Malformed auth token URL")
 95 |         }
 96 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 97 |         req.httpMethod = "POST"
 98 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:100:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
 99 |
100 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
101 |         try validateHTTPResponse(response, data: data)
102 |
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:104:46: error: type of expression is ambiguous without a type annotation
102 |
103 |         let json = try JSONSerialization.jsonObject(with: data) as? [String: Any]
104 |         guard let tokenData = (json?["data"] as? [String: Any]) else {
    |                                              `- error: type of expression is ambiguous without a type annotation
105 |             throw ARTError.authenticationFailed("Unexpected token response shape")
106 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:133:19: error: cannot find 'URLRequest' in scope
131 |             throw ARTError.authenticationFailed("Malformed auth refresh URL")
132 |         }
133 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
134 |         req.httpMethod = "POST"
135 |         headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:139:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
137 |         req.httpBody = try JSONSerialization.data(withJSONObject: ["refresh_token": authData.refreshToken])
138 |
139 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
140 |
141 |         if let httpResp = response as? HTTPURLResponse, httpResp.statusCode == 500 {
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:152:46: error: type of expression is ambiguous without a type annotation
150 |
151 |         let json = try JSONSerialization.jsonObject(with: data) as? [String: Any]
152 |         guard let tokenData = (json?["data"] as? [String: Any]) else {
    |                                              `- error: type of expression is ambiguous without a type annotation
153 |             throw ARTError.authenticationFailed("Unexpected refresh response shape")
154 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:207:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:207:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |     // MARK: - HTTP helper
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
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/Sources/ArtAdk/Auth/Auth.swift:208:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
    |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:208:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |     private func validateHTTPResponse(_ response: URLResponse, data: Data) throws {
207 |         guard let http = response as? HTTPURLResponse else { return }
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:210:32: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
211 |             throw ARTError.authenticationFailed(msg)
212 |         }
/host/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:210:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
208 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
209 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
210 |             ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |             throw ARTError.authenticationFailed(msg)
212 |         }
[13/30] Compiling ArtAdk CRDTUtils.swift
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:75:16: error: cannot find 'SecRandomCopyBytes' in scope
 73 |            var nonce = Data(count: CryptoBox.nonceLength)
 74 |            let result = nonce.withUnsafeMutableBytes {
 75 |                SecRandomCopyBytes(kSecRandomDefault, CryptoBox.nonceLength, $0.baseAddress!)
    |                `- error: cannot find 'SecRandomCopyBytes' in scope
 76 |            }
 77 |
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:75:35: error: cannot find 'kSecRandomDefault' in scope
 73 |            var nonce = Data(count: CryptoBox.nonceLength)
 74 |            let result = nonce.withUnsafeMutableBytes {
 75 |                SecRandomCopyBytes(kSecRandomDefault, CryptoBox.nonceLength, $0.baseAddress!)
    |                                   `- error: cannot find 'kSecRandomDefault' in scope
 76 |            }
 77 |
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:78:28: error: cannot find 'errSecSuccess' in scope
 76 |            }
 77 |
 78 |            guard result == errSecSuccess else {
    |                            `- error: cannot find 'errSecSuccess' in scope
 79 |                throw NSError(domain: "CryptoBox", code: -1, userInfo: [NSLocalizedDescriptionKey: "Random generation failed"])
 80 |            }
[14/30] Compiling ArtAdk Constant.swift
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:75:16: error: cannot find 'SecRandomCopyBytes' in scope
 73 |            var nonce = Data(count: CryptoBox.nonceLength)
 74 |            let result = nonce.withUnsafeMutableBytes {
 75 |                SecRandomCopyBytes(kSecRandomDefault, CryptoBox.nonceLength, $0.baseAddress!)
    |                `- error: cannot find 'SecRandomCopyBytes' in scope
 76 |            }
 77 |
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:75:35: error: cannot find 'kSecRandomDefault' in scope
 73 |            var nonce = Data(count: CryptoBox.nonceLength)
 74 |            let result = nonce.withUnsafeMutableBytes {
 75 |                SecRandomCopyBytes(kSecRandomDefault, CryptoBox.nonceLength, $0.baseAddress!)
    |                                   `- error: cannot find 'kSecRandomDefault' in scope
 76 |            }
 77 |
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:78:28: error: cannot find 'errSecSuccess' in scope
 76 |            }
 77 |
 78 |            guard result == errSecSuccess else {
    |                            `- error: cannot find 'errSecSuccess' in scope
 79 |                throw NSError(domain: "CryptoBox", code: -1, userInfo: [NSLocalizedDescriptionKey: "Random generation failed"])
 80 |            }
[15/30] Compiling ArtAdk CryptoBox.swift
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:75:16: error: cannot find 'SecRandomCopyBytes' in scope
 73 |            var nonce = Data(count: CryptoBox.nonceLength)
 74 |            let result = nonce.withUnsafeMutableBytes {
 75 |                SecRandomCopyBytes(kSecRandomDefault, CryptoBox.nonceLength, $0.baseAddress!)
    |                `- error: cannot find 'SecRandomCopyBytes' in scope
 76 |            }
 77 |
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:75:35: error: cannot find 'kSecRandomDefault' in scope
 73 |            var nonce = Data(count: CryptoBox.nonceLength)
 74 |            let result = nonce.withUnsafeMutableBytes {
 75 |                SecRandomCopyBytes(kSecRandomDefault, CryptoBox.nonceLength, $0.baseAddress!)
    |                                   `- error: cannot find 'kSecRandomDefault' in scope
 76 |            }
 77 |
/host/spi-builder-workspace/Sources/ArtAdk/Crypto/CryptoBox.swift:78:28: error: cannot find 'errSecSuccess' in scope
 76 |            }
 77 |
 78 |            guard result == errSecSuccess else {
    |                            `- error: cannot find 'errSecSuccess' in scope
 79 |                throw NSError(domain: "CryptoBox", code: -1, userInfo: [NSLocalizedDescriptionKey: "Random generation failed"])
 80 |            }
[16/30] Compiling ArtAdk Adk.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:229:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 |     private func loadConfig() async -> AuthenticationConfig {
228 |         guard let url = URL(string: Constant.CONFIG_JSON_PATH),
229 |               let (data, _) = try? await URLSession.shared.data(from: url),
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
230 |               let json = try? JSONSerialization.jsonObject(with: data) as? [String: String] else {
231 |             return AuthenticationConfig()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:251:19: error: cannot find 'URLRequest' in scope
249 |             throw ARTError.serverError("Malformed public key URL")
250 |         }
251 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
252 |         req.httpMethod = "POST"
253 |         req.setValue("application/json",        forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:260:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 |         req.httpBody = try JSONSerialization.data(withJSONObject: ["public_key": keyPair.publicKey])
259 |
260 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |         LogTracer.log("keyPair");
262 |               LogTracer.log(keyPair.privateKey);
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:303:19: error: cannot find 'URLRequest' in scope
301 |             throw ARTError.serverError("Malformed API URL: \(endpoint)")
302 |         }
303 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
304 |         req.httpMethod = options.method.uppercased()
305 |         req.setValue("Bearer \(authData.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:317:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
315 |         }
316 |
317 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
318 |         guard let http = response as? HTTPURLResponse else {
319 |             throw ARTError.serverError("No HTTP response")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:329:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
327 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
328 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
329 |                 ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                    `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
330 |             throw ARTError.serverError("API \(endpoint) failed: \(msg)")
331 |         }
[17/30] Compiling ArtAdk BaseSubscription.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:229:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 |     private func loadConfig() async -> AuthenticationConfig {
228 |         guard let url = URL(string: Constant.CONFIG_JSON_PATH),
229 |               let (data, _) = try? await URLSession.shared.data(from: url),
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
230 |               let json = try? JSONSerialization.jsonObject(with: data) as? [String: String] else {
231 |             return AuthenticationConfig()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:251:19: error: cannot find 'URLRequest' in scope
249 |             throw ARTError.serverError("Malformed public key URL")
250 |         }
251 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
252 |         req.httpMethod = "POST"
253 |         req.setValue("application/json",        forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:260:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 |         req.httpBody = try JSONSerialization.data(withJSONObject: ["public_key": keyPair.publicKey])
259 |
260 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |         LogTracer.log("keyPair");
262 |               LogTracer.log(keyPair.privateKey);
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:303:19: error: cannot find 'URLRequest' in scope
301 |             throw ARTError.serverError("Malformed API URL: \(endpoint)")
302 |         }
303 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
304 |         req.httpMethod = options.method.uppercased()
305 |         req.setValue("Bearer \(authData.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:317:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
315 |         }
316 |
317 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
318 |         guard let http = response as? HTTPURLResponse else {
319 |             throw ARTError.serverError("No HTTP response")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:329:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
327 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
328 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
329 |                 ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                    `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
330 |             throw ARTError.serverError("API \(endpoint) failed: \(msg)")
331 |         }
[18/30] Compiling ArtAdk EventEmitter.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:229:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
227 |     private func loadConfig() async -> AuthenticationConfig {
228 |         guard let url = URL(string: Constant.CONFIG_JSON_PATH),
229 |               let (data, _) = try? await URLSession.shared.data(from: url),
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
230 |               let json = try? JSONSerialization.jsonObject(with: data) as? [String: String] else {
231 |             return AuthenticationConfig()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:251:19: error: cannot find 'URLRequest' in scope
249 |             throw ARTError.serverError("Malformed public key URL")
250 |         }
251 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
252 |         req.httpMethod = "POST"
253 |         req.setValue("application/json",        forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:260:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
258 |         req.httpBody = try JSONSerialization.data(withJSONObject: ["public_key": keyPair.publicKey])
259 |
260 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |         LogTracer.log("keyPair");
262 |               LogTracer.log(keyPair.privateKey);
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:303:19: error: cannot find 'URLRequest' in scope
301 |             throw ARTError.serverError("Malformed API URL: \(endpoint)")
302 |         }
303 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
304 |         req.httpMethod = options.method.uppercased()
305 |         req.setValue("Bearer \(authData.accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:317:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
315 |         }
316 |
317 |         let (data, response) = try await URLSession.shared.data(for: req)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
318 |         guard let http = response as? HTTPURLResponse else {
319 |             throw ARTError.serverError("No HTTP response")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:329:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
327 |         guard http.statusCode >= 200 && http.statusCode < 300 else {
328 |             let msg = (try? JSONSerialization.jsonObject(with: data) as? [String: Any])?["message"] as? String
329 |                 ?? HTTPURLResponse.localizedString(forStatusCode: http.statusCode)
    |                                    `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
330 |             throw ARTError.serverError("API \(endpoint) failed: \(msg)")
331 |         }
[19/30] Compiling ArtAdk ChannelTypes.swift
[20/30] Compiling ArtAdk CryptoTypes.swift
[21/30] Compiling ArtAdk SocketTypes.swift
[22/30] Compiling ArtAdk LiveObjSubscription.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/LongPollClient.swift:51:27: error: cannot find 'URLRequest' in scope
49 |                 guard let url = components.url else { continue }
50 |
51 |                 var req = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
52 |                 req.timeoutInterval = 35  // longer than server hold time
53 |
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/LongPollClient.swift:57:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |                 headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
56 |
57 |                 let (data, response) = try await URLSession.shared.data(for: req)
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 |                 guard let http = response as? HTTPURLResponse else { continue }
59 |
[23/30] Compiling ArtAdk LongPollClient.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/LongPollClient.swift:51:27: error: cannot find 'URLRequest' in scope
49 |                 guard let url = components.url else { continue }
50 |
51 |                 var req = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
52 |                 req.timeoutInterval = 35  // longer than server hold time
53 |
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/LongPollClient.swift:57:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |                 headers.forEach { req.setValue($1, forHTTPHeaderField: $0) }
56 |
57 |                 let (data, response) = try await URLSession.shared.data(for: req)
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 |                 guard let http = response as? HTTPURLResponse else { continue }
59 |
[24/30] Compiling ArtAdk HelperFunctions.swift
[25/30] Compiling ArtAdk Interception.swift
[26/30] Compiling ArtAdk LogTracer.swift
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:39:38: error: cannot find type 'URLSessionTaskDelegate' in scope
 37 |
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
    |                                      `- error: cannot find type 'URLSessionTaskDelegate' in scope
 40 |                                      URLSessionDataDelegate {
 41 |
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:40:38: error: cannot find type 'URLSessionDataDelegate' in scope
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
 40 |                                      URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 41 |
 42 |     func urlSession(
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:45:38: error: cannot find type 'URLSessionTaskMetrics' in scope
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
    |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
 46 |     ) {
 47 |         guard
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     func urlSession(
 43 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/Sources/ArtAdk/Helper/Logs.swift:44:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     func urlSession(
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
 46 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:75:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     func urlSession(
 75 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         task: URLSessionTask,
 77 |         didCompleteWithError error: Error?
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/Sources/ArtAdk/Helper/Logs.swift:76:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     func urlSession(
 75 |         _ session: URLSession,
 76 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         didCompleteWithError error: Error?
 78 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:49:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 47 |         guard
 48 |             let transaction = metrics.transactionMetrics.last,
 49 |             let request = task.originalRequest,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |             let response = task.response as? HTTPURLResponse
 51 |         else { return }
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:50:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
 48 |             let transaction = metrics.transactionMetrics.last,
 49 |             let request = task.originalRequest,
 50 |             let response = task.response as? HTTPURLResponse
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
 51 |         else { return }
 52 |
[27/30] Compiling ArtAdk Logs.swift
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:39:38: error: cannot find type 'URLSessionTaskDelegate' in scope
 37 |
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
    |                                      `- error: cannot find type 'URLSessionTaskDelegate' in scope
 40 |                                      URLSessionDataDelegate {
 41 |
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:40:38: error: cannot find type 'URLSessionDataDelegate' in scope
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
 40 |                                      URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 41 |
 42 |     func urlSession(
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:45:38: error: cannot find type 'URLSessionTaskMetrics' in scope
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
    |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
 46 |     ) {
 47 |         guard
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     func urlSession(
 43 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/Sources/ArtAdk/Helper/Logs.swift:44:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     func urlSession(
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
 46 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:75:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     func urlSession(
 75 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         task: URLSessionTask,
 77 |         didCompleteWithError error: Error?
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/Sources/ArtAdk/Helper/Logs.swift:76:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     func urlSession(
 75 |         _ session: URLSession,
 76 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         didCompleteWithError error: Error?
 78 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:49:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 47 |         guard
 48 |             let transaction = metrics.transactionMetrics.last,
 49 |             let request = task.originalRequest,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |             let response = task.response as? HTTPURLResponse
 51 |         else { return }
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:50:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
 48 |             let transaction = metrics.transactionMetrics.last,
 49 |             let request = task.originalRequest,
 50 |             let response = task.response as? HTTPURLResponse
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
 51 |         else { return }
 52 |
[28/30] Compiling ArtAdk AuthTypes.swift
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:39:38: error: cannot find type 'URLSessionTaskDelegate' in scope
 37 |
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
    |                                      `- error: cannot find type 'URLSessionTaskDelegate' in scope
 40 |                                      URLSessionDataDelegate {
 41 |
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:40:38: error: cannot find type 'URLSessionDataDelegate' in scope
 38 | final class TracedURLSessionDelegate: NSObject,
 39 |                                      URLSessionTaskDelegate,
 40 |                                      URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 41 |
 42 |     func urlSession(
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:45:38: error: cannot find type 'URLSessionTaskMetrics' in scope
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
    |                                      `- error: cannot find type 'URLSessionTaskMetrics' in scope
 46 |     ) {
 47 |         guard
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     func urlSession(
 43 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         task: URLSessionTask,
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
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/Sources/ArtAdk/Helper/Logs.swift:44:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     func urlSession(
 43 |         _ session: URLSession,
 44 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         didFinishCollecting metrics: URLSessionTaskMetrics
 46 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:75:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     func urlSession(
 75 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         task: URLSessionTask,
 77 |         didCompleteWithError error: Error?
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/Sources/ArtAdk/Helper/Logs.swift:76:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     func urlSession(
 75 |         _ session: URLSession,
 76 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         didCompleteWithError error: Error?
 78 |     ) {
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/Sources/ArtAdk/Helper/Logs.swift:49:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 47 |         guard
 48 |             let transaction = metrics.transactionMetrics.last,
 49 |             let request = task.originalRequest,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 50 |             let response = task.response as? HTTPURLResponse
 51 |         else { return }
/host/spi-builder-workspace/Sources/ArtAdk/Helper/Logs.swift:50:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
 48 |             let transaction = metrics.transactionMetrics.last,
 49 |             let request = task.originalRequest,
 50 |             let response = task.response as? HTTPURLResponse
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
 51 |         else { return }
 52 |
[29/30] Compiling ArtAdk Socket.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:8:32: error: cannot find type 'URLSessionWebSocketTask' in scope
  6 | // MARK: - WebSocket event callbacks
  7 | public struct WebSocketEvents {
  8 |     public var onOpen:       ((URLSessionWebSocketTask.CloseCode?) -> Void)?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     public var onError:      ((Error) -> Void)?
 10 |     public var onClose:      ((URLSessionWebSocketTask.CloseCode, String?) -> Void)?
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:10:32: error: cannot find type 'URLSessionWebSocketTask' in scope
  8 |     public var onOpen:       ((URLSessionWebSocketTask.CloseCode?) -> Void)?
  9 |     public var onError:      ((Error) -> Void)?
 10 |     public var onClose:      ((URLSessionWebSocketTask.CloseCode, String?) -> Void)?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 11 |     public var onConnection: ((ConnectionDetail) -> Void)?
 12 | }
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:21:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |     private static var _instance: Socket?
 20 |     // MARK: - State
 21 |     private var websocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 22 |     private var credentials: AuthenticationConfig = AuthenticationConfig()
 23 |     private var subscriptions: [String: BaseSubscription] = [:]
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:41:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     private var sseTask: Task<Void, Never>?
 41 |     private var urlSession: URLSession!
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     // MARK: - Event emitter
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/Sources/ArtAdk/WebSocket/Socket.swift:668:19: error: cannot find type 'URLSessionWebSocketDelegate' in scope
666 |
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
    |                   `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
670 |                            didOpenWithProtocol protocol_: String?) {
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:669:66: error: cannot find type 'URLSessionWebSocketTask' in scope
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                                                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
670 |                            didOpenWithProtocol protocol_: String?) {
671 |         isConnectionActive = false  // wait for art_ready event
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:669:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
670 |                            didOpenWithProtocol protocol_: String?) {
671 |         isConnectionActive = false  // wait for art_ready event
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/Sources/ArtAdk/WebSocket/Socket.swift:676:24: error: cannot find type 'URLSessionWebSocketTask' in scope
674 |     public func urlSession(
675 |         _ session: URLSession,
676 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
677 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
678 |         reason: Data?
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:677:33: error: cannot find type 'URLSessionWebSocketTask' in scope
675 |         _ session: URLSession,
676 |         webSocketTask: URLSessionWebSocketTask,
677 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
678 |         reason: Data?
679 |     ) {
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:675:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
673 |
674 |     public func urlSession(
675 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
676 |         webSocketTask: URLSessionWebSocketTask,
677 |         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/Sources/ArtAdk/WebSocket/Socket.swift:67:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |         self.decrypt = decrypt
 66 |         super.init()
 67 |         self.urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |
 69 |         self.lpClient = LongPollClient(opts: LongPollOptions(
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:67:54: error: cannot infer contextual base in reference to member 'default'
 65 |         self.decrypt = decrypt
 66 |         super.init()
 67 |         self.urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
 68 |
 69 |         self.lpClient = LongPollClient(opts: LongPollOptions(
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:67:94: error: 'nil' requires a contextual type
 65 |         self.decrypt = decrypt
 66 |         super.init()
 67 |         self.urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                                                              `- error: 'nil' requires a contextual type
 68 |
 69 |         self.lpClient = LongPollClient(opts: LongPollOptions(
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:176:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
174 |             group.addTask { [weak self] in
175 |                 guard let self else { return }
176 |                 let task = self.urlSession.webSocketTask(with: wsURL)
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
177 |
178 |                 task.resume()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:193:27: error: cannot infer contextual base in reference to member 'completed'
191 |     private func safeClose(timeout: Double = 1.0) async {
192 |         guard let task = websocket else { return }
193 |         if task.state == .completed { websocket = nil; return }
    |                           `- error: cannot infer contextual base in reference to member 'completed'
194 |         await withCheckedContinuation { (cont: CheckedContinuation<Void, Never>) in
195 |             task.cancel(with: .normalClosure, reason: nil)
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:195:32: error: cannot infer contextual base in reference to member 'normalClosure'
193 |         if task.state == .completed { websocket = nil; return }
194 |         await withCheckedContinuation { (cont: CheckedContinuation<Void, Never>) in
195 |             task.cancel(with: .normalClosure, reason: nil)
    |                                `- error: cannot infer contextual base in reference to member 'normalClosure'
196 |             DispatchQueue.global().asyncAfter(deadline: .now() + timeout) {
197 |                 cont.resume()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:195:55: error: 'nil' requires a contextual type
193 |         if task.state == .completed { websocket = nil; return }
194 |         await withCheckedContinuation { (cont: CheckedContinuation<Void, Never>) in
195 |             task.cancel(with: .normalClosure, reason: nil)
    |                                                       `- error: 'nil' requires a contextual type
196 |             DispatchQueue.global().asyncAfter(deadline: .now() + timeout) {
197 |                 cont.resume()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:223:27: error: cannot find 'URLRequest' in scope
221 |
222 |             do {
223 |                 var req = URLRequest(url: sseURL)
    |                           `- error: cannot find 'URLRequest' in scope
224 |                 req.setValue("text/event-stream", forHTTPHeaderField: "Accept")
225 |
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:537:52: error: cannot infer contextual base in reference to member 'running'
535 |             )
536 |
537 |         guard let task = websocket, task.state == .running else {
    |                                                    `- error: cannot infer contextual base in reference to member 'running'
538 |             withSocketLock { pendingSendMessages.append(message) }
539 |             LogTracer.log("[ART] WebSocket not open – message buffered")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:542:20: error: cannot infer contextual base in reference to member 'string'
540 |             return false
541 |         }
542 |         task.send(.string(message)) { [weak self] error in
    |                    `- error: cannot infer contextual base in reference to member 'string'
543 |             if let error { self?.emitter.emit("error", error) }
544 |         }
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:542:51: error: cannot infer type of closure parameter 'error' without a type annotation
540 |             return false
541 |         }
542 |         task.send(.string(message)) { [weak self] error in
    |                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
543 |             if let error { self?.emitter.emit("error", error) }
544 |         }
[30/30] Compiling ArtAdk Subscription.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:8:32: error: cannot find type 'URLSessionWebSocketTask' in scope
  6 | // MARK: - WebSocket event callbacks
  7 | public struct WebSocketEvents {
  8 |     public var onOpen:       ((URLSessionWebSocketTask.CloseCode?) -> Void)?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     public var onError:      ((Error) -> Void)?
 10 |     public var onClose:      ((URLSessionWebSocketTask.CloseCode, String?) -> Void)?
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:10:32: error: cannot find type 'URLSessionWebSocketTask' in scope
  8 |     public var onOpen:       ((URLSessionWebSocketTask.CloseCode?) -> Void)?
  9 |     public var onError:      ((Error) -> Void)?
 10 |     public var onClose:      ((URLSessionWebSocketTask.CloseCode, String?) -> Void)?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 11 |     public var onConnection: ((ConnectionDetail) -> Void)?
 12 | }
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:21:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 19 |     private static var _instance: Socket?
 20 |     // MARK: - State
 21 |     private var websocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 22 |     private var credentials: AuthenticationConfig = AuthenticationConfig()
 23 |     private var subscriptions: [String: BaseSubscription] = [:]
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:41:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     private var sseTask: Task<Void, Never>?
 41 |     private var urlSession: URLSession!
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     // MARK: - Event emitter
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/Sources/ArtAdk/WebSocket/Socket.swift:668:19: error: cannot find type 'URLSessionWebSocketDelegate' in scope
666 |
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
    |                   `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
670 |                            didOpenWithProtocol protocol_: String?) {
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:669:66: error: cannot find type 'URLSessionWebSocketTask' in scope
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                                                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
670 |                            didOpenWithProtocol protocol_: String?) {
671 |         isConnectionActive = false  // wait for art_ready event
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:669:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
667 | // MARK: - URLSessionWebSocketDelegate
668 | extension Socket: URLSessionWebSocketDelegate {
669 |     public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
670 |                            didOpenWithProtocol protocol_: String?) {
671 |         isConnectionActive = false  // wait for art_ready event
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/Sources/ArtAdk/WebSocket/Socket.swift:676:24: error: cannot find type 'URLSessionWebSocketTask' in scope
674 |     public func urlSession(
675 |         _ session: URLSession,
676 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
677 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
678 |         reason: Data?
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:677:33: error: cannot find type 'URLSessionWebSocketTask' in scope
675 |         _ session: URLSession,
676 |         webSocketTask: URLSessionWebSocketTask,
677 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
678 |         reason: Data?
679 |     ) {
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:675:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
673 |
674 |     public func urlSession(
675 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
676 |         webSocketTask: URLSessionWebSocketTask,
677 |         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/Sources/ArtAdk/WebSocket/Socket.swift:67:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |         self.decrypt = decrypt
 66 |         super.init()
 67 |         self.urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |
 69 |         self.lpClient = LongPollClient(opts: LongPollOptions(
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:67:54: error: cannot infer contextual base in reference to member 'default'
 65 |         self.decrypt = decrypt
 66 |         super.init()
 67 |         self.urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
 68 |
 69 |         self.lpClient = LongPollClient(opts: LongPollOptions(
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:67:94: error: 'nil' requires a contextual type
 65 |         self.decrypt = decrypt
 66 |         super.init()
 67 |         self.urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                                                              `- error: 'nil' requires a contextual type
 68 |
 69 |         self.lpClient = LongPollClient(opts: LongPollOptions(
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:176:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
174 |             group.addTask { [weak self] in
175 |                 guard let self else { return }
176 |                 let task = self.urlSession.webSocketTask(with: wsURL)
    |                                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
177 |
178 |                 task.resume()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:193:27: error: cannot infer contextual base in reference to member 'completed'
191 |     private func safeClose(timeout: Double = 1.0) async {
192 |         guard let task = websocket else { return }
193 |         if task.state == .completed { websocket = nil; return }
    |                           `- error: cannot infer contextual base in reference to member 'completed'
194 |         await withCheckedContinuation { (cont: CheckedContinuation<Void, Never>) in
195 |             task.cancel(with: .normalClosure, reason: nil)
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:195:32: error: cannot infer contextual base in reference to member 'normalClosure'
193 |         if task.state == .completed { websocket = nil; return }
194 |         await withCheckedContinuation { (cont: CheckedContinuation<Void, Never>) in
195 |             task.cancel(with: .normalClosure, reason: nil)
    |                                `- error: cannot infer contextual base in reference to member 'normalClosure'
196 |             DispatchQueue.global().asyncAfter(deadline: .now() + timeout) {
197 |                 cont.resume()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:195:55: error: 'nil' requires a contextual type
193 |         if task.state == .completed { websocket = nil; return }
194 |         await withCheckedContinuation { (cont: CheckedContinuation<Void, Never>) in
195 |             task.cancel(with: .normalClosure, reason: nil)
    |                                                       `- error: 'nil' requires a contextual type
196 |             DispatchQueue.global().asyncAfter(deadline: .now() + timeout) {
197 |                 cont.resume()
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:223:27: error: cannot find 'URLRequest' in scope
221 |
222 |             do {
223 |                 var req = URLRequest(url: sseURL)
    |                           `- error: cannot find 'URLRequest' in scope
224 |                 req.setValue("text/event-stream", forHTTPHeaderField: "Accept")
225 |
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:537:52: error: cannot infer contextual base in reference to member 'running'
535 |             )
536 |
537 |         guard let task = websocket, task.state == .running else {
    |                                                    `- error: cannot infer contextual base in reference to member 'running'
538 |             withSocketLock { pendingSendMessages.append(message) }
539 |             LogTracer.log("[ART] WebSocket not open – message buffered")
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:542:20: error: cannot infer contextual base in reference to member 'string'
540 |             return false
541 |         }
542 |         task.send(.string(message)) { [weak self] error in
    |                    `- error: cannot infer contextual base in reference to member 'string'
543 |             if let error { self?.emitter.emit("error", error) }
544 |         }
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:542:51: error: cannot infer type of closure parameter 'error' without a type annotation
540 |             return false
541 |         }
542 |         task.send(.string(message)) { [weak self] error in
    |                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
543 |             if let error { self?.emitter.emit("error", error) }
544 |         }
BUILD FAILURE 6.2 linux