Build Information
Failed to build APIRequest, reference master (0f0e8e), with Swift 6.3 for Wasm on 22 Apr 2026 11:47:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NathanFallet/APIRequest.git
Reference: master
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/NathanFallet/APIRequest
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0f0e8e7 Fixing README
Cloned https://github.com/NathanFallet/APIRequest.git
Revision (git rev-parse @):
0f0e8e78d50be27444704022cc8740730f1efa54
SUCCESS checkout https://github.com/NathanFallet/APIRequest.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/NathanFallet/APIRequest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 APIRequest APIRequest.swift
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:26:36: error: cannot find type 'URLSessionDelegate' in scope
24 | #endif
25 |
26 | public class APIRequest: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
27 |
28 | /// Completion handler of an APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:26:56: error: cannot find type 'URLSessionTaskDelegate' in scope
24 | #endif
25 |
26 | public class APIRequest: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
27 |
28 | /// Completion handler of an APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:50:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | // Task
50 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Create a request to the API
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:267:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | /// - totalBytesSent: The total bytes sent
266 | /// - totalBytesExpectedToSend: The total bytes expected to send
267 | public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | // Call the upload progress (if specified)
269 | uploadProgress?(Double(totalBytesSent) / Double(totalBytesExpectedToSend))
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/APIRequest/Request/APIRequest.swift:267:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | /// - totalBytesSent: The total bytes sent
266 | /// - totalBytesExpectedToSend: The total bytes expected to send
267 | public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | // Call the upload progress (if specified)
269 | uploadProgress?(Double(totalBytesSent) / Double(totalBytesExpectedToSend))
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:179:27: error: cannot find 'URLRequest' in scope
177 | if let url = getURL() {
178 | // Create the request based on give parameters
179 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
180 | request.cachePolicy = URLRequest.CachePolicy.reloadIgnoringLocalCacheData
181 | request.httpMethod = method
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:180:35: error: cannot find 'URLRequest' in scope
178 | // Create the request based on give parameters
179 | var request = URLRequest(url: url)
180 | request.cachePolicy = URLRequest.CachePolicy.reloadIgnoringLocalCacheData
| `- error: cannot find 'URLRequest' in scope
181 | request.httpMethod = method
182 | request.allowsCellularAccess = configuration.allowsCellularAccess
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:203:117: error: cannot find 'OperationQueue' in scope
201 |
202 | // Create the session
203 | let session = URLSession(configuration: URLSessionConfiguration.default, delegate: self, delegateQueue: OperationQueue.main)
| `- error: cannot find 'OperationQueue' in scope
204 |
205 | // Launch the request to server
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:203:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
201 |
202 | // Create the session
203 | let session = URLSession(configuration: URLSessionConfiguration.default, delegate: self, delegateQueue: OperationQueue.main)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
204 |
205 | // Launch the request to server
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:203:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 |
202 | // Create the session
203 | let session = URLSession(configuration: URLSessionConfiguration.default, delegate: self, delegateQueue: OperationQueue.main)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 |
205 | // Launch the request to server
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:228:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
226 | }
227 | }
228 | task?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
229 | } else {
230 | // URL is not valid
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:241:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
239 | @discardableResult
240 | public func cancel() -> APIRequest {
241 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
242 | task = nil
243 | return self
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:250:13: error: cannot find 'DispatchQueue' in scope
248 | if configuration.completionInMainThread {
249 | // Call main thread
250 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
251 | // And complete
252 | completionHandler(data, status)
[4/11] Compiling APIRequest APIDecoder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Emitting module APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:26:36: error: cannot find type 'URLSessionDelegate' in scope
24 | #endif
25 |
26 | public class APIRequest: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
27 |
28 | /// Completion handler of an APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:26:56: error: cannot find type 'URLSessionTaskDelegate' in scope
24 | #endif
25 |
26 | public class APIRequest: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
27 |
28 | /// Completion handler of an APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:50:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | // Task
50 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |
52 | /// Create a request to the API
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:267:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | /// - totalBytesSent: The total bytes sent
266 | /// - totalBytesExpectedToSend: The total bytes expected to send
267 | public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | // Call the upload progress (if specified)
269 | uploadProgress?(Double(totalBytesSent) / Double(totalBytesExpectedToSend))
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/APIRequest/Request/APIRequest.swift:267:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | /// - totalBytesSent: The total bytes sent
266 | /// - totalBytesExpectedToSend: The total bytes expected to send
267 | public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | // Call the upload progress (if specified)
269 | uploadProgress?(Double(totalBytesSent) / Double(totalBytesExpectedToSend))
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
[6/11] Compiling APIRequest APIEncoder.swift
[7/11] Compiling APIRequest APIConfiguration.swift
[8/11] Compiling APIRequest JSONAPIEncoder.swift
[9/11] Compiling APIRequest JSONAPIDecoder.swift
[10/11] Compiling APIRequest EncodableExtension.swift
[11/11] Compiling APIRequest APIResponseStatus.swift
BUILD FAILURE 6.3 wasm