The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WOWSQL, reference main (3b00eb), with Swift 6.3 for Wasm on 22 Apr 2026 00:12:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WowSQL/wowsql-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/WowSQL/wowsql-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3b00eb1 Release v3.1.0
Cloned https://github.com/WowSQL/wowsql-swift.git
Revision (git rev-parse @):
3b00eb1f58d4557abc9e7d9591295a2d3915e522
SUCCESS checkout https://github.com/WowSQL/wowsql-swift.git at main
========================================
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-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] 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 |         }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] 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:115:103: error: cannot find type 'URLRequest' in scope
113 |     // MARK: - Internal Request Methods
114 |
115 |     internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
    |                                                                                                       `- error: cannot find type 'URLRequest' in scope
116 |         var request = URLRequest(url: url)
117 |         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/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/11] 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:115:103: error: cannot find type 'URLRequest' in scope
113 |     // MARK: - Internal Request Methods
114 |
115 |     internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
    |                                                                                                       `- error: cannot find type 'URLRequest' in scope
116 |         var request = URLRequest(url: url)
117 |         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:110:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
108 |     /// Close the client session (invalidates all outstanding tasks).
109 |     public func close() {
110 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
111 |     }
112 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:116:23: error: cannot find 'URLRequest' in scope
114 |
115 |     internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
116 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = method
118 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:134:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
132 |
133 |         do {
134 |             let (data, response) = try await session.data(for: request)
    |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
135 |
136 |             guard let httpResponse = response as? HTTPURLResponse else {
[6/11] Compiling WOWSQL WOWSQL.swift
[7/11] 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/11] Compiling WOWSQL QueryBuilder.swift
[9/11] 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 {
[10/11] Compiling WOWSQL Exceptions.swift
[11/11] Compiling WOWSQL Models.swift
BUILD FAILURE 6.3 wasm