Build Information
Failed to build WOWSQL, reference v3.9.0 (c0838e), with Swift 6.1 for Wasm on 20 Aug 2026 12:43:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WowSQL/wowsql-swift.git
Reference: v3.9.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/WowSQL/wowsql-swift
* tag v3.9.0 -> FETCH_HEAD
HEAD is now at c0838e6 Release v3.9.0
Cloned https://github.com/WowSQL/wowsql-swift.git
Revision (git rev-parse @):
c0838e6f0c08c72b38f6da0ee2917809e6a4c439
SUCCESS checkout https://github.com/WowSQL/wowsql-swift.git at v3.9.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/WowSQL/wowsql-swift.git
https://github.com/WowSQL/wowsql-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling WOWSQL Schema.swift
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:73:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
71 | self.timeout = timeout
72 |
73 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:76:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
76 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | }
78 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:113:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 | urlRequest.httpBody = try JSONEncoder().encode(request)
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
116 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:149:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | urlRequest.httpBody = try JSONEncoder().encode(request)
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:150:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
152 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:173:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
171 | urlRequest.httpBody = try JSONEncoder().encode(["sql": sql])
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:174:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
176 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:272:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
270 | /// Close the HTTP session.
271 | public func close() {
272 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
273 | }
274 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:282:23: error: cannot find 'URLRequest' in scope
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
282 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
283 | request.httpMethod = method
284 | request.setValue("Bearer \(serviceKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:301:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
299 | }
300 |
301 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
302 |
303 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:303:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
301 | let (data, response) = try await session.data(for: urlRequest)
302 |
303 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
304 | try checkResponse(statusCode: statusCode, data: data)
305 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/13] Emitting module WOWSQL
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:12:14: warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | /// Base error for WOWSQL SDK
12 | public class WOWSQLError: Error, LocalizedError {
| `- warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:15:16: warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
15 | public let response: [String: Any]?
| `- warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
16 |
17 | public var errorDescription: String? {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:32:14: warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 |
31 | /// Authentication error (401/403)
32 | public class AuthenticationError: WOWSQLError {
| `- warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
34 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:41:14: warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 |
40 | /// Not found error (404)
41 | public class NotFoundError: WOWSQLError {
| `- warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | public init(_ message: String, response: [String: Any]? = nil) {
43 | super.init(message, statusCode: 404, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:50:14: warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
48 |
49 | /// Rate limit error (429)
50 | public class RateLimitError: WOWSQLError {
| `- warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
51 | public init(_ message: String, response: [String: Any]? = nil) {
52 | super.init(message, statusCode: 429, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:59:14: warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
57 |
58 | /// Network error
59 | public class NetworkError: WOWSQLError {
| `- warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
60 | public init(_ message: String, underlyingError: Error? = nil) {
61 | super.init(message)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:68:14: warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 |
67 | /// Storage error
68 | public class StorageError: WOWSQLError {
| `- warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
70 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:77:14: warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
75 |
76 | /// Storage limit exceeded error (413)
77 | public class StorageLimitExceededError: StorageError {
| `- warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
78 | public let requiredBytes: Int64
79 | public let availableBytes: Int64
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:91:14: warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
89 |
90 | /// Schema permission error (403) - requires service role key
91 | public class SchemaPermissionError: WOWSQLError {
| `- warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
92 | public init(_ message: String = "Schema operations require a SERVICE ROLE key.", response: [String: Any]? = nil) {
93 | super.init(message, statusCode: 403, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:309:67: error: cannot find type 'URLRequest' in scope
307 | }
308 |
309 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
310 | var request = URLRequest(url: url)
311 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:341:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | guard let httpResponse = response as? HTTPURLResponse else {
343 | throw NetworkError("Invalid response type")
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
[5/13] Compiling WOWSQL Realtime.swift
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:29: error: cannot infer contextual base in reference to member 'goingAway'
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:48: error: 'nil' requires a contextual type
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:71:21: error: cannot infer contextual base in reference to member 'string'
69 | guard let data = try? JSONSerialization.data(withJSONObject: obj),
70 | let text = String(data: data, encoding: .utf8) else { return }
71 | task?.send(.string(text)) { _ in }
| `- error: cannot infer contextual base in reference to member 'string'
72 | }
73 |
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:88:37: error: cannot infer type of closure parameter 'result' without a type annotation
86 |
87 | private func listen() {
88 | task?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
89 | guard let self else { return }
90 | switch result {
[6/13] Compiling WOWSQL QueryBuilder.swift
/host/spi-builder-workspace/Sources/WOWSQL/QueryBuilder.swift:240:20: error: type of expression is ambiguous without a type annotation
238 | /// Get first result.
239 | public func first<T: Codable>() async throws -> T? {
240 | return try await limit(1).execute().data.first
| `- error: type of expression is ambiguous without a type annotation
241 | }
242 |
/host/spi-builder-workspace/Sources/WOWSQL/QueryBuilder.swift:240:20: warning: no 'async' operations occur within 'await' expression
238 | /// Get first result.
239 | public func first<T: Codable>() async throws -> T? {
240 | return try await limit(1).execute().data.first
| `- warning: no 'async' operations occur within 'await' expression
241 | }
242 |
/host/spi-builder-workspace/Sources/WOWSQL/QueryBuilder.swift:240:16: warning: no calls to throwing functions occur within 'try' expression
238 | /// Get first result.
239 | public func first<T: Codable>() async throws -> T? {
240 | return try await limit(1).execute().data.first
| `- warning: no calls to throwing functions occur within 'try' expression
241 | }
242 |
[7/13] Compiling WOWSQL Client.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:144:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 |
143 | do {
144 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
145 |
146 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:12:14: warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | /// Base error for WOWSQL SDK
12 | public class WOWSQLError: Error, LocalizedError {
| `- warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:15:16: warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
15 | public let response: [String: Any]?
| `- warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
16 |
17 | public var errorDescription: String? {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:32:14: warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 |
31 | /// Authentication error (401/403)
32 | public class AuthenticationError: WOWSQLError {
| `- warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
34 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:41:14: warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 |
40 | /// Not found error (404)
41 | public class NotFoundError: WOWSQLError {
| `- warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | public init(_ message: String, response: [String: Any]? = nil) {
43 | super.init(message, statusCode: 404, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:50:14: warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
48 |
49 | /// Rate limit error (429)
50 | public class RateLimitError: WOWSQLError {
| `- warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
51 | public init(_ message: String, response: [String: Any]? = nil) {
52 | super.init(message, statusCode: 429, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:59:14: warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
57 |
58 | /// Network error
59 | public class NetworkError: WOWSQLError {
| `- warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
60 | public init(_ message: String, underlyingError: Error? = nil) {
61 | super.init(message)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:68:14: warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 |
67 | /// Storage error
68 | public class StorageError: WOWSQLError {
| `- warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
70 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:77:14: warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
75 |
76 | /// Storage limit exceeded error (413)
77 | public class StorageLimitExceededError: StorageError {
| `- warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
78 | public let requiredBytes: Int64
79 | public let availableBytes: Int64
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:91:14: warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
89 |
90 | /// Schema permission error (403) - requires service role key
91 | public class SchemaPermissionError: WOWSQLError {
| `- warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
92 | public init(_ message: String = "Schema operations require a SERVICE ROLE key.", response: [String: Any]? = nil) {
93 | super.init(message, statusCode: 403, response: response)
[8/13] Compiling WOWSQL Exceptions.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:144:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 |
143 | do {
144 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
145 |
146 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:12:14: warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | /// Base error for WOWSQL SDK
12 | public class WOWSQLError: Error, LocalizedError {
| `- warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:15:16: warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
15 | public let response: [String: Any]?
| `- warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
16 |
17 | public var errorDescription: String? {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:32:14: warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 |
31 | /// Authentication error (401/403)
32 | public class AuthenticationError: WOWSQLError {
| `- warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
34 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:41:14: warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 |
40 | /// Not found error (404)
41 | public class NotFoundError: WOWSQLError {
| `- warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | public init(_ message: String, response: [String: Any]? = nil) {
43 | super.init(message, statusCode: 404, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:50:14: warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
48 |
49 | /// Rate limit error (429)
50 | public class RateLimitError: WOWSQLError {
| `- warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
51 | public init(_ message: String, response: [String: Any]? = nil) {
52 | super.init(message, statusCode: 429, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:59:14: warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
57 |
58 | /// Network error
59 | public class NetworkError: WOWSQLError {
| `- warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
60 | public init(_ message: String, underlyingError: Error? = nil) {
61 | super.init(message)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:68:14: warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 |
67 | /// Storage error
68 | public class StorageError: WOWSQLError {
| `- warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
70 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:77:14: warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
75 |
76 | /// Storage limit exceeded error (413)
77 | public class StorageLimitExceededError: StorageError {
| `- warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
78 | public let requiredBytes: Int64
79 | public let availableBytes: Int64
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:91:14: warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
89 |
90 | /// Schema permission error (403) - requires service role key
91 | public class SchemaPermissionError: WOWSQLError {
| `- warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
92 | public init(_ message: String = "Schema operations require a SERVICE ROLE key.", response: [String: Any]? = nil) {
93 | super.init(message, statusCode: 403, response: response)
[9/13] Compiling WOWSQL Models.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:420:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
418 | /// Close the HTTP session.
419 | public func close() {
420 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
421 | }
422 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:435:23: error: cannot find 'URLRequest' in scope
433 | extraHeaders: [String: String]? = nil
434 | ) async throws -> [String: AnyCodable] {
435 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
436 | request.httpMethod = method
437 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:455:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
453 |
454 | do {
455 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
456 |
457 | guard let httpResponse = response as? HTTPURLResponse else {
[10/13] Compiling WOWSQL ProjectAuthClient.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:420:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
418 | /// Close the HTTP session.
419 | public func close() {
420 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
421 | }
422 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:435:23: error: cannot find 'URLRequest' in scope
433 | extraHeaders: [String: String]? = nil
434 | ) async throws -> [String: AnyCodable] {
435 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
436 | request.httpMethod = method
437 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:455:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
453 |
454 | do {
455 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
456 |
457 | guard let httpResponse = response as? HTTPURLResponse else {
[11/13] Compiling WOWSQL Version.swift
[12/13] Compiling WOWSQL Storage.swift
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:309:67: error: cannot find type 'URLRequest' in scope
307 | }
308 |
309 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
310 | var request = URLRequest(url: url)
311 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:341:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | guard let httpResponse = response as? HTTPURLResponse else {
343 | throw NetworkError("Invalid response type")
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/WOWSQL/Storage.swift:83:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
81 | self.timeout = timeout
82 |
83 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:86:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
86 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
87 | }
88 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:117:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
115 | let url = self.buildUrl("/api/v1/storage/projects/\(projectSlug)/buckets")
116 | let request = try buildRequest(url: url, method: "GET")
117 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
118 | try checkResponse(response: response, data: data)
119 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:176:23: error: cannot find 'URLRequest' in scope
174 |
175 | let url = URL(string: urlString)!
176 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
177 | request.httpMethod = "POST"
178 | request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:192:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
190 | request.httpBody = body
191 |
192 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
193 | try checkResponse(response: response, data: data)
194 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:235:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
233 | let url = URL(string: urlString)!
234 | let request = try buildRequest(url: url, method: "GET")
235 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
236 | try checkResponse(response: response, data: data)
237 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:254:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
252 | let url = buildUrl("/api/v1/storage/projects/\(projectSlug)/files/\(bucketName)/\(filePath)")
253 | let request = try buildRequest(url: url, method: "GET")
254 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
255 | try checkResponse(response: response, data: data)
256 | return data
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:300:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
298 | /// Close the HTTP session.
299 | public func close() {
300 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
301 | }
302 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:310:23: error: cannot find 'URLRequest' in scope
308 |
309 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
310 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
311 | request.httpMethod = method
312 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:331:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
329 | }
330 |
331 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
332 | try checkResponse(response: response, data: data)
333 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:342:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
342 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | throw NetworkError("Invalid response type")
344 | }
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:342:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
342 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | throw NetworkError("Invalid response type")
344 | }
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/WOWSQL/Storage.swift:346:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
344 | }
345 |
346 | if !(200...299).contains(httpResponse.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
347 | let errorDict = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
348 | let message = errorDict?["detail"] as? String
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:351:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
349 | ?? errorDict?["error"] as? String
350 | ?? errorDict?["message"] as? String
351 | ?? "Request failed with status \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
352 |
353 | switch httpResponse.statusCode {
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:353:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | ?? "Request failed with status \(httpResponse.statusCode)"
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 401, 403:
355 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:355:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
353 | switch httpResponse.statusCode {
354 | case 401, 403:
355 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
356 | case 404:
357 | throw NotFoundError(message, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:363:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
361 | throw RateLimitError(message, response: errorDict)
362 | default:
363 | throw StorageError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
364 | }
365 | }
[13/13] Compiling WOWSQL WOWSQL.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling WOWSQL Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/12] Emitting module WOWSQL
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:309:67: error: cannot find type 'URLRequest' in scope
307 | }
308 |
309 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
310 | var request = URLRequest(url: url)
311 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:341:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | guard let httpResponse = response as? HTTPURLResponse else {
343 | throw NetworkError("Invalid response type")
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
[4/12] Compiling WOWSQL WOWSQL.swift
[5/12] Compiling WOWSQL Storage.swift
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:309:67: error: cannot find type 'URLRequest' in scope
307 | }
308 |
309 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
310 | var request = URLRequest(url: url)
311 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:341:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | guard let httpResponse = response as? HTTPURLResponse else {
343 | throw NetworkError("Invalid response type")
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/WOWSQL/Storage.swift:83:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
81 | self.timeout = timeout
82 |
83 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:86:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
86 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
87 | }
88 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:117:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
115 | let url = self.buildUrl("/api/v1/storage/projects/\(projectSlug)/buckets")
116 | let request = try buildRequest(url: url, method: "GET")
117 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
118 | try checkResponse(response: response, data: data)
119 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:176:23: error: cannot find 'URLRequest' in scope
174 |
175 | let url = URL(string: urlString)!
176 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
177 | request.httpMethod = "POST"
178 | request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:192:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
190 | request.httpBody = body
191 |
192 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
193 | try checkResponse(response: response, data: data)
194 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:235:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
233 | let url = URL(string: urlString)!
234 | let request = try buildRequest(url: url, method: "GET")
235 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
236 | try checkResponse(response: response, data: data)
237 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:254:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
252 | let url = buildUrl("/api/v1/storage/projects/\(projectSlug)/files/\(bucketName)/\(filePath)")
253 | let request = try buildRequest(url: url, method: "GET")
254 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
255 | try checkResponse(response: response, data: data)
256 | return data
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:300:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
298 | /// Close the HTTP session.
299 | public func close() {
300 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
301 | }
302 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:310:23: error: cannot find 'URLRequest' in scope
308 |
309 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
310 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
311 | request.httpMethod = method
312 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:331:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
329 | }
330 |
331 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
332 | try checkResponse(response: response, data: data)
333 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:342:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
342 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | throw NetworkError("Invalid response type")
344 | }
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:342:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 |
341 | private func checkResponse(response: URLResponse, data: Data) throws {
342 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | throw NetworkError("Invalid response type")
344 | }
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/WOWSQL/Storage.swift:346:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
344 | }
345 |
346 | if !(200...299).contains(httpResponse.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
347 | let errorDict = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
348 | let message = errorDict?["detail"] as? String
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:351:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
349 | ?? errorDict?["error"] as? String
350 | ?? errorDict?["message"] as? String
351 | ?? "Request failed with status \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
352 |
353 | switch httpResponse.statusCode {
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:353:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | ?? "Request failed with status \(httpResponse.statusCode)"
352 |
353 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | case 401, 403:
355 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:355:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
353 | switch httpResponse.statusCode {
354 | case 401, 403:
355 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
356 | case 404:
357 | throw NotFoundError(message, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:363:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
361 | throw RateLimitError(message, response: errorDict)
362 | default:
363 | throw StorageError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
364 | }
365 | }
[6/12] Compiling WOWSQL Realtime.swift
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:29: error: cannot infer contextual base in reference to member 'goingAway'
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:48: error: 'nil' requires a contextual type
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:71:21: error: cannot infer contextual base in reference to member 'string'
69 | guard let data = try? JSONSerialization.data(withJSONObject: obj),
70 | let text = String(data: data, encoding: .utf8) else { return }
71 | task?.send(.string(text)) { _ in }
| `- error: cannot infer contextual base in reference to member 'string'
72 | }
73 |
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:88:37: error: cannot infer type of closure parameter 'result' without a type annotation
86 |
87 | private func listen() {
88 | task?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
89 | guard let self else { return }
90 | switch result {
[7/12] Compiling WOWSQL Schema.swift
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:73:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
71 | self.timeout = timeout
72 |
73 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:76:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
76 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | }
78 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:113:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 | urlRequest.httpBody = try JSONEncoder().encode(request)
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
116 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:149:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | urlRequest.httpBody = try JSONEncoder().encode(request)
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:150:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
152 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:173:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
171 | urlRequest.httpBody = try JSONEncoder().encode(["sql": sql])
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:174:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
176 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:272:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
270 | /// Close the HTTP session.
271 | public func close() {
272 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
273 | }
274 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:282:23: error: cannot find 'URLRequest' in scope
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
282 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
283 | request.httpMethod = method
284 | request.setValue("Bearer \(serviceKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:301:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
299 | }
300 |
301 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
302 |
303 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:303:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
301 | let (data, response) = try await session.data(for: urlRequest)
302 |
303 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
304 | try checkResponse(statusCode: statusCode, data: data)
305 |
[8/12] Compiling WOWSQL QueryBuilder.swift
[9/12] Compiling WOWSQL Models.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:420:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
418 | /// Close the HTTP session.
419 | public func close() {
420 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
421 | }
422 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:435:23: error: cannot find 'URLRequest' in scope
433 | extraHeaders: [String: String]? = nil
434 | ) async throws -> [String: AnyCodable] {
435 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
436 | request.httpMethod = method
437 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:455:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
453 |
454 | do {
455 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
456 |
457 | guard let httpResponse = response as? HTTPURLResponse else {
[10/12] Compiling WOWSQL ProjectAuthClient.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:420:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
418 | /// Close the HTTP session.
419 | public func close() {
420 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
421 | }
422 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:435:23: error: cannot find 'URLRequest' in scope
433 | extraHeaders: [String: String]? = nil
434 | ) async throws -> [String: AnyCodable] {
435 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
436 | request.httpMethod = method
437 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:455:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
453 |
454 | do {
455 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
456 |
457 | guard let httpResponse = response as? HTTPURLResponse else {
[11/12] Compiling WOWSQL Client.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:144:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 |
143 | do {
144 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
145 |
146 | guard let httpResponse = response as? HTTPURLResponse else {
[12/12] Compiling WOWSQL Exceptions.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:144:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 |
143 | do {
144 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
145 |
146 | guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.1 wasm