The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WOWSQL, reference v3.10.0 (4ee453), with Swift 6.3 for Wasm on 18 Oct 2026 17:45:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WowSQL/wowsql-swift.git
Reference: v3.10.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.10.0    -> FETCH_HEAD
HEAD is now at 4ee453c Release v3.10.0 with apikey, 2FA, and storage contract fixes.
Cloned https://github.com/WowSQL/wowsql-swift.git
Revision (git rev-parse @):
4ee453c3941aaa29e90c069f5fc6c8fb92d1b423
SUCCESS checkout https://github.com/WowSQL/wowsql-swift.git at v3.10.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/WowSQL/wowsql-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:11aa8e4a9dbcd813ae44128d01e945c51d260b4dfda77b6bb7d997d0cc236164
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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:310:67: error: cannot find type 'URLRequest' in scope
308 |     }
309 |
310 |     private func buildRequest(url: URL, method: String) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
311 |         var request = URLRequest(url: url)
312 |         request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:343:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |     }
342 |
343 |     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.
344 |         guard let httpResponse = response as? HTTPURLResponse else {
345 |             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(apiKey, forHTTPHeaderField: "apikey")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:193:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
191 |         request.httpBody = body
192 |
193 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
194 |         try checkResponse(response: response, data: data)
195 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:236:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
234 |         let url = URL(string: urlString)!
235 |         let request = try buildRequest(url: url, method: "GET")
236 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
237 |         try checkResponse(response: response, data: data)
238 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:255:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
253 |         let url = buildUrl("/api/v1/storage/projects/\(projectSlug)/files/\(bucketName)/\(filePath)")
254 |         let request = try buildRequest(url: url, method: "GET")
255 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
256 |         try checkResponse(response: response, data: data)
257 |         return data
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:301:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
299 |     /// Close the HTTP session.
300 |     public func close() {
301 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
302 |     }
303 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:311:23: error: cannot find 'URLRequest' in scope
309 |
310 |     private func buildRequest(url: URL, method: String) throws -> URLRequest {
311 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
312 |         request.httpMethod = method
313 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:333:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
331 |         }
332 |
333 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
334 |         try checkResponse(response: response, data: data)
335 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:344:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
342 |
343 |     private func checkResponse(response: URLResponse, data: Data) throws {
344 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
345 |             throw NetworkError("Invalid response type")
346 |         }
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:344:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |
343 |     private func checkResponse(response: URLResponse, data: Data) throws {
344 |         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.
345 |             throw NetworkError("Invalid response type")
346 |         }
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:348:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
346 |         }
347 |
348 |         if !(200...299).contains(httpResponse.statusCode) {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
349 |             let errorDict = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
350 |             let message = errorDict?["detail"] as? String
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:353:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 |                 ?? errorDict?["error"] as? String
352 |                 ?? errorDict?["message"] as? String
353 |                 ?? "Request failed with status \(httpResponse.statusCode)"
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 |
355 |             switch httpResponse.statusCode {
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:355:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
353 |                 ?? "Request failed with status \(httpResponse.statusCode)"
354 |
355 |             switch httpResponse.statusCode {
    |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
356 |             case 401, 403:
357 |                 throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:357:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
355 |             switch httpResponse.statusCode {
356 |             case 401, 403:
357 |                 throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
    |                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
358 |             case 404:
359 |                 throw NotFoundError(message, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:365:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |                 throw RateLimitError(message, response: errorDict)
364 |             default:
365 |                 throw StorageError(message, statusCode: httpResponse.statusCode, response: errorDict)
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 |             }
367 |         }
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/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:310:67: error: cannot find type 'URLRequest' in scope
308 |     }
309 |
310 |     private func buildRequest(url: URL, method: String) throws -> URLRequest {
    |                                                                   `- error: cannot find type 'URLRequest' in scope
311 |         var request = URLRequest(url: url)
312 |         request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:343:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |     }
342 |
343 |     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.
344 |         guard let httpResponse = response as? HTTPURLResponse else {
345 |             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 Version.swift
[6/13] 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(serviceKey, forHTTPHeaderField: "apikey")
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:302:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
300 |         }
301 |
302 |         let (data, response) = try await session.data(for: urlRequest)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
303 |
304 |         let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:304:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 |         let (data, response) = try await session.data(for: urlRequest)
303 |
304 |         let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 |         try checkResponse(statusCode: statusCode, data: data)
306 |
[7/13] Compiling WOWSQL WOWSQL.swift
[8/13] Compiling WOWSQL QueryBuilder.swift
[9/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 {
[10/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:456:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
454 |     /// Close the HTTP session.
455 |     public func close() {
456 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
457 |     }
458 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:471:23: error: cannot find 'URLRequest' in scope
469 |         extraHeaders: [String: String]? = nil
470 |     ) async throws -> [String: AnyCodable] {
471 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
472 |         request.httpMethod = method
473 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:492:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
490 |
491 |         do {
492 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
493 |
494 |             guard let httpResponse = response as? HTTPURLResponse else {
[11/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:456:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
454 |     /// Close the HTTP session.
455 |     public func close() {
456 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
457 |     }
458 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:471:23: error: cannot find 'URLRequest' in scope
469 |         extraHeaders: [String: String]? = nil
470 |     ) async throws -> [String: AnyCodable] {
471 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
472 |         request.httpMethod = method
473 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:492:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
490 |
491 |         do {
492 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
493 |
494 |             guard let httpResponse = response as? HTTPURLResponse else {
[12/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:145:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
143 |
144 |         do {
145 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
146 |
147 |             guard let httpResponse = response as? HTTPURLResponse else {
[13/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:145:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
143 |
144 |         do {
145 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
146 |
147 |             guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.3 wasm