The Swift Package Index logo.Swift Package Index

Build Information

Failed to build APIKit, reference 5.4.0 (b839e5), with Swift 6.4 for Wasm on 18 Sep 2026 18:16:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ishkawa/APIKit.git
Reference: 5.4.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/ishkawa/APIKit
 * tag               5.4.0      -> FETCH_HEAD
HEAD is now at b839e53 Set version 5.4.0
Cloned https://github.com/ishkawa/APIKit.git
Revision (git rev-parse @):
b839e53b870104798035b279d2a6168b0a2227b1
SUCCESS checkout https://github.com/ishkawa/APIKit.git at 5.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ishkawa/APIKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/APIKitTests/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/APIKit/Info.plist
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift:5:10: warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-Sendable type 'InputStream'
 3 | enum InputStreamError: Error {
 4 |     case invalidDataCapacity(Int)
 5 |     case unreadableStream(InputStream)
   |          `- warning: associated value 'unreadableStream' of 'Sendable'-conforming enum 'InputStreamError' has non-Sendable type 'InputStream'
 6 | }
 7 |
Foundation.InputStream:1:12: note: class 'InputStream' does not conform to the 'Sendable' protocol
 1 | open class InputStream : Stream {
   |            `- note: class 'InputStream' does not conform to the 'Sendable' protocol
 2 |     open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength len: Int) -> Int
 3 |     open func getBuffer(_ buffer: UnsafeMutablePointer<UnsafeMutablePointer<UInt8>?>, length len: UnsafeMutablePointer<Int>) -> Bool
/host/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:12:25: error: cannot find type 'OperationQueue' in scope
10 |
11 |     /// Dispatches callback closure on associated operation queue.
12 |     case operationQueue(OperationQueue)
   |                         `- error: cannot find type 'OperationQueue' in scope
13 |
14 |     /// Dispatches callback closure on associated dispatch queue.
/host/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift:15:24: error: cannot find type 'DispatchQueue' in scope
13 |
14 |     /// Dispatches callback closure on associated dispatch queue.
15 |     case dispatchQueue(DispatchQueue)
   |                        `- error: cannot find type 'DispatchQueue' in scope
16 |
17 |     public func execute(closure: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/APIKit/Error/RequestError.swift:9:31: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     /// Indicates `URLRequest` built by `Request.buildURLRequest` is unexpected.
 9 |     case unexpectedURLRequest(URLRequest)
   |                               `- error: cannot find type 'URLRequest' in scope
10 | }
11 |
/host/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift:7:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 | public enum ResponseError: Error {
 6 |     /// Indicates the session adapter returned `URLResponse` that fails to down-cast to `HTTPURLResponse`.
 7 |     case nonHTTPURLResponse(URLResponse?)
   |                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     /// Indicates `HTTPURLResponse.statusCode` is not acceptable.
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/APIKit/Request.swift:48:54: error: cannot find type 'URLRequest' in scope
 46 |     /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
 47 |     /// - Throws: `Error`
 48 |     func intercept(urlRequest: URLRequest) throws -> URLRequest
    |                                                      `- error: cannot find type 'URLRequest' in scope
 49 |
 50 |     /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/Sources/APIKit/Request.swift:48:32: error: cannot find type 'URLRequest' in scope
 46 |     /// thrown in this method, the result of `Session.send()` turns `.failure(.requestError(error))`.
 47 |     /// - Throws: `Error`
 48 |     func intercept(urlRequest: URLRequest) throws -> URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
 49 |
 50 |     /// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
/host/spi-builder-workspace/Sources/APIKit/Request.swift:55:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     /// if the HTTP status code is not in `200..<300`.
 54 |     /// - Throws: `Error`
 55 |     func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 56 |
 57 |     /// Build `Response` instance from raw response object. This method is called after
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/APIKit/Request.swift:60:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     /// `intercept(object:urlResponse:)` if it does not throw any error.
 59 |     /// - Throws: `Error`
 60 |     func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 | }
 62 |
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/APIKit/Request.swift:92:54: error: cannot find type 'URLRequest' in scope
 90 |     }
 91 |
 92 |     func intercept(urlRequest: URLRequest) throws -> URLRequest {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 93 |         return urlRequest
 94 |     }
/host/spi-builder-workspace/Sources/APIKit/Request.swift:92:32: error: cannot find type 'URLRequest' in scope
 90 |     }
 91 |
 92 |     func intercept(urlRequest: URLRequest) throws -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 93 |         return urlRequest
 94 |     }
/host/spi-builder-workspace/Sources/APIKit/Request.swift:96:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     }
 95 |
 96 |     func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         guard 200..<300 ~= urlResponse.statusCode else {
 98 |             throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
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/APIKit/Request.swift:105:38: error: cannot find type 'URLRequest' in scope
103 |     /// Builds `URLRequest` from properties of `self`.
104 |     /// - Throws: `RequestError`, `Error`
105 |     func buildURLRequest() throws -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
106 |         let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
107 |         guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
/host/spi-builder-workspace/Sources/APIKit/Request.swift:142:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |     /// Builds `Response` from response `Data`.
141 |     /// - Throws: `ResponseError`, `Error`
142 |     func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |         let parsedObject = try dataParser.parse(data: data)
144 |         let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
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/APIKit/Request.swift:150:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 | public extension Request where Response == Void {
150 |     func response(from object: Any, urlResponse: HTTPURLResponse) throws {
    |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |         return
152 |     }
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/APIKit/SessionAdapter/SessionAdapter.swift:14:38: error: cannot find type 'URLRequest' in scope
12 | public protocol SessionAdapter {
13 |     /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 |     func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |
16 |     /// Collects tasks from backend networking stack. `handler` must be called after collecting.
/host/spi-builder-workspace/Sources/APIKit/Session.swift:23:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 21 |     // Shared session for class methods
 22 |     private static let privateShared: Session = {
 23 |         let configuration = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 24 |         let adapter = URLSessionAdapter(configuration: configuration)
 25 |         return Session(adapter: adapter)
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/SessionAdapter.swift:14:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public protocol SessionAdapter {
13 |     /// Returns instance that conforms to `SessionTask`. `handler` must be called after success or failure.
14 |     func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask
   |                                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     /// Collects tasks from backend networking stack. `handler` must be called after collecting.
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/APIKit/SessionAdapter/URLSessionAdapter.swift:3:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 1 | import Foundation
 2 |
 3 | extension URLSessionTask: SessionTask {
   | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 4 |
 5 | }
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:57: error: cannot find type 'URLSessionDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
   |                                                         `- error: cannot find type 'URLSessionDelegate' in scope
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:77: error: cannot find type 'URLSessionTaskDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
   |                                                                             `- error: cannot find type 'URLSessionTaskDelegate' in scope
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:17:101: error: cannot find type 'URLSessionDataDelegate' in scope
15 | /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call
16 | /// `super` in these methods if you implement them.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
   |                                                                                                     `- error: cannot find type 'URLSessionDataDelegate' in scope
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | open class URLSessionAdapter: NSObject, SessionAdapter, URLSessionDelegate, URLSessionTaskDelegate, URLSessionDataDelegate {
18 |     /// The underlying `URLSession` instance.
19 |     open var urlSession: URLSession!
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 |     /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
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/APIKit/SessionAdapter/URLSessionAdapter.swift:22:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 |     /// Returns `URLSessionAdapter` initialized with `URLSessionConfiguration`.
22 |     public init(configuration: URLSessionConfiguration) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         super.init()
24 |         self.urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:43: error: cannot find type 'URLRequest' in scope
26 |
27 |     /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 |     open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
   |                                           `- error: cannot find type 'URLRequest' in scope
29 |         let task = urlSession.dataTask(with: URLRequest)
30 |
/host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift:28:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Creates `URLSessionDataTask` instance using `dataTaskWithRequest(_:completionHandler:)`.
28 |     open func createTask(with URLRequest: URLRequest, handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionTask {
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         let task = urlSession.dataTask(with: URLRequest)
30 |
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/APIKit/SessionAdapter/URLSessionAdapter.swift:45:67: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |     }
44 |
45 |     private func setBuffer(_ buffer: NSMutableData, forTask task: URLSessionTask) {
   |                                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |         objc_setAssociatedObject(task, &dataTaskResponseBufferKey, buffer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
47 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:49:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     private func buffer(for task: URLSessionTask) -> NSMutableData? {
   |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         return objc_getAssociatedObject(task, &dataTaskResponseBufferKey) as? NSMutableData
51 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:53:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |     }
52 |
53 |     private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
   |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |         objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:53:103: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |     }
52 |
53 |     private func setHandler(_ handler: @escaping (Data?, URLResponse?, Error?) -> Void, forTask task: URLSessionTask) {
   |                                                                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |         objc_setAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey, handler as Any, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
55 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:57:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |     }
56 |
57 |     private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
   |                                    `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |         return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:57:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |     }
56 |
57 |     private func handler(for task: URLSessionTask) -> ((Data?, URLResponse?, Error?) -> Void)? {
   |                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |         return objc_getAssociatedObject(task, &taskAssociatedObjectCompletionHandlerKey) as? (Data?, URLResponse?, Error?) -> Void
59 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:62:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |     // MARK: URLSessionTaskDelegate
62 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |         handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:62:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 |     // MARK: URLSessionTaskDelegate
62 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |         handler(for: task)?(buffer(for: task) as Data?, task.response, error)
64 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:67:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 |     // MARK: URLSessionDataDelegate
67 |     open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |         buffer(for: dataTask)?.append(data)
69 |     }
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/APIKit/SessionAdapter/URLSessionAdapter.swift:67:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |
66 |     // MARK: URLSessionDataDelegate
67 |     open func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 |         buffer(for: dataTask)?.append(data)
69 |     }
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/APIKit/BodyParameters/BodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/Data+InputStream.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/FormURLEncodedBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/JSONBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/BodyParameters/ProtobufBodyParameters.swift /host/spi-builder-workspace/Sources/APIKit/CallbackQueue.swift /host/spi-builder-workspace/Sources/APIKit/Combine/Combine.swift /host/spi-builder-workspace/Sources/APIKit/Concurrency/Concurrency.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/DataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/FormURLEncodedDataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/JSONDataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/ProtobufDataParser.swift /host/spi-builder-workspace/Sources/APIKit/DataParser/StringDataParser.swift /host/spi-builder-workspace/Sources/APIKit/Error/RequestError.swift /host/spi-builder-workspace/Sources/APIKit/Error/ResponseError.swift /host/spi-builder-workspace/Sources/APIKit/Error/SessionTaskError.swift /host/spi-builder-workspace/Sources/APIKit/HTTPMethod.swift /host/spi-builder-workspace/Sources/APIKit/Request.swift /host/spi-builder-workspace/Sources/APIKit/Serializations/URLEncodedSerialization.swift /host/spi-builder-workspace/Sources/APIKit/Session.swift /host/spi-builder-workspace/Sources/APIKit/SessionAdapter/SessionAdapter.swift /host/spi-builder-workspace/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift /host/spi-builder-workspace/Sources/APIKit/Unavailable.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name APIKit -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/APIKit_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/Modules/APIKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/Modules/APIKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/APIKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/APIKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/APIKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/APIKit.build/Debug-webassembly-wasm32/APIKit-t.build/Objects-normal/wasm32/Modules/APIKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm