Build Information
Failed to build NetworkSpyKit, reference 1.1.0 (6ece9d), with Swift 6.4 for Wasm on 23 Sep 2026 06:56:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/angu-software/NetworkSpyKit.git
Reference: 1.1.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/angu-software/NetworkSpyKit
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 6ece9d1 Add convenient StubbedResponses containing some standard responses like 200 OK or 404 NOT FOUND as well as responses that contain JSON payload
Cloned https://github.com/angu-software/NetworkSpyKit.git
Revision (git rev-parse @):
6ece9d1c252ce6ea96f75ee6fc1e2713ee42c0d9
SUCCESS checkout https://github.com/angu-software/NetworkSpyKit.git at 1.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/angu-software/NetworkSpyKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.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
Building for debugging...
[Planning 21 / 66]
[18 / 26] NetworkSpyKit
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift:22:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m20 |[0;0m static let shared = SpyRegistry()
[0;36m21 |[0;0m
[0;36m22 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.angu-software.NetworkSpyKit.SpyRegistry")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m23 |[0;0m private var registry: [String: WeakSpy] = [:]
[0;36m24 |[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:40: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m var spyRegistry: SpyRegistry = .shared
[0;36m18 |[0;0m
[0;36m19 |[0;0m private func response(for request: [4;39mURLRequest[0;0m) throws -> (response: HTTPURLResponse, data: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m let spy = try spy(for: request)
[0;36m21 |[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:19:73: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m var spyRegistry: SpyRegistry = .shared
[0;36m18 |[0;0m
[0;36m19 |[0;0m private func response(for request: URLRequest) throws -> (response: [4;39mHTTPURLResponse[0;0m, data: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m20 |[0;0m let spy = try spy(for: request)
[0;36m21 |[0;0m
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:28:35: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m26 |[0;0m }
[0;36m27 |[0;0m
[0;36m28 |[0;0m private func spy(for request: [4;39mURLRequest[0;0m) throws -> NetworkSpy {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m29 |[0;0m guard let spy = spyRegistry.spy(for: request) else {
[0;36m30 |[0;0m throw Error.spyNotFoundForRequest
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:36:52: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m }
[0;36m35 |[0;0m
[0;36m36 |[0;0m private func respond(with response: (response: [4;39mHTTPURLResponse[0;0m, data: Data?)) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m respond(with: response.response)
[0;36m38 |[0;0m
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:49:41: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m47 |[0;0m }
[0;36m48 |[0;0m
[0;36m49 |[0;0m private func respond(with response: [4;39mHTTPURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m50 |[0;0m client?.urlProtocol(self,
[0;36m51 |[0;0m didReceive: response,
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:65:47: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m63 |[0;0m // MARK: - URLProtocol
[0;36m64 |[0;0m
[0;36m65 |[0;0m override class func canInit(with request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m66 |[0;0m true
[0;36m67 |[0;0m }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:70: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m67 |[0;0m }
[0;36m68 |[0;0m
[0;36m69 |[0;0m override class func canonicalRequest(for request: URLRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m70 |[0;0m return request
[0;36m71 |[0;0m }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:69:55: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m67 |[0;0m }
[0;36m68 |[0;0m
[0;36m69 |[0;0m override class func canonicalRequest(for request: [4;39mURLRequest[0;0m) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m70 |[0;0m return request
[0;36m71 |[0;0m }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:73:19: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m71 |[0;0m }
[0;36m72 |[0;0m
[0;36m73 |[0;0m [4;39moverride[0;0m func startLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m74 |[0;0m do {
[0;36m75 |[0;0m respond(with: try response(for: request))
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:83:19: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m81 |[0;0m }
[0;36m82 |[0;0m
[0;36m83 |[0;0m [4;39moverride[0;0m func stopLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m84 |[0;0m // No-op
[0;36m85 |[0;0m }
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:10:37: [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m
[0;36m10 |[0;0m final class InterceptorURLProtocol: [4;39mURLProtocol[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m enum Error: Swift.Error {
Foundation.URLProtocol:2:18: [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLProtocol = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift:89:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m87 |[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m90 |[0;0m
[0;36m91 |[0;0m fileprivate func removedSpyIDHeader() -> Self {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:35: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m typealias Error = InterceptorURLProtocol.Error
[0;36m13 |[0;0m
[0;36m14 |[0;0m func response(for urlRequest: [4;39mURLRequest[0;0m) throws -> (response: HTTPURLResponse, data: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m guard urlRequest.url != nil else {
[0;36m16 |[0;0m throw Error.invalidRequestURLMissing
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:14:68: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m typealias Error = InterceptorURLProtocol.Error
[0;36m13 |[0;0m
[0;36m14 |[0;0m func response(for urlRequest: URLRequest) throws -> (response: [4;39mHTTPURLResponse[0;0m, data: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m guard urlRequest.url != nil else {
[0;36m16 |[0;0m throw Error.invalidRequestURLMissing
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift:26:93: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m24 |[0;0m }
[0;36m25 |[0;0m
[0;36m26 |[0;0m private func makeHTTPURLResponse(requestURL: URL?, stubbedResponse: StubbedResponse) -> [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m guard let requestURL,
[0;36m28 |[0;0m let httpResponse = HTTPURLResponse(url: requestURL,
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:10:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m
[0;36m10 |[0;0m public typealias Request = [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m extension URLRequest {
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:38: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m /// augmented with the required interceptor and identification headers.
[0;36m33 |[0;0m /// Use this to construct a `URLSession` that is intercepted by the spy.
[0;36m34 |[0;0m public let sessionConfiguration: [4;39mURLSessionConfiguration[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// The currently assigned response provider.
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:69:47: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m67 |[0;0m /// - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
[0;36m68 |[0;0m public convenience init(sessionConfiguration: URLSessionConfiguration,
[0;36m69 |[0;0m responseProvider: @escaping ResponseProvider = defaultResponse) {
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m70 |[0;0m self.init(sessionConfiguration: sessionConfiguration,
[0;36m71 |[0;0m responseProvider: responseProvider,
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:68:51: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m66 |[0;0m /// - sessionConfiguration: A template configuration. It will be copied and modified.
[0;36m67 |[0;0m /// - responseProvider: A closure that returns a stubbed response for intercepted requests. Defaults to `.teaPot`.
[0;36m68 |[0;0m public convenience init(sessionConfiguration: [4;39mURLSessionConfiguration[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m69 |[0;0m responseProvider: @escaping ResponseProvider = defaultResponse) {
[0;36m70 |[0;0m self.init(sessionConfiguration: sessionConfiguration,
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:76:28: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m74 |[0;0m
[0;36m75 |[0;0m init(sessionConfiguration: URLSessionConfiguration,
[0;36m76 |[0;0m responseProvider: @escaping ResponseProvider = defaultResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m77 |[0;0m spyRegistry: SpyRegistry) {
[0;36m78 |[0;0m self.sessionConfiguration = Self.copyConfiguration(sessionConfiguration)
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:75:32: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m73 |[0;0m }
[0;36m74 |[0;0m
[0;36m75 |[0;0m init(sessionConfiguration: [4;39mURLSessionConfiguration[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m76 |[0;0m responseProvider: @escaping ResponseProvider = defaultResponse,
[0;36m77 |[0;0m spyRegistry: SpyRegistry) {
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:90:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m88 |[0;0m }
[0;36m89 |[0;0m
[0;36m90 |[0;0m func record(_ request: [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m requestRecorder.record(request)
[0;36m92 |[0;0m }
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:94:60: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m }
[0;36m93 |[0;0m
[0;36m94 |[0;0m private static func copyConfiguration(_ configuration: [4;39mURLSessionConfiguration[0;0m) -> URLSessionConfiguration {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m95 |[0;0m return configuration.copy() as! URLSessionConfiguration
[0;36m96 |[0;0m }
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:94:88: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m92 |[0;0m }
[0;36m93 |[0;0m
[0;36m94 |[0;0m private static func copyConfiguration(_ configuration: URLSessionConfiguration) -> [4;39mURLSessionConfiguration[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m95 |[0;0m return configuration.copy() as! URLSessionConfiguration
[0;36m96 |[0;0m }
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift:34:16: [1;31merror: [1;39mstored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-Sendable type 'AnyObject'[0;0m
[0;36m32 |[0;0m /// augmented with the required interceptor and identification headers.
[0;36m33 |[0;0m /// Use this to construct a `URLSession` that is intercepted by the spy.
[0;36m34 |[0;0m public let sessionConfiguration: URLSessionConfiguration
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'sessionConfiguration' of 'Sendable'-conforming class 'NetworkSpy' has non-Sendable type 'AnyObject'[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// The currently assigned response provider.
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift:12:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m10 |[0;0m public typealias Request = URLRequest
[0;36m11 |[0;0m
[0;36m12 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m13 |[0;0m
[0;36m14 |[0;0m public init(url: URL,
/host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift:10:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m
[0;36m10 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m /// Returns the resolved HTTP body data of the request.
/host/spi-builder-workspace/Sources/NetworkSpyKit/RequestRecorder.swift:12:25: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m10 |[0;0m final class RequestRecorder: @unchecked Sendable {
[0;36m11 |[0;0m
[0;36m12 |[0;0m private let queue = [4;39mDispatchQueue[0;0m(label: "com.angu-software.NetworkSpyKit.RequestRecorder")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m13 |[0;0m private var requests: [Request] = []
[0;36m14 |[0;0m
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:24: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m23 |[0;0m }
[0;36m24 |[0;0m
[0;36m25 |[0;0m private let queue: [4;39mDispatchQueue[0;0m = DispatchQueue(label: "com.angu-software.SafeValueStore.queue")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift:25:40: [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m23 |[0;0m }
[0;36m24 |[0;0m
[0;36m25 |[0;0m private let queue: DispatchQueue = [4;39mDispatchQueue[0;0m(label: "com.angu-software.SafeValueStore.queue")
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'DispatchQueue' in scope[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m private var _value: Value
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:12:27: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m10 |[0;0m extension SpyRegistry {
[0;36m11 |[0;0m
[0;36m12 |[0;0m func spy(for request: [4;39mURLRequest[0;0m) -> NetworkSpy? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m13 |[0;0m guard let sypId = spyId(for: request) else {
[0;36m14 |[0;0m return nil
/host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift:20:37: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m18 |[0;0m }
[0;36m19 |[0;0m
[0;36m20 |[0;0m private func spyId(for request: [4;39mURLRequest[0;0m) -> String? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m21 |[0;0m return request.allHTTPHeaderFields?[NetworkSpy.headerKey]
[0;36m22 |[0;0m }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/NetworkSpyKit/InterceptorURLProtocol.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy+HTTPURLResponse.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpy/NetworkSpy.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/NetworkSpyKit.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Request/Request.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Request/URLRequest+ResolveHTTPBodyStream.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/RequestRecorder.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Response/CommonResponses/StubResponse+JSON.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Response/CommonResponses/StubbedResponse+2xx.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Response/CommonResponses/StubbedResponse+4xx.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Response/CommonResponses/StubbedResponse+5xx.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Response/Response+TeaPot.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/Response/StubbedResponse.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/SafeResponseStore.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/SafeValueStore.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SpyRegistry+URLRequest.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/SpyRegistry/SypRegistry.swift /host/spi-builder-workspace/Sources/NetworkSpyKit/StreamReader.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 6 -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/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name NetworkSpyKit -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/NetworkSpyKit_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/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/Modules/NetworkSpyKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/Modules/NetworkSpyKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/NetworkSpyKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/NetworkSpyKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/NetworkSpyKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/NetworkSpyKit.build/Debug-webassembly-wasm32/NetworkSpyKit-t.build/Objects-normal/wasm32/Modules/NetworkSpyKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm