The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Replay, reference 1.0.0 (421787), with Swift 6.4 for Wasm on 13 Oct 2026 11:57:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattt/Replay.git
Reference: 1.0.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/mattt/Replay
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 4217873 Bump version to 1.0.0
Cloned https://github.com/mattt/Replay.git
Revision (git rev-parse @):
4217873e0a3cdbdeaf1d998f47eb6ed586dcb951
SUCCESS checkout https://github.com/mattt/Replay.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/mattt/Replay.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d8610b27563fbed4643ddaec8e9397319e3b3e1372fc54686db2dacb952c1b8f
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-argument-parser.git
[1/19112] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (1.36s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (1.53s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
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/ReplayTests/Replays/source_relative.har
Building for debugging...
[Pre-planning 1 / 95]
[15 / 30] Replay
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:28: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     public static func session(
 31 |         configuration: CaptureConfiguration,
 32 |         baseConfiguration: URLSessionConfiguration = .default
    |                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ) async -> URLSession {
 34 |         let config = baseConfiguration
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/Replay/Capture.swift:33:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         configuration: CaptureConfiguration,
 32 |         baseConfiguration: URLSessionConfiguration = .default
 33 |     ) async -> URLSession {
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         let config = baseConfiguration
 35 |         var protocols = config.protocolClasses ?? []
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/Replay/Capture.swift:32:55: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 30 |     public static func session(
 31 |         configuration: CaptureConfiguration,
 32 |         baseConfiguration: URLSessionConfiguration = .default
    |                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 33 |     ) async -> URLSession {
 34 |         let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:55: error: value of type '_' expected to be instance of class or class-constrained type
 30 |     public static func session(
 31 |         configuration: CaptureConfiguration,
 32 |         baseConfiguration: URLSessionConfiguration = .default
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 33 |     ) async -> URLSession {
 34 |         let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Capture.swift:122:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |
121 |     private var startTime: Date?
122 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 |     public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:124:54: error: cannot find type 'URLRequest' in scope
122 |     private var dataTask: URLSessionDataTask?
123 |
124 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
125 |         // Prevent infinite loops
126 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:77: error: cannot find type 'URLRequest' in scope
133 |     }
134 |
135 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
136 |         request
137 |     }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:62: error: cannot find type 'URLRequest' in scope
133 |     }
134 |
135 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
136 |         request
137 |     }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:139:26: error: method does not override any method from its superclass
137 |     }
138 |
139 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
140 |         startTime = Date()
141 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:192:26: error: method does not override any method from its superclass
190 |     }
191 |
192 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
193 |         dataTask?.cancel()
194 |     }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:118:40: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | /// `CaptureURLProtocol` forwards responses to the requesting client,
117 | /// and records the request/response pair asynchronously.
118 | public final class CaptureURLProtocol: URLProtocol {
    |                                        `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |     private static let handledKey = "ReplayCaptureHandled"
120 |
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/Replay/Capture.swift:290:18: error: cannot find type 'URLRequest' in scope
288 |     ///   - duration: The request duration.
289 |     public func recordEntry(
290 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
291 |         response: HTTPURLResponse,
292 |         data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:291:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |     public func recordEntry(
290 |         request: URLRequest,
291 |         response: HTTPURLResponse,
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 |         data: Data,
293 |         startTime: Date,
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/Replay/HAR.swift:880:34: error: cannot find type 'URLRequest' in scope
 878 |     /// - Parameter urlRequest: The request to convert.
 879 |     /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
 880 |     public init(from urlRequest: URLRequest) throws {
     |                                  `- error: cannot find type 'URLRequest' in scope
 881 |         guard let url = urlRequest.url else {
 882 |             throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:844:18: error: cannot find type 'URLRequest' in scope
 842 |     /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
 843 |     public init(
 844 |         request: URLRequest,
     |                  `- error: cannot find type 'URLRequest' in scope
 845 |         response: HTTPURLResponse,
 846 |         data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:845:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 843 |     public init(
 844 |         request: URLRequest,
 845 |         response: HTTPURLResponse,
     |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 846 |         data: Data,
 847 |         startTime: Date,
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/Replay/HAR.swift:952:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 950 |     ///   - httpResponse: The response to convert.
 951 |     ///   - data: The response body data.
 952 |     public init(from httpResponse: HTTPURLResponse, data: Data) throws {
     |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 953 |         self.status = httpResponse.statusCode
 954 |         self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.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/Replay/HAR.swift:1006:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1004 | extension HAR.Entry {
1005 |     /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
1006 |     public func toURLResponse() throws -> (HTTPURLResponse, Data) {
     |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1007 |         guard let url = URL(string: request.url) else {
1008 |             throw ReplayError.invalidURL(request.url)
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/Replay/Matcher.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     /// Escape hatch for custom matching logic.
 54 |     /// Compares an incoming request against a candidate request (typically from a recorded entry).
 55 |     case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |     func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:64: error: cannot find type 'URLRequest' in scope
 53 |     /// Escape hatch for custom matching logic.
 54 |     /// Compares an incoming request against a candidate request (typically from a recorded entry).
 55 |     case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
    |                                                                `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |     func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:26: error: cannot find type 'URLRequest' in scope
 55 |     case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
 56 |
 57 |     func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
    |                          `- error: cannot find type 'URLRequest' in scope
 58 |         switch self {
 59 |         case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:51: error: cannot find type 'URLRequest' in scope
 55 |     case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
 56 |
 57 |     func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 58 |         switch self {
 59 |         case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:141:36: error: cannot find type 'URLRequest' in scope
139 |     ///
140 |     /// This is used by capture as an opt-in filter.
141 |     public func matches(_ request: URLRequest) -> Bool {
    |                                    `- error: cannot find type 'URLRequest' in scope
142 |         for matcher in self {
143 |             if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:151:41: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Finds the first entry whose request matches according to all matchers.
151 |     public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
    |                                         `- error: cannot find type 'URLRequest' in scope
152 |         firstMatch(for: request, in: entries, filters: [])
153 |     }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:155:34: error: cannot find type 'URLRequest' in scope
153 |     }
154 |
155 |     func firstMatch(for request: URLRequest, in entries: [HAR.Entry], filters: [Filter]) -> HAR.Entry? {
    |                                  `- error: cannot find type 'URLRequest' in scope
156 |         for entry in entries {
157 |             guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:20: error: cannot find type 'URLRequest' in scope
180 |
181 |     private func matches(
182 |         _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
    |                    `- error: cannot find type 'URLRequest' in scope
183 |     ) -> Bool {
184 |         for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:45: error: cannot find type 'URLRequest' in scope
180 |
181 |     private func matches(
182 |         _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
    |                                             `- error: cannot find type 'URLRequest' in scope
183 |     ) -> Bool {
184 |         for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:28: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     public static func session(
 16 |         configuration: PlaybackConfiguration,
 17 |         baseConfiguration: URLSessionConfiguration = .ephemeral
    |                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     ) async throws -> URLSession {
 19 |         let config = baseConfiguration
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/Replay/Playback.swift:18:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         configuration: PlaybackConfiguration,
 17 |         baseConfiguration: URLSessionConfiguration = .ephemeral
 18 |     ) async throws -> URLSession {
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         let config = baseConfiguration
 20 |         var protocols = config.protocolClasses ?? []
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/Replay/Playback.swift:17:55: error: value of type '_' expected to be instance of class or class-constrained type
 15 |     public static func session(
 16 |         configuration: PlaybackConfiguration,
 17 |         baseConfiguration: URLSessionConfiguration = .ephemeral
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 18 |     ) async throws -> URLSession {
 19 |         let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:55: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 15 |     public static func session(
 16 |         configuration: PlaybackConfiguration,
 17 |         baseConfiguration: URLSessionConfiguration = .ephemeral
    |                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 18 |     ) async throws -> URLSession {
 19 |         let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Playback.swift:175:44: error: cannot find type 'URLRequest' in scope
173 | }
174 |
175 | private func requestDescription(_ request: URLRequest) -> String {
    |                                            `- error: cannot find type 'URLRequest' in scope
176 |     let method = request.httpMethod ?? "GET"
177 |     let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:190:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     private static let handledKey = "ReplayPlaybackHandled"
189 |     private var streamTask: Task<Void, Never>?
190 |     private var urlSessionTask: URLSessionTask?
    |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 |     public override class func canInit(with request: URLRequest) -> Bool {
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/Replay/Playback.swift:192:54: error: cannot find type 'URLRequest' in scope
190 |     private var urlSessionTask: URLSessionTask?
191 |
192 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
193 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
194 |             return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:77: error: cannot find type 'URLRequest' in scope
197 |     }
198 |
199 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
200 |         request
201 |     }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:62: error: cannot find type 'URLRequest' in scope
197 |     }
198 |
199 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
200 |         request
201 |     }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:203:26: error: method does not override any method from its superclass
201 |     }
202 |
203 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
204 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:389:26: error: method does not override any method from its superclass
387 |     }
388 |
389 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
390 |         urlSessionTask?.cancel()
391 |         urlSessionTask = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:187:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 | /// For network requests (live/passthrough mode), responses are streamed incrementally,
186 | /// enabling support for Server-Sent Events and other streaming protocols.
187 | public final class PlaybackURLProtocol: URLProtocol, @unchecked Sendable {
    |                                         `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     private static let handledKey = "ReplayPlaybackHandled"
189 |     private var streamTask: Task<Void, Never>?
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/Replay/Playback.swift:400:42: error: cannot find type 'URLSessionDataDelegate' in scope
398 |
399 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
400 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                          `- error: cannot find type 'URLSessionDataDelegate' in scope
401 |     private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
402 |     private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:401:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
399 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
400 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
401 |     private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
    |                                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
402 |     private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
403 |     // Held weakly because URLProtocol owns the streaming task that owns this delegate.
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/Replay/Playback.swift:416:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 |     private var _dataStream: AsyncThrowingStream<Data, Error>?
415 |
416 |     func waitForResponse() async throws -> HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 |         try await withCheckedThrowingContinuation { continuation in
418 |             self.responseContinuation = continuation
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/Replay/Playback.swift:424:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
422 |     func urlSession(
423 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
424 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                  `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
425 |     ) {
426 |         if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 |     func urlSession(
423 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 |     ) {
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/Replay/Playback.swift:423:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 |     func urlSession(
423 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 |     func urlSession(
423 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
    |                                                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 |     ) {
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/Replay/Playback.swift:433:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
431 |     }
432 |
433 |     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.
434 |         dataContinuation?.yield(data)
435 |     }
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/Replay/Playback.swift:433:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
431 |     }
432 |
433 |     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.
434 |         dataContinuation?.yield(data)
435 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:443:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
441 |         _ session: URLSession,
442 |         didReceive challenge: URLAuthenticationChallenge,
443 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
444 |     ) {
445 |         forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:441:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
439 |     // forwarded, otherwise trust decisions silently fall back to default handling.
440 |     func urlSession(
441 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
442 |         didReceive challenge: URLAuthenticationChallenge,
443 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
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/Replay/Playback.swift:442:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     func urlSession(
441 |         _ session: URLSession,
442 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
444 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:452:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
450 |         task: URLSessionTask,
451 |         didReceive challenge: URLAuthenticationChallenge,
452 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
453 |     ) {
454 |         forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:449:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
447 |
448 |     func urlSession(
449 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
450 |         task: URLSessionTask,
451 |         didReceive challenge: URLAuthenticationChallenge,
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/Replay/Playback.swift:450:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
448 |     func urlSession(
449 |         _ session: URLSession,
450 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
451 |         didReceive challenge: URLAuthenticationChallenge,
452 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
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/Replay/Playback.swift:451:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
449 |         _ session: URLSession,
450 |         task: URLSessionTask,
451 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
452 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
453 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:459:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
457 |     private func forward(
458 |         _ challenge: URLAuthenticationChallenge,
459 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
460 |     ) {
461 |         guard let urlProtocol, let client = urlProtocol.client else {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:458:22: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
456 |
457 |     private func forward(
458 |         _ challenge: URLAuthenticationChallenge,
    |                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
459 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
460 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
478 |     }
479 |
480 |     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.
481 |         if let error = error {
482 |             responseContinuation?.resume(throwing: error)
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/Replay/Playback.swift:480:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
478 |     }
479 |
480 |     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.
481 |         if let error = error {
482 |             responseContinuation?.resume(throwing: error)
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/Replay/Playback.swift:496:51: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
494 |     private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
495 |
496 |     init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
    |                                                   `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
497 |         self.completionHandler = completionHandler
498 |     }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:492:59: error: cannot find type 'URLAuthenticationChallengeSender' in scope
490 |
491 | /// Bridges URLProtocolClient challenge decisions back into URLSession's challenge completion handler.
492 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
    |                                                           `- error: cannot find type 'URLAuthenticationChallengeSender' in scope
493 |     private let lock = NSLock()
494 |     private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:494:49: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
492 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
493 |     private let lock = NSLock()
494 |     private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
    |                                                 `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
495 |
496 |     init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
498 |     }
499 |
500 |     func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
    |                            `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 |         complete(.useCredential, credential)
502 |     }
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
498 |     }
499 |
500 |     func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
    |                                                          `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 |         complete(.useCredential, credential)
502 |     }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:504:51: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
502 |     }
503 |
504 |     func continueWithoutCredential(for challenge: URLAuthenticationChallenge) {
    |                                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
505 |         // "Continue without a credential" maps to URLSession's default handling,
506 |         // not to `.useCredential` with a nil credential.
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:510:30: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
508 |     }
509 |
510 |     func cancel(_ challenge: URLAuthenticationChallenge) {
    |                              `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
511 |         complete(.cancelAuthenticationChallenge, nil)
512 |     }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:514:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 |     }
513 |
514 |     func performDefaultHandling(for challenge: URLAuthenticationChallenge) {
    |                                                `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 |         complete(.performDefaultHandling, nil)
516 |     }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:518:59: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 |     }
517 |
518 |     func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge) {
    |                                                           `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 |         complete(.rejectProtectionSpace, nil)
520 |     }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:53: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
520 |     }
521 |
522 |     private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
    |                                                     `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
523 |         // A challenge sender may receive more than one callback from a defensive client;
524 |         // URLSession completion handlers must only be invoked once.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:93: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 |     }
521 |
522 |     private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
    |                                                                                             `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 |         // A challenge sender may receive more than one callback from a defensive client;
524 |         // URLSession completion handlers must only be invoked once.
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
  |                  `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
624 |     public enum RequestDisposition: Sendable {
625 |         /// Use the recorded entry's response.
626 |         case recorded(HTTPURLResponse, Data)
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
627 |         /// No match found; go to the network (with optional recording).
628 |         case network(shouldRecord: Bool)
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/Replay/Playback.swift:626:14: error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
624 |     public enum RequestDisposition: Sendable {
625 |         /// Use the recorded entry's response.
626 |         case recorded(HTTPURLResponse, Data)
    |              `- error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
627 |         /// No match found; go to the network (with optional recording).
628 |         case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:640:41: error: cannot find type 'URLRequest' in scope
638 |     /// - Parameter request: The request to check.
639 |     /// - Returns: A disposition indicating how to handle the request.
640 |     public func checkRequest(_ request: URLRequest) throws -> RequestDisposition {
    |                                         `- error: cannot find type 'URLRequest' in scope
641 |         guard let config = configuration else {
642 |             throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:691:18: error: cannot find type 'URLRequest' in scope
689 |     ///   - duration: How long the request took.
690 |     public func recordResponse(
691 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
692 |         response: HTTPURLResponse,
693 |         data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:692:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
690 |     public func recordResponse(
691 |         request: URLRequest,
692 |         response: HTTPURLResponse,
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
693 |         data: Data,
694 |         duration: TimeInterval,
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/Replay/Playback.swift:753:42: error: cannot find type 'URLRequest' in scope
751 |     ///   responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
752 |     ///   and handle network requests with `URLSession.bytes(for:)`.
753 |     public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
    |                                          `- error: cannot find type 'URLRequest' in scope
754 |         switch try checkRequest(request) {
755 |         case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
751 |     ///   responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
752 |     ///   and handle network requests with `URLSession.bytes(for:)`.
753 |     public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
    |                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
754 |         switch try checkRequest(request) {
755 |         case .recorded(let response, let data):
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/Replay/Playback.swift:204:31: error: cannot find 'request' in scope
202 |
203 |     public override func startLoading() {
204 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                               `- error: cannot find 'request' in scope
205 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 |         let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:42: error: cannot find type 'NSURLRequest' in scope
202 |
203 |     public override func startLoading() {
204 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                                          `- error: cannot find type 'NSURLRequest' in scope
205 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 |         let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:74: error: cannot find type 'NSMutableURLRequest' in scope
202 |
203 |     public override func startLoading() {
204 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                                                                          `- error: cannot find type 'NSMutableURLRequest' in scope
205 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 |         let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:205:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
203 |     public override func startLoading() {
204 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
206 |         let markedRequest = mutableRequest as URLRequest
207 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:206:47: error: cannot find type 'URLRequest' in scope
204 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 |         let markedRequest = mutableRequest as URLRequest
    |                                               `- error: cannot find type 'URLRequest' in scope
207 |
208 |         // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Replay.swift:79:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     /// This is a convenience for tests and tools that want a session without
 78 |     /// manually configuring `URLSessionConfiguration`.
 79 |     public static var session: URLSession {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         let config = URLSessionConfiguration.ephemeral
 81 |         configure(config)
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/Replay/Replay.swift:96:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     /// Configure a `URLSessionConfiguration` with `PlaybackURLProtocol`
 95 |     /// inserted at highest priority.
 96 |     public static func configure(_ configuration: URLSessionConfiguration) {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         var protocols = configuration.protocolClasses ?? []
 98 |         if !protocols.contains(where: { $0 == PlaybackURLProtocol.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/Replay/Replay.swift:106:15: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 |     public static func configuration(
106 |         base: URLSessionConfiguration = .default
    |               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |     ) -> URLSessionConfiguration {
108 |         let config = base
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/Replay/Replay.swift:107:10: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |     public static func configuration(
106 |         base: URLSessionConfiguration = .default
107 |     ) -> URLSessionConfiguration {
    |          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |         let config = base
109 |         configure(config)
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/Replay/Replay.swift:106:42: error: value of type '_' expected to be instance of class or class-constrained type
104 |     /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 |     public static func configuration(
106 |         base: URLSessionConfiguration = .default
    |                                          `- error: value of type '_' expected to be instance of class or class-constrained type
107 |     ) -> URLSessionConfiguration {
108 |         let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
104 |     /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 |     public static func configuration(
106 |         base: URLSessionConfiguration = .default
    |                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
107 |     ) -> URLSessionConfiguration {
108 |         let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     /// Create a `URLSession` with Replay pre-configured.
114 |     public static func makeSession(
115 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |     ) -> URLSession {
117 |         let config = self.configuration(base: configuration)
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/Replay/Replay.swift:116:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     public static func makeSession(
115 |         configuration: URLSessionConfiguration = .default
116 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |         let config = self.configuration(base: configuration)
118 |
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/Replay/Replay.swift:115:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
113 |     /// Create a `URLSession` with Replay pre-configured.
114 |     public static func makeSession(
115 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |     ) -> URLSession {
117 |         let config = self.configuration(base: configuration)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: error: value of type '_' expected to be instance of class or class-constrained type
113 |     /// Create a `URLSession` with Replay pre-configured.
114 |     public static func makeSession(
115 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
116 |     ) -> URLSession {
117 |         let config = self.configuration(base: configuration)
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Replay/Capture.swift /host/spi-builder-workspace/Sources/Replay/Error.swift /host/spi-builder-workspace/Sources/Replay/Filter.swift /host/spi-builder-workspace/Sources/Replay/HAR.swift /host/spi-builder-workspace/Sources/Replay/Matcher.swift /host/spi-builder-workspace/Sources/Replay/Playback.swift /host/spi-builder-workspace/Sources/Replay/Replay+HTTPClient.swift /host/spi-builder-workspace/Sources/Replay/Replay.swift /host/spi-builder-workspace/Sources/Replay/Stub.swift /host/spi-builder-workspace/Sources/Replay/Traits.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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/Replay.build/Debug-webassembly-wasm32/Replay-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Replay -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Replay_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/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Modules/Replay.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Modules/Replay.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Replay-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Replay-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Replay-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Replay.build/Debug-webassembly-wasm32/Replay-t.build/Objects-normal/wasm32/Modules/Replay.swiftmodule
[32 / 40] Replay
error: Build failed
BUILD FAILURE 6.4 wasm