The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Replay, reference 1.1.2 (90f2d5), with Swift 6.4 for Wasm on 26 Nov 2026 02:31:04 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattt/Replay.git
Reference: 1.1.2
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.1.2      -> FETCH_HEAD
HEAD is now at 90f2d5a Preserve the existing HAR until the first rewrite succeeds (#38)
Cloned https://github.com/mattt/Replay.git
Revision (git rev-parse @):
90f2d5a5db1f3d570ce114cad2cf5d75d4b5d3e4
SUCCESS checkout https://github.com/mattt/Replay.git at 1.1.2
========================================
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-53886769-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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:6e96de89237e7c0ea2deedfd5eb0c8fe8422d29c0e185f62352b98a0ea224104
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/19452] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.98s)
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.13s)
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...
[Planning deferred tasks]
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:140:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |     private let lock = NSLock()
139 |     private var loadTask: Task<Void, Never>?
140 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |     private var isStopped = false
142 |
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:143:54: error: cannot find type 'URLRequest' in scope
141 |     private var isStopped = false
142 |
143 |     public override class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
144 |         // Prevent infinite loops
145 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:154:77: error: cannot find type 'URLRequest' in scope
152 |     }
153 |
154 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
155 |         request
156 |     }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:154:62: error: cannot find type 'URLRequest' in scope
152 |     }
153 |
154 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
155 |         request
156 |     }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:158:26: error: method does not override any method from its superclass
156 |     }
157 |
158 |     public override func startLoading() {
    |                          `- error: method does not override any method from its superclass
159 |         let startTime = Date()
160 |         let request = self.request
/host/spi-builder-workspace/Sources/Replay/Capture.swift:184:38: error: cannot find type 'URLRequest' in scope
182 |     }
183 |
184 |     private func send(_ bodyRequest: URLRequest, startTime: Date) {
    |                                      `- error: cannot find type 'URLRequest' in scope
185 |         // Mark request as handled
186 |         let mutableRequest = (bodyRequest as NSURLRequest).mutableCopy() as! NSMutableURLRequest
/host/spi-builder-workspace/Sources/Replay/Capture.swift:240:26: error: method does not override any method from its superclass
238 |     }
239 |
240 |     public override func stopLoading() {
    |                          `- error: method does not override any method from its superclass
241 |         let (loadTask, dataTask) = lock.withLock {
242 |             isStopped = true
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:40: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | /// `CaptureURLProtocol` forwards responses to the requesting client,
134 | /// and records the request/response pair asynchronously.
135 | public final class CaptureURLProtocol: URLProtocol {
    |                                        `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |     private static let handledKey = "ReplayCaptureHandled"
137 |
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:342:18: error: cannot find type 'URLRequest' in scope
340 |     ///   - duration: The request duration.
341 |     public func recordEntry(
342 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
343 |         response: HTTPURLResponse,
344 |         data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:343:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |     public func recordEntry(
342 |         request: URLRequest,
343 |         response: HTTPURLResponse,
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 |         data: Data,
345 |         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:884:34: error: cannot find type 'URLRequest' in scope
 882 |     /// - Parameter urlRequest: The request to convert.
 883 |     /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
 884 |     public init(from urlRequest: URLRequest) throws {
     |                                  `- error: cannot find type 'URLRequest' in scope
 885 |         guard let url = urlRequest.url else {
 886 |             throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:848:18: error: cannot find type 'URLRequest' in scope
 846 |     /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
 847 |     public init(
 848 |         request: URLRequest,
     |                  `- error: cannot find type 'URLRequest' in scope
 849 |         response: HTTPURLResponse,
 850 |         data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:849:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 847 |     public init(
 848 |         request: URLRequest,
 849 |         response: HTTPURLResponse,
     |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 850 |         data: Data,
 851 |         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:956:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 954 |     ///   - httpResponse: The response to convert.
 955 |     ///   - data: The response body data.
 956 |     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.
 957 |         self.status = httpResponse.statusCode
 958 |         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:1010:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1008 | extension HAR.Entry {
1009 |     /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
1010 |     public func toURLResponse() throws -> (HTTPURLResponse, Data) {
     |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1011 |         guard let url = URL(string: request.url) else {
1012 |             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:59:39: error: cannot find type 'URLRequest' in scope
 57 |     /// Escape hatch for custom matching logic.
 58 |     /// Compares an incoming request against a candidate request (typically from a recorded entry).
 59 |     case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
    |                                       `- error: cannot find type 'URLRequest' in scope
 60 |
 61 |     /// Whether this matcher can read the request body.
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:59:64: error: cannot find type 'URLRequest' in scope
 57 |     /// Escape hatch for custom matching logic.
 58 |     /// Compares an incoming request against a candidate request (typically from a recorded entry).
 59 |     case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
    |                                                                `- error: cannot find type 'URLRequest' in scope
 60 |
 61 |     /// Whether this matcher can read the request body.
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:72:26: error: cannot find type 'URLRequest' in scope
 70 |     }
 71 |
 72 |     func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
    |                          `- error: cannot find type 'URLRequest' in scope
 73 |         switch self {
 74 |         case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:72:51: error: cannot find type 'URLRequest' in scope
 70 |     }
 71 |
 72 |     func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 73 |         switch self {
 74 |         case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:156:36: error: cannot find type 'URLRequest' in scope
154 |     ///
155 |     /// This is used by capture as an opt-in filter.
156 |     public func matches(_ request: URLRequest) -> Bool {
    |                                    `- error: cannot find type 'URLRequest' in scope
157 |         for matcher in self {
158 |             if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:166:41: error: cannot find type 'URLRequest' in scope
164 |
165 |     /// Finds the first entry whose request matches according to all matchers.
166 |     public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
    |                                         `- error: cannot find type 'URLRequest' in scope
167 |         firstMatch(for: request, in: entries, filters: [])
168 |     }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:170:34: error: cannot find type 'URLRequest' in scope
168 |     }
169 |
170 |     func firstMatch(for request: URLRequest, in entries: [HAR.Entry], filters: [Filter]) -> HAR.Entry? {
    |                                  `- error: cannot find type 'URLRequest' in scope
171 |         for entry in entries {
172 |             guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:197:20: error: cannot find type 'URLRequest' in scope
195 |
196 |     private func matches(
197 |         _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
    |                    `- error: cannot find type 'URLRequest' in scope
198 |     ) -> Bool {
199 |         for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:197:45: error: cannot find type 'URLRequest' in scope
195 |
196 |     private func matches(
197 |         _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
    |                                             `- error: cannot find type 'URLRequest' in scope
198 |     ) -> Bool {
199 |         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:195:11: error: cannot find type 'URLRequest' in scope
 193 | }
 194 |
 195 | extension URLRequest {
     |           `- error: cannot find type 'URLRequest' in scope
 196 |     /// Returns a copy whose body is in `httpBody`, read from `httpBodyStream` if needed.
 197 |     ///
/host/spi-builder-workspace/Sources/Replay/Playback.swift:265:44: error: cannot find type 'URLRequest' in scope
 263 | }
 264 |
 265 | private func requestDescription(_ request: URLRequest) -> String {
     |                                            `- error: cannot find type 'URLRequest' in scope
 266 |     let method = request.httpMethod ?? "GET"
 267 |     let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:283:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 281 |     private let lock = NSLock()
 282 |     private var streamTask: Task<Void, Never>?
 283 |     private var urlSessionTask: URLSessionTask?
     |                                 `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 284 |
 285 |     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:285:54: error: cannot find type 'URLRequest' in scope
 283 |     private var urlSessionTask: URLSessionTask?
 284 |
 285 |     public override class func canInit(with request: URLRequest) -> Bool {
     |                                                      `- error: cannot find type 'URLRequest' in scope
 286 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
 287 |             return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:292:77: error: cannot find type 'URLRequest' in scope
 290 |     }
 291 |
 292 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
     |                                                                             `- error: cannot find type 'URLRequest' in scope
 293 |         request
 294 |     }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:292:62: error: cannot find type 'URLRequest' in scope
 290 |     }
 291 |
 292 |     public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
     |                                                              `- error: cannot find type 'URLRequest' in scope
 293 |         request
 294 |     }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:296:26: error: method does not override any method from its superclass
 294 |     }
 295 |
 296 |     public override func startLoading() {
     |                          `- error: method does not override any method from its superclass
 297 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 298 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:498:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 496 |     }
 497 |
 498 |     private func setURLSessionTask(_ task: URLSessionTask) {
     |                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 499 |         lock.lock()
 500 |         urlSessionTask = task
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:504:26: error: method does not override any method from its superclass
 502 |     }
 503 |
 504 |     public override func stopLoading() {
     |                          `- error: method does not override any method from its superclass
 505 |         lock.lock()
 506 |         let urlSessionTask = self.urlSessionTask
/host/spi-builder-workspace/Sources/Replay/Playback.swift:277:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 | /// For network requests (live/passthrough mode), responses are streamed incrementally,
 276 | /// enabling support for Server-Sent Events and other streaming protocols.
 277 | 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.
 278 |     private static let handledKey = "ReplayPlaybackHandled"
 279 |     // `startLoading()` and `stopLoading()` run on the client's thread,
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:520:42: error: cannot find type 'URLSessionDataDelegate' in scope
 518 |
 519 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
 520 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
     |                                          `- error: cannot find type 'URLSessionDataDelegate' in scope
 521 |     /// The response hand-off between URLSession's delegate queue and `waitForResponse()`.
 522 |     /// URLSession can deliver the response, or fail, before the caller starts to wait.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:525:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 523 |     private enum ResponseState {
 524 |         case pending
 525 |         case waiting(CheckedContinuation<HTTPURLResponse, Error>)
     |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 526 |         case ready(Result<HTTPURLResponse, Error>)
 527 |         case delivered
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:526:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 524 |         case pending
 525 |         case waiting(CheckedContinuation<HTTPURLResponse, Error>)
 526 |         case ready(Result<HTTPURLResponse, Error>)
     |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 527 |         case delivered
 528 |     }
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:551:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 549 |     ///
 550 |     /// Call this method at most once.
 551 |     func waitForResponse() async throws -> HTTPURLResponse {
     |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 552 |         try await withCheckedThrowingContinuation { continuation in
 553 |             lock.lock()
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:570:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 568 |
 569 |     /// Settles the response with the first result; later results are ignored.
 570 |     private func settleResponse(_ result: Result<HTTPURLResponse, Error>) {
     |                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 571 |         lock.lock()
 572 |         switch responseState {
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:587:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 585 |     func urlSession(
 586 |         _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
 587 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
     |                                                  `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 588 |     ) {
 589 |         if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:586:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 584 |
 585 |     func urlSession(
 586 |         _ 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.
 587 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
 588 |     ) {
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:586:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 584 |
 585 |     func urlSession(
 586 |         _ 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.
 587 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
 588 |     ) {
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:586:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 584 |
 585 |     func urlSession(
 586 |         _ 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.
 587 |         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
 588 |     ) {
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:595:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 593 |     }
 594 |
 595 |     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.
 596 |         dataContinuation.yield(data)
 597 |     }
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:595:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 593 |     }
 594 |
 595 |     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.
 596 |         dataContinuation.yield(data)
 597 |     }
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:605:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 603 |         _ session: URLSession,
 604 |         didReceive challenge: URLAuthenticationChallenge,
 605 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
     |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 606 |     ) {
 607 |         forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:603:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 601 |     // forwarded, otherwise trust decisions silently fall back to default handling.
 602 |     func urlSession(
 603 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 604 |         didReceive challenge: URLAuthenticationChallenge,
 605 |         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:604:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 602 |     func urlSession(
 603 |         _ session: URLSession,
 604 |         didReceive challenge: URLAuthenticationChallenge,
     |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 605 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 606 |     ) {
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:614:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 612 |         task: URLSessionTask,
 613 |         didReceive challenge: URLAuthenticationChallenge,
 614 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
     |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 615 |     ) {
 616 |         forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:611:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 609 |
 610 |     func urlSession(
 611 |         _ session: URLSession,
     |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 612 |         task: URLSessionTask,
 613 |         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:612:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 610 |     func urlSession(
 611 |         _ session: URLSession,
 612 |         task: URLSessionTask,
     |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 613 |         didReceive challenge: URLAuthenticationChallenge,
 614 |         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:613:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 611 |         _ session: URLSession,
 612 |         task: URLSessionTask,
 613 |         didReceive challenge: URLAuthenticationChallenge,
     |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 614 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 615 |     ) {
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:621:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 619 |     private func forward(
 620 |         _ challenge: URLAuthenticationChallenge,
 621 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
     |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 622 |     ) {
 623 |         guard let urlProtocol, let client = urlProtocol.client else {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:620:22: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 618 |
 619 |     private func forward(
 620 |         _ challenge: URLAuthenticationChallenge,
     |                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 621 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 622 |     ) {
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:642:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 640 |     }
 641 |
 642 |     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.
 643 |         if let error = error {
 644 |             settleResponse(.failure(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:642:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 640 |     }
 641 |
 642 |     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.
 643 |         if let error = error {
 644 |             settleResponse(.failure(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:659:51: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 657 |     private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
 658 |
 659 |     init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
     |                                                   `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 660 |         self.completionHandler = completionHandler
 661 |     }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:655:59: error: cannot find type 'URLAuthenticationChallengeSender' in scope
 653 |
 654 | /// Bridges URLProtocolClient challenge decisions back into URLSession's challenge completion handler.
 655 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
     |                                                           `- error: cannot find type 'URLAuthenticationChallengeSender' in scope
 656 |     private let lock = NSLock()
 657 |     private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:657:49: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 655 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
 656 |     private let lock = NSLock()
 657 |     private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
     |                                                 `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 658 |
 659 |     init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:663:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 661 |     }
 662 |
 663 |     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.
 664 |         complete(.useCredential, credential)
 665 |     }
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:663:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 661 |     }
 662 |
 663 |     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.
 664 |         complete(.useCredential, credential)
 665 |     }
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:667:51: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 665 |     }
 666 |
 667 |     func continueWithoutCredential(for challenge: URLAuthenticationChallenge) {
     |                                                   `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 668 |         // "Continue without a credential" maps to URLSession's default handling,
 669 |         // 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:673:30: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 671 |     }
 672 |
 673 |     func cancel(_ challenge: URLAuthenticationChallenge) {
     |                              `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 674 |         complete(.cancelAuthenticationChallenge, nil)
 675 |     }
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:677:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 675 |     }
 676 |
 677 |     func performDefaultHandling(for challenge: URLAuthenticationChallenge) {
     |                                                `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 678 |         complete(.performDefaultHandling, nil)
 679 |     }
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:681:59: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 679 |     }
 680 |
 681 |     func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge) {
     |                                                           `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 682 |         complete(.rejectProtectionSpace, nil)
 683 |     }
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:685:53: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 683 |     }
 684 |
 685 |     private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
     |                                                     `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 686 |         // A challenge sender may receive more than one callback from a defensive client;
 687 |         // URLSession completion handlers must only be invoked once.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:685:93: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 683 |     }
 684 |
 685 |     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.
 686 |         // A challenge sender may receive more than one callback from a defensive client;
 687 |         // 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:804:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 802 |     public enum RequestDisposition: Sendable {
 803 |         /// Use the recorded entry's response.
 804 |         case recorded(HTTPURLResponse, Data)
     |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 805 |         /// No match found; go to the network (with optional recording).
 806 |         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:804:14: error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
 802 |     public enum RequestDisposition: Sendable {
 803 |         /// Use the recorded entry's response.
 804 |         case recorded(HTTPURLResponse, Data)
     |              `- error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
 805 |         /// No match found; go to the network (with optional recording).
 806 |         case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:818:41: error: cannot find type 'URLRequest' in scope
 816 |     /// - Parameter request: The request to check.
 817 |     /// - Returns: A disposition indicating how to handle the request.
 818 |     public func checkRequest(_ request: URLRequest) throws -> RequestDisposition {
     |                                         `- error: cannot find type 'URLRequest' in scope
 819 |         guard let config = configuration else {
 820 |             throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:869:18: error: cannot find type 'URLRequest' in scope
 867 |     ///   - duration: How long the request took.
 868 |     public func recordResponse(
 869 |         request: URLRequest,
     |                  `- error: cannot find type 'URLRequest' in scope
 870 |         response: HTTPURLResponse,
 871 |         data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:870:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 868 |     public func recordResponse(
 869 |         request: URLRequest,
 870 |         response: HTTPURLResponse,
     |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 871 |         data: Data,
 872 |         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:932:42: error: cannot find type 'URLRequest' in scope
 930 |     ///   responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
 931 |     ///   and handle network requests with `URLSession.bytes(for:)`.
 932 |     public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
     |                                          `- error: cannot find type 'URLRequest' in scope
 933 |         switch try checkRequest(request) {
 934 |         case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:932:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 930 |     ///   responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
 931 |     ///   and handle network requests with `URLSession.bytes(for:)`.
 932 |     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.
 933 |         switch try checkRequest(request) {
 934 |         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:297:31: error: cannot find 'request' in scope
 295 |
 296 |     public override func startLoading() {
 297 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
     |                               `- error: cannot find 'request' in scope
 298 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 299 |         let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:297:42: error: cannot find type 'NSURLRequest' in scope
 295 |
 296 |     public override func startLoading() {
 297 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
     |                                          `- error: cannot find type 'NSURLRequest' in scope
 298 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 299 |         let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:297:74: error: cannot find type 'NSMutableURLRequest' in scope
 295 |
 296 |     public override func startLoading() {
 297 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
     |                                                                          `- error: cannot find type 'NSMutableURLRequest' in scope
 298 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 299 |         let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:298:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 296 |     public override func startLoading() {
 297 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 298 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
     |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 299 |         let markedRequest = mutableRequest as URLRequest
 300 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:299:47: error: cannot find type 'URLRequest' in scope
 297 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 298 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 299 |         let markedRequest = mutableRequest as URLRequest
     |                                               `- error: cannot find type 'URLRequest' in scope
 300 |
 301 |         // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Replay.swift:86:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |     /// This is a convenience for tests and tools that want a session without
 85 |     /// manually configuring `URLSessionConfiguration`.
 86 |     public static var session: URLSession {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |         let config = URLSessionConfiguration.ephemeral
 88 |         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:103:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     /// Configure a `URLSessionConfiguration` with `PlaybackURLProtocol`
102 |     /// inserted at highest priority.
103 |     public static func configure(_ configuration: URLSessionConfiguration) {
    |                                                   `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         var protocols = configuration.protocolClasses ?? []
105 |         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:113:15: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     /// Create a new `URLSessionConfiguration` with Replay pre-configured.
112 |     public static func configuration(
113 |         base: URLSessionConfiguration = .default
    |               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     ) -> URLSessionConfiguration {
115 |         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:114:10: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     public static func configuration(
113 |         base: URLSessionConfiguration = .default
114 |     ) -> URLSessionConfiguration {
    |          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |         let config = base
116 |         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:113:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
111 |     /// Create a new `URLSessionConfiguration` with Replay pre-configured.
112 |     public static func configuration(
113 |         base: URLSessionConfiguration = .default
    |                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
114 |     ) -> URLSessionConfiguration {
115 |         let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:113:42: error: value of type '_' expected to be instance of class or class-constrained type
111 |     /// Create a new `URLSessionConfiguration` with Replay pre-configured.
112 |     public static func configuration(
113 |         base: URLSessionConfiguration = .default
    |                                          `- error: value of type '_' expected to be instance of class or class-constrained type
114 |     ) -> URLSessionConfiguration {
115 |         let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:122:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |     /// Create a `URLSession` with Replay pre-configured.
121 |     public static func makeSession(
122 |         configuration: URLSessionConfiguration = .default
    |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |     ) -> URLSession {
124 |         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:123:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |     public static func makeSession(
122 |         configuration: URLSessionConfiguration = .default
123 |     ) -> URLSession {
    |          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         let config = self.configuration(base: configuration)
125 |
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:122:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
120 |     /// Create a `URLSession` with Replay pre-configured.
121 |     public static func makeSession(
122 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
123 |     ) -> URLSession {
124 |         let config = self.configuration(base: configuration)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:122:51: error: value of type '_' expected to be instance of class or class-constrained type
120 |     /// Create a `URLSession` with Replay pre-configured.
121 |     public static func makeSession(
122 |         configuration: URLSessionConfiguration = .default
    |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
123 |     ) -> URLSession {
124 |         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
error: Build failed
BUILD FAILURE 6.4 wasm