The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPMock, reference 0.9.3 (526655), with Swift 6.4 for Wasm on 17 Sep 2026 23:08:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nearfri/HTTPMock.git
Reference: 0.9.3
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/nearfri/HTTPMock
 * tag               0.9.3      -> FETCH_HEAD
HEAD is now at 5266558 Fix HTTPRequestPredicate.containsQueryItems() bug
Cloned https://github.com/nearfri/HTTPMock.git
Revision (git rev-parse @):
52665587fcd5c483f7b3aa38464b28a6bf08364c
SUCCESS checkout https://github.com/nearfri/HTTPMock.git at 0.9.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/nearfri/HTTPMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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 deferred tasks]
[26 / 35] HTTPMock
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift:5:27: error: cannot find type 'URLRequest' in scope
  3 | public struct HTTPRequestPredicate: CustomStringConvertible {
  4 |     public let description: String
  5 |     public let evaluate: (URLRequest) -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
  6 | }
  7 |
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:6:33: error: cannot find type 'URLRequest' in scope
 4 |     public let id: String = UUID().uuidString
 5 |     public let predicate: HTTPRequestPredicate
 6 |     private let assetProvider: (URLRequest) -> HTTPResponseAsset
   |                                 `- error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:9:43: error: cannot find type 'URLRequest' in scope
 7 |
 8 |     public init(predicate: HTTPRequestPredicate,
 9 |                 assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) {
   |                                           `- error: cannot find type 'URLRequest' in scope
10 |         self.predicate = predicate
11 |         self.assetProvider = assetProvider
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:14:38: error: cannot find type 'URLRequest' in scope
12 |     }
13 |
14 |     public func responds(to request: URLRequest) -> Bool {
   |                                      `- error: cannot find type 'URLRequest' in scope
15 |         return predicate.evaluate(request)
16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift:18:44: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func responseAsset(for request: URLRequest) -> HTTPResponseAsset {
   |                                            `- error: cannot find type 'URLRequest' in scope
19 |         var result = assetProvider(request)
20 |         if result.bodyStreamGenerator != nil && result.headerFields[HTTPHeaderName.eTag] == nil {
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:5:49: error: cannot find type 'URLRequest' in scope
 3 | @discardableResult
 4 | public func stub(when predicate: HTTPRequestPredicate,
 5 |                  then assetProvider: @escaping (URLRequest) -> HTTPResponseAsset) -> StubEntry {
   |                                                 `- error: cannot find type 'URLRequest' in scope
 6 |     return StubRegistry.shared.registerEntry(for: predicate, assetProvider: assetProvider)
 7 | }
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:19:28: error: cannot find type 'DispatchQueue' in scope
17 |
18 |     private var entries: [StubEntry] = []
19 |     private let syncQueue: DispatchQueue = {
   |                            `- error: cannot find type 'DispatchQueue' in scope
20 |         return DispatchQueue(label: "com.nearfri.HTTPMock.StubRegistry", attributes: .concurrent)
21 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:20:16: error: cannot find 'DispatchQueue' in scope
18 |     private var entries: [StubEntry] = []
19 |     private let syncQueue: DispatchQueue = {
20 |         return DispatchQueue(label: "com.nearfri.HTTPMock.StubRegistry", attributes: .concurrent)
   |                `- error: cannot find 'DispatchQueue' in scope
21 |     }()
22 |
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:34:35: error: cannot find type 'URLRequest' in scope
32 |     public func registerEntry(
33 |         for predicate: HTTPRequestPredicate,
34 |         assetProvider: @escaping (URLRequest) -> HTTPResponseAsset
   |                                   `- error: cannot find type 'URLRequest' in scope
35 |     ) -> StubEntry {
36 |         let entry = StubEntry(predicate: predicate, assetProvider: assetProvider)
/host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift:53:36: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     public func entry(for request: URLRequest) -> StubEntry? {
   |                                    `- error: cannot find type 'URLRequest' in scope
54 |         return syncQueue.sync(execute: {
55 |             return entries.last(where: { $0.responds(to: request) })
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:32:48: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     }
 31 |
 32 |     static func registerStub(in configuration: URLSessionConfiguration) {
    |                                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         let classes = configuration.protocolClasses ?? []
 34 |         if !classes.contains(where: { $0 == URLProtocolStub.self }) {
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/HTTPMock/URLProtocolService.swift:39:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     static func unregisterStub(from configuration: URLSessionConfiguration) {
    |                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard var classes = configuration.protocolClasses else { return }
 41 |         classes.removeAll(where: { $0 == URLProtocolStub.self })
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/HTTPMock/URLProtocolService.swift:49:35: error: cannot find type 'DispatchQueue' in scope
 47 |
 48 | private class URLSessionConfigurationSwizzler {
 49 |     private static let syncQueue: DispatchQueue = {
    |                                   `- error: cannot find type 'DispatchQueue' in scope
 50 |         return DispatchQueue(label: "com.nearfri.HTTPMock.URLSessionConfigurationSwizzler")
 51 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:50:16: error: cannot find 'DispatchQueue' in scope
 48 | private class URLSessionConfigurationSwizzler {
 49 |     private static let syncQueue: DispatchQueue = {
 50 |         return DispatchQueue(label: "com.nearfri.HTTPMock.URLSessionConfigurationSwizzler")
    |                `- error: cannot find 'DispatchQueue' in scope
 51 |     }()
 52 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:64:37: error: '#selector' can only be used with the Objective-C runtime
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 65 |     }()
 66 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:63:56: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 61 |     }
 62 |
 63 |     private static let defaultMethodItem: MethodItem = {
    |                                                        `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 64 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.default))
 65 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:68:37: error: '#selector' can only be used with the Objective-C runtime
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
    |                                     `- error: '#selector' can only be used with the Objective-C runtime
 69 |     }()
 70 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:67:58: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 65 |     }()
 66 |
 67 |     private static let ephemeralMethodItem: MethodItem = {
    |                                                          `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
 68 |         return MethodItem(selector: #selector(getter: URLSessionConfiguration.ephemeral))
 69 |     }()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:71:6: error: Objective-C interoperability is disabled
 69 |     }()
 70 |
 71 |     @objc(defaultSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 72 |     private class var `default`: URLSessionConfiguration {
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:72:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |
 71 |     @objc(defaultSessionConfiguration)
 72 |     private class var `default`: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         return defaultMethodItem.makeStubRegisteredConfiguration()
 74 |     }
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/HTTPMock/URLProtocolService.swift:76:6: error: Objective-C interoperability is disabled
 74 |     }
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
    |      `- error: Objective-C interoperability is disabled
 77 |     private class var ephemeral: URLSessionConfiguration {
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:77:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |
 76 |     @objc(ephemeralSessionConfiguration)
 77 |     private class var ephemeral: URLSessionConfiguration {
    |                                  `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         return ephemeralMethodItem.makeStubRegisteredConfiguration()
 79 |     }
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/HTTPMock/URLProtocolService.swift:100:24: error: cannot find type 'Selector' in scope
 98 |         }
 99 |
100 |         init(selector: Selector) {
    |                        `- error: cannot find type 'Selector' in scope
101 |             let originalClass = URLSessionConfiguration.self
102 |             let swizzlerClass = URLSessionConfigurationSwizzler.self
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:85:24: error: cannot find type 'Selector' in scope
 83 |     private class MethodItem: NSObject {
 84 |         private typealias CreationFunction = @convention(c)
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
    |                        `- error: cannot find type 'Selector' in scope
 86 |
 87 |         private let selector: Selector
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:87:31: error: cannot find type 'Selector' in scope
 85 |             (AnyClass, Selector) -> URLSessionConfiguration
 86 |
 87 |         private let selector: Selector
    |                               `- error: cannot find type 'Selector' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:88:37: error: cannot find type 'Method' in scope
 86 |
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
    |                                     `- error: cannot find type 'Method' in scope
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:89:45: error: cannot find type 'IMP' in scope
 87 |         private let selector: Selector
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 90 |         private let swizzlerImplementation: IMP
 91 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:90:45: error: cannot find type 'IMP' in scope
 88 |         private let originalMethod: Method
 89 |         private let originalImplementation: IMP
 90 |         private let swizzlerImplementation: IMP
    |                                             `- error: cannot find type 'IMP' in scope
 91 |
 92 |         var isSwizzled: Bool = false {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:96:17: error: cannot find 'method_setImplementation' in scope
 94 |                 if isSwizzled == oldValue { return }
 95 |                 let implementation = isSwizzled ? swizzlerImplementation : originalImplementation
 96 |                 method_setImplementation(originalMethod, implementation)
    |                 `- error: cannot find 'method_setImplementation' in scope
 97 |             }
 98 |         }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift:116:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |         }
115 |
116 |         func makeStubRegisteredConfiguration() -> URLSessionConfiguration {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |             let result = makeOriginalConfiguration()
118 |             URLProtocolService.registerStub(in: result)
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/HTTPMock/URLProtocolService.swift:122:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         }
121 |
122 |         private func makeOriginalConfiguration() -> URLSessionConfiguration {
    |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |             return originalFunction(URLSessionConfiguration.self, selector)
124 |         }
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/HTTPMock/URLProtocolStub.swift:7:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |     private let schedules: Schedules = Schedules()
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
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/HTTPMock/URLProtocolStub.swift:8:31: error: cannot find type 'NSKeyValueObservation' in scope
  6 |     private var streamReader: StreamReader?
  7 |     private weak var sessionTask: URLSessionTask?
  8 |     private var taskStateKVO: NSKeyValueObservation?
    |                               `- error: cannot find type 'NSKeyValueObservation' in scope
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:10:54: error: cannot find type 'URLRequest' in scope
  8 |     private var taskStateKVO: NSKeyValueObservation?
  9 |
 10 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 11 |         return StubRegistry.shared.entry(for: request) != nil
 12 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:14:51: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
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/HTTPMock/URLProtocolStub.swift:14:32: error: method does not override any method from its superclass
 12 |     }
 13 |
 14 |     public override class func canInit(with task: URLSessionTask) -> Bool {
    |                                `- error: method does not override any method from its superclass
 15 |         return task.currentRequest.map({ canInit(with: $0) }) ?? false
 16 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:77: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:18:62: error: cannot find type 'URLRequest' in scope
 16 |     }
 17 |
 18 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
 19 |         return request
 20 |     }
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:22:35: error: cannot find type 'URLRequest' in scope
 20 |     }
 21 |
 22 |     public override init(request: URLRequest,
    |                                   `- error: cannot find type 'URLRequest' in scope
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:24:34: error: cannot find type 'URLProtocolClient' in scope
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
 24 |                          client: URLProtocolClient?) {
    |                                  `- error: cannot find type 'URLProtocolClient' in scope
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
 26 |             preconditionFailure("StubEntry has been unregistered after `canInit(with:)`.")
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:23:42: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     public override init(request: URLRequest,
 23 |                          cachedResponse: CachedURLResponse?,
    |                                          `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |                          client: URLProtocolClient?) {
 25 |         guard let stubEntry = StubRegistry.shared.entry(for: request) else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:34:37: error: cannot find type 'URLProtocolClient' in scope
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
    |                                     `- error: cannot find type 'URLProtocolClient' in scope
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
 36 |         self.init(request: request, cachedResponse: cachedResponse, client: client)
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:32:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     }
 31 |
 32 |     public convenience init(task: URLSessionTask,
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |                             cachedResponse: CachedURLResponse?,
 34 |                             client: URLProtocolClient?) {
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/HTTPMock/URLProtocolStub.swift:33:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     public convenience init(task: URLSessionTask,
 33 |                             cachedResponse: CachedURLResponse?,
    |                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |                             client: URLProtocolClient?) {
 35 |         guard let request = task.currentRequest else { preconditionFailure() }
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:40:26: error: method does not override any method from its superclass
 38 |     }
 39 |
 40 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
 41 |         let responseAsset = stubEntry.responseAsset(for: request)
 42 |         do {
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:112:45: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     }
111 |
112 |     private func taskDidChangeState(_ task: URLSessionTask) {
    |                                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         switch task.state {
114 |         case .suspended:
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/HTTPMock/URLProtocolStub.swift:123:26: error: method does not override any method from its superclass
121 |     }
122 |
123 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
124 |         schedules.cancelAll()
125 |         streamReader = nil
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:3:31: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  1 | import Foundation
  2 |
  3 | public class URLProtocolStub: URLProtocol {
    |                               `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |     private let stubEntry: StubEntry
  5 |     private let schedules: Schedules = Schedules()
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:193:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | private struct ResponseSource {
193 |     let response: URLResponse
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 |     let bodyStream: InputStream
195 |     let contentRange: ClosedRange<Int>?
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/HTTPMock/URLProtocolStub.swift:198:26: error: cannot find type 'URLRequest' in scope
196 |     private let originalResponseAsset: HTTPResponseAsset
197 |     private let currentResponseAsset: HTTPResponseAsset
198 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:201:19: error: cannot find type 'URLRequest' in scope
199 |     private let url: URL
200 |
201 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
202 |         let builder = try ResponseSourceBuilder(request: request, responseAsset: responseAsset)
203 |         self.originalResponseAsset = responseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:212:23: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 |     }
211 |
212 |     var httpCookies: [HTTPCookie]? {
    |                       `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
213 |         guard request.httpShouldHandleCookies else { return nil }
214 |         let headerFields = currentResponseAsset.headerFields
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:218:26: error: cannot find type 'URLRequest' in scope
216 |     }
217 |
218 |     var redirectRequest: URLRequest? {
    |                          `- error: cannot find type 'URLRequest' in scope
219 |         guard let redirectURL = currentResponseAsset.redirectURL else { return nil }
220 |         var result = request
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:239:26: error: cannot find type 'URLRequest' in scope
237 |
238 | private class ResponseSourceBuilder {
239 |     private let request: URLRequest
    |                          `- error: cannot find type 'URLRequest' in scope
240 |     private let originalResponseAsset: HTTPResponseAsset
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:243:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     private(set) var currentResponseAsset: HTTPResponseAsset
242 |     private(set) var url: URL!
243 |     private(set) var response: HTTPURLResponse!
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |     private(set) var bodyStream: InputStream!
245 |     private var bodyStreamLength: Int = 0
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/HTTPMock/URLProtocolStub.swift:248:19: error: cannot find type 'URLRequest' in scope
246 |     private(set) var contentRange: ClosedRange<Int>?
247 |
248 |     init(request: URLRequest, responseAsset: HTTPResponseAsset) throws {
    |                   `- error: cannot find type 'URLRequest' in scope
249 |         self.request = request
250 |         self.originalResponseAsset = responseAsset
/host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.swift:358:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
356 |     }
357 |
358 |     private func makeResponse() -> HTTPURLResponse? {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
359 |         return HTTPURLResponse(url: url,
360 |                                statusCode: currentResponseAsset.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/HTTPMock/URLProtocolStub.swift:318:15: warning: type '_' is not optional, value can never be nil; this is an error in the Swift 6 language mode
316 |         case let (requestETag?, responseETag?) where requestETag == responseETag:
317 |             fallthrough
318 |         case (nil, _):
    |               `- warning: type '_' is not optional, value can never be nil; this is an error in the Swift 6 language mode
319 |             let rangeStr = "bytes \(range.lowerBound)-\(range.upperBound)/\(bodyStreamLength)"
320 |             contentRange = range
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/HTTPMock/HTTPHeaderFields.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPHeaderName.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPMediaType.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPMethod.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPRequestPredicate.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPResponse.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPResponseAsset.swift /host/spi-builder-workspace/Sources/HTTPMock/HTTPResponseAssetBuilder.swift /host/spi-builder-workspace/Sources/HTTPMock/InputStreamGenerator.swift /host/spi-builder-workspace/Sources/HTTPMock/StubEntry.swift /host/spi-builder-workspace/Sources/HTTPMock/StubRegistry.swift /host/spi-builder-workspace/Sources/HTTPMock/URLProtocolService.swift /host/spi-builder-workspace/Sources/HTTPMock/URLProtocolStub.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/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HTTPMock -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/HTTPMock_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/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/Modules/HTTPMock.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/Modules/HTTPMock.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/HTTPMock-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/HTTPMock-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/HTTPMock-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/HTTPMock.build/Debug-webassembly-wasm32/HTTPMock-t.build/Objects-normal/wasm32/Modules/HTTPMock.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm