Build Information
Failed to build ArtAdk, reference 1.0.0 (70ee2d), with Swift 6.1 for Linux on 28 Apr 2026 08:55:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
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:6:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | // MARK: - Singleton
6 | private static var _instance: Auth?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | private static let lock = NSLock()
8 |
/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:6:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | // MARK: - Singleton
6 | private static var _instance: Auth?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | private static let lock = NSLock()
8 |
/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/Config/Constant.swift:4:23: warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public final class Constant {
4 | public static var ROOT: String = "/"
| |- warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ROOT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ROOT' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:5:23: warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public final class Constant {
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
| |- warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_FILE_NAME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_FILE_NAME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:6:23: warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
| |- warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BASE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'BASE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:7:23: warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
| |- warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'WS_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'WS_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:8:23: warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
| |- warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SSE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'SSE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:9:23: warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
| |- warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LPOLL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'LPOLL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
11 | }
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:10:23: warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
| |- warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_JSON_PATH' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_JSON_PATH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/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/Config/Constant.swift:4:23: warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public final class Constant {
4 | public static var ROOT: String = "/"
| |- warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ROOT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ROOT' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:5:23: warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public final class Constant {
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
| |- warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_FILE_NAME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_FILE_NAME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:6:23: warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
| |- warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BASE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'BASE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:7:23: warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
| |- warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'WS_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'WS_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:8:23: warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
| |- warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SSE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'SSE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:9:23: warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
| |- warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LPOLL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'LPOLL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
11 | }
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:10:23: warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
| |- warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_JSON_PATH' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_JSON_PATH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/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/Config/Constant.swift:4:23: warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public final class Constant {
4 | public static var ROOT: String = "/"
| |- warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ROOT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ROOT' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:5:23: warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public final class Constant {
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
| |- warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_FILE_NAME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_FILE_NAME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:6:23: warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
| |- warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BASE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'BASE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:7:23: warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
| |- warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'WS_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'WS_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:8:23: warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
| |- warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SSE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'SSE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:9:23: warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
| |- warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LPOLL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'LPOLL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
11 | }
/host/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:10:23: warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
| |- warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_JSON_PATH' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_JSON_PATH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/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 ChannelTypes.swift
[17/30] Compiling ArtAdk CryptoTypes.swift
[18/30] Compiling ArtAdk SocketTypes.swift
[19/30] Compiling ArtAdk HelperFunctions.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Interception.swift:33:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | public func reconnect() {
32 | LogTracer.log("[ART] reconnecting interceptor \(interceptorName)")
33 | Task { try? await validateInterception() }
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | }
35 |
[20/30] Compiling ArtAdk Interception.swift
/host/spi-builder-workspace/Sources/ArtAdk/WebSocket/Interception.swift:33:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | public func reconnect() {
32 | LogTracer.log("[ART] reconnecting interceptor \(interceptorName)")
33 | Task { try? await validateInterception() }
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
34 | }
35 |
[21/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 |
[22/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 |
[23/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 | }
[24/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 | }
[25/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 | }
[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:19:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | // MARK: Singleton
19 | private static var _instance: Socket?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
/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:19:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | // MARK: Singleton
19 | private static var _instance: Socket?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
/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 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling TweetNacl Constant.swift
[3/4] Emitting module TweetNacl
[4/4] Compiling TweetNacl TweetNacl.swift
[6/25] 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 | }
[7/25] 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 | }
[8/25] 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 | }
[9/27] Compiling ArtAdk ChannelTypes.swift
[10/27] Compiling ArtAdk CryptoTypes.swift
[11/27] Compiling ArtAdk SocketTypes.swift
[12/27] Compiling ArtAdk HelperFunctions.swift
[13/27] Compiling ArtAdk Interception.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/27] 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
[15/27] 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 |
[16/27] 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 |
[17/27] 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 | }
[18/27] 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 | }
[19/27] 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 | }
[20/27] 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 | }
[21/27] 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 | }
[22/27] 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 | }
[23/27] 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 |
[24/27] 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 |
[25/27] 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 |
[26/27] 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 | }
[27/27] 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.1 linux