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>&1Build 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: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m30 |[0;0m public static func session(
[0;36m31 |[0;0m configuration: CaptureConfiguration,
[0;36m32 |[0;0m baseConfiguration: [4;39mURLSessionConfiguration[0;0m = .default
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m33 |[0;0m ) async -> URLSession {
[0;36m34 |[0;0m let config = baseConfiguration
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Capture.swift:33:16: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m configuration: CaptureConfiguration,
[0;36m32 |[0;0m baseConfiguration: URLSessionConfiguration = .default
[0;36m33 |[0;0m ) async -> [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m let config = baseConfiguration
[0;36m35 |[0;0m var protocols = config.protocolClasses ?? []
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:55: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m30 |[0;0m public static func session(
[0;36m31 |[0;0m configuration: CaptureConfiguration,
[0;36m32 |[0;0m baseConfiguration: URLSessionConfiguration = [4;39m.default[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m33 |[0;0m ) async -> URLSession {
[0;36m34 |[0;0m let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:55: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m30 |[0;0m public static func session(
[0;36m31 |[0;0m configuration: CaptureConfiguration,
[0;36m32 |[0;0m baseConfiguration: URLSessionConfiguration = .default
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m33 |[0;0m ) async -> URLSession {
[0;36m34 |[0;0m let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Capture.swift:122:27: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m120 |[0;0m
[0;36m121 |[0;0m private var startTime: Date?
[0;36m122 |[0;0m private var dataTask: [4;39mURLSessionDataTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m123 |[0;0m
[0;36m124 |[0;0m public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Capture.swift:124:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m122 |[0;0m private var dataTask: URLSessionDataTask?
[0;36m123 |[0;0m
[0;36m124 |[0;0m public override class func canInit(with request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m125 |[0;0m // Prevent infinite loops
[0;36m126 |[0;0m guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:77: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m133 |[0;0m }
[0;36m134 |[0;0m
[0;36m135 |[0;0m public override class func canonicalRequest(for request: URLRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m136 |[0;0m request
[0;36m137 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:62: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m133 |[0;0m }
[0;36m134 |[0;0m
[0;36m135 |[0;0m public override class func canonicalRequest(for request: [4;39mURLRequest[0;0m) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m136 |[0;0m request
[0;36m137 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:139:26: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m137 |[0;0m }
[0;36m138 |[0;0m
[0;36m139 |[0;0m public [4;39moverride[0;0m func startLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m140 |[0;0m startTime = Date()
[0;36m141 |[0;0m
/host/spi-builder-workspace/Sources/Replay/Capture.swift:192:26: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m190 |[0;0m }
[0;36m191 |[0;0m
[0;36m192 |[0;0m public [4;39moverride[0;0m func stopLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m193 |[0;0m dataTask?.cancel()
[0;36m194 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:118:40: [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m116 |[0;0m /// `CaptureURLProtocol` forwards responses to the requesting client,
[0;36m117 |[0;0m /// and records the request/response pair asynchronously.
[0;36m118 |[0;0m public final class CaptureURLProtocol: [4;39mURLProtocol[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m119 |[0;0m private static let handledKey = "ReplayCaptureHandled"
[0;36m120 |[0;0m
Foundation.URLProtocol:2:18: [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLProtocol = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Capture.swift:290:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m288 |[0;0m /// - duration: The request duration.
[0;36m289 |[0;0m public func recordEntry(
[0;36m290 |[0;0m request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m291 |[0;0m response: HTTPURLResponse,
[0;36m292 |[0;0m data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:291:19: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m289 |[0;0m public func recordEntry(
[0;36m290 |[0;0m request: URLRequest,
[0;36m291 |[0;0m response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m292 |[0;0m data: Data,
[0;36m293 |[0;0m startTime: Date,
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/HAR.swift:880:34: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m878 |[0;0m /// - Parameter urlRequest: The request to convert.
[0;36m879 |[0;0m /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
[0;36m880 |[0;0m public init(from urlRequest: [4;39mURLRequest[0;0m) throws {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m881 |[0;0m guard let url = urlRequest.url else {
[0;36m882 |[0;0m throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:844:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m842 |[0;0m /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
[0;36m843 |[0;0m public init(
[0;36m844 |[0;0m request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m845 |[0;0m response: HTTPURLResponse,
[0;36m846 |[0;0m data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:845:19: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m843 |[0;0m public init(
[0;36m844 |[0;0m request: URLRequest,
[0;36m845 |[0;0m response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m846 |[0;0m data: Data,
[0;36m847 |[0;0m startTime: Date,
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/HAR.swift:952:36: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m950 |[0;0m /// - httpResponse: The response to convert.
[0;36m951 |[0;0m /// - data: The response body data.
[0;36m952 |[0;0m public init(from httpResponse: [4;39mHTTPURLResponse[0;0m, data: Data) throws {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m953 |[0;0m self.status = httpResponse.statusCode
[0;36m954 |[0;0m self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/HAR.swift:1006:44: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1004 |[0;0m extension HAR.Entry {
[0;36m1005 |[0;0m /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
[0;36m1006 |[0;0m public func toURLResponse() throws -> ([4;39mHTTPURLResponse[0;0m, Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m1007 |[0;0m guard let url = URL(string: request.url) else {
[0;36m1008 |[0;0m throw ReplayError.invalidURL(request.url)
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m /// Escape hatch for custom matching logic.
[0;36m54 |[0;0m /// Compares an incoming request against a candidate request (typically from a recorded entry).
[0;36m55 |[0;0m case custom(@Sendable (_ request: [4;39mURLRequest[0;0m, _ candidate: URLRequest) -> Bool)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:64: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m /// Escape hatch for custom matching logic.
[0;36m54 |[0;0m /// Compares an incoming request against a candidate request (typically from a recorded entry).
[0;36m55 |[0;0m case custom(@Sendable (_ request: URLRequest, _ candidate: [4;39mURLRequest[0;0m) -> Bool)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m55 |[0;0m case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
[0;36m56 |[0;0m
[0;36m57 |[0;0m func test(_ request: [4;39mURLRequest[0;0m, _ candidate: URLRequest) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m58 |[0;0m switch self {
[0;36m59 |[0;0m case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:51: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m55 |[0;0m case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
[0;36m56 |[0;0m
[0;36m57 |[0;0m func test(_ request: URLRequest, _ candidate: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m58 |[0;0m switch self {
[0;36m59 |[0;0m case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:141:36: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m139 |[0;0m ///
[0;36m140 |[0;0m /// This is used by capture as an opt-in filter.
[0;36m141 |[0;0m public func matches(_ request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m142 |[0;0m for matcher in self {
[0;36m143 |[0;0m if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:151:41: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m149 |[0;0m
[0;36m150 |[0;0m /// Finds the first entry whose request matches according to all matchers.
[0;36m151 |[0;0m public func firstMatch(for request: [4;39mURLRequest[0;0m, in entries: [HAR.Entry]) -> HAR.Entry? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m152 |[0;0m firstMatch(for: request, in: entries, filters: [])
[0;36m153 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:155:34: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m153 |[0;0m }
[0;36m154 |[0;0m
[0;36m155 |[0;0m func firstMatch(for request: [4;39mURLRequest[0;0m, in entries: [HAR.Entry], filters: [Filter]) -> HAR.Entry? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m156 |[0;0m for entry in entries {
[0;36m157 |[0;0m guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m180 |[0;0m
[0;36m181 |[0;0m private func matches(
[0;36m182 |[0;0m _ request: [4;39mURLRequest[0;0m, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m183 |[0;0m ) -> Bool {
[0;36m184 |[0;0m for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:45: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m180 |[0;0m
[0;36m181 |[0;0m private func matches(
[0;36m182 |[0;0m _ request: URLRequest, _ candidate: [4;39mURLRequest[0;0m, candidateURL: String, filters: [Filter]
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m183 |[0;0m ) -> Bool {
[0;36m184 |[0;0m for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:28: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m public static func session(
[0;36m16 |[0;0m configuration: PlaybackConfiguration,
[0;36m17 |[0;0m baseConfiguration: [4;39mURLSessionConfiguration[0;0m = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m ) async throws -> URLSession {
[0;36m19 |[0;0m let config = baseConfiguration
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:18:23: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m16 |[0;0m configuration: PlaybackConfiguration,
[0;36m17 |[0;0m baseConfiguration: URLSessionConfiguration = .ephemeral
[0;36m18 |[0;0m ) async throws -> [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m19 |[0;0m let config = baseConfiguration
[0;36m20 |[0;0m var protocols = config.protocolClasses ?? []
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:55: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m15 |[0;0m public static func session(
[0;36m16 |[0;0m configuration: PlaybackConfiguration,
[0;36m17 |[0;0m baseConfiguration: URLSessionConfiguration = .ephemeral
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m ) async throws -> URLSession {
[0;36m19 |[0;0m let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:55: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m15 |[0;0m public static func session(
[0;36m16 |[0;0m configuration: PlaybackConfiguration,
[0;36m17 |[0;0m baseConfiguration: URLSessionConfiguration = [4;39m.ephemeral[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'[0;0m
[0;36m18 |[0;0m ) async throws -> URLSession {
[0;36m19 |[0;0m let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Playback.swift:175:44: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m173 |[0;0m }
[0;36m174 |[0;0m
[0;36m175 |[0;0m private func requestDescription(_ request: [4;39mURLRequest[0;0m) -> String {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m176 |[0;0m let method = request.httpMethod ?? "GET"
[0;36m177 |[0;0m let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:190:33: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m188 |[0;0m private static let handledKey = "ReplayPlaybackHandled"
[0;36m189 |[0;0m private var streamTask: Task<Void, Never>?
[0;36m190 |[0;0m private var urlSessionTask: [4;39mURLSessionTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m191 |[0;0m
[0;36m192 |[0;0m public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:192:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m190 |[0;0m private var urlSessionTask: URLSessionTask?
[0;36m191 |[0;0m
[0;36m192 |[0;0m public override class func canInit(with request: [4;39mURLRequest[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m193 |[0;0m guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
[0;36m194 |[0;0m return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:77: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m197 |[0;0m }
[0;36m198 |[0;0m
[0;36m199 |[0;0m public override class func canonicalRequest(for request: URLRequest) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m200 |[0;0m request
[0;36m201 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:62: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m197 |[0;0m }
[0;36m198 |[0;0m
[0;36m199 |[0;0m public override class func canonicalRequest(for request: [4;39mURLRequest[0;0m) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m200 |[0;0m request
[0;36m201 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:203:26: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m201 |[0;0m }
[0;36m202 |[0;0m
[0;36m203 |[0;0m public [4;39moverride[0;0m func startLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m204 |[0;0m let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
[0;36m205 |[0;0m URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:389:26: [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m387 |[0;0m }
[0;36m388 |[0;0m
[0;36m389 |[0;0m public [4;39moverride[0;0m func stopLoading() {
[0;36m|[0;0m `- [1;31merror: [1;39mmethod does not override any method from its superclass[0;0m
[0;36m390 |[0;0m urlSessionTask?.cancel()
[0;36m391 |[0;0m urlSessionTask = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:187:41: [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m185 |[0;0m /// For network requests (live/passthrough mode), responses are streamed incrementally,
[0;36m186 |[0;0m /// enabling support for Server-Sent Events and other streaming protocols.
[0;36m187 |[0;0m public final class PlaybackURLProtocol: [4;39mURLProtocol[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m188 |[0;0m private static let handledKey = "ReplayPlaybackHandled"
[0;36m189 |[0;0m private var streamTask: Task<Void, Never>?
Foundation.URLProtocol:2:18: [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLProtocol = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLProtocol' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:400:42: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m398 |[0;0m
[0;36m399 |[0;0m /// A delegate that bridges URLSession callbacks to async streams for SSE support.
[0;36m400 |[0;0m final class StreamingDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m401 |[0;0m private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
[0;36m402 |[0;0m private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:401:59: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m399 |[0;0m /// A delegate that bridges URLSession callbacks to async streams for SSE support.
[0;36m400 |[0;0m final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
[0;36m401 |[0;0m private var responseContinuation: CheckedContinuation<[4;39mHTTPURLResponse[0;0m, Error>?
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m402 |[0;0m private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
[0;36m403 |[0;0m // Held weakly because URLProtocol owns the streaming task that owns this delegate.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:416:44: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m414 |[0;0m private var _dataStream: AsyncThrowingStream<Data, Error>?
[0;36m415 |[0;0m
[0;36m416 |[0;0m func waitForResponse() async throws -> [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m417 |[0;0m try await withCheckedThrowingContinuation { continuation in
[0;36m418 |[0;0m self.responseContinuation = continuation
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:424:50: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m422 |[0;0m func urlSession(
[0;36m423 |[0;0m _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
[0;36m424 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.ResponseDisposition) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m425 |[0;0m ) {
[0;36m426 |[0;0m if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m421 |[0;0m
[0;36m422 |[0;0m func urlSession(
[0;36m423 |[0;0m _ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive response: URLResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m424 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
[0;36m425 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:42: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m421 |[0;0m
[0;36m422 |[0;0m func urlSession(
[0;36m423 |[0;0m _ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive response: URLResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m424 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
[0;36m425 |[0;0m ) {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:83: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m421 |[0;0m
[0;36m422 |[0;0m func urlSession(
[0;36m423 |[0;0m _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: [4;39mURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m424 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
[0;36m425 |[0;0m ) {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:433:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m431 |[0;0m }
[0;36m432 |[0;0m
[0;36m433 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m434 |[0;0m dataContinuation?.yield(data)
[0;36m435 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:433:54: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m431 |[0;0m }
[0;36m432 |[0;0m
[0;36m433 |[0;0m func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m434 |[0;0m dataContinuation?.yield(data)
[0;36m435 |[0;0m }
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:443:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m441 |[0;0m _ session: URLSession,
[0;36m442 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m443 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m444 |[0;0m ) {
[0;36m445 |[0;0m forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:441:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m439 |[0;0m // forwarded, otherwise trust decisions silently fall back to default handling.
[0;36m440 |[0;0m func urlSession(
[0;36m441 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m442 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m443 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:442:31: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m440 |[0;0m func urlSession(
[0;36m441 |[0;0m _ session: URLSession,
[0;36m442 |[0;0m didReceive challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m443 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m444 |[0;0m ) {
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:452:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m450 |[0;0m task: URLSessionTask,
[0;36m451 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m452 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m453 |[0;0m ) {
[0;36m454 |[0;0m forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:449:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m447 |[0;0m
[0;36m448 |[0;0m func urlSession(
[0;36m449 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m450 |[0;0m task: URLSessionTask,
[0;36m451 |[0;0m didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:450:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m448 |[0;0m func urlSession(
[0;36m449 |[0;0m _ session: URLSession,
[0;36m450 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m451 |[0;0m didReceive challenge: URLAuthenticationChallenge,
[0;36m452 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:451:31: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m449 |[0;0m _ session: URLSession,
[0;36m450 |[0;0m task: URLSessionTask,
[0;36m451 |[0;0m didReceive challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m452 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m453 |[0;0m ) {
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:459:50: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m457 |[0;0m private func forward(
[0;36m458 |[0;0m _ challenge: URLAuthenticationChallenge,
[0;36m459 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m460 |[0;0m ) {
[0;36m461 |[0;0m guard let urlProtocol, let client = urlProtocol.client else {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:458:22: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m456 |[0;0m
[0;36m457 |[0;0m private func forward(
[0;36m458 |[0;0m _ challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m459 |[0;0m completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
[0;36m460 |[0;0m ) {
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m478 |[0;0m }
[0;36m479 |[0;0m
[0;36m480 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m481 |[0;0m if let error = error {
[0;36m482 |[0;0m responseContinuation?.resume(throwing: error)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m478 |[0;0m }
[0;36m479 |[0;0m
[0;36m480 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didCompleteWithError error: Error?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m481 |[0;0m if let error = error {
[0;36m482 |[0;0m responseContinuation?.resume(throwing: error)
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:496:51: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m494 |[0;0m private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
[0;36m495 |[0;0m
[0;36m496 |[0;0m init(completionHandler: @escaping ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m497 |[0;0m self.completionHandler = completionHandler
[0;36m498 |[0;0m }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:492:59: [1;31merror: [1;39mcannot find type 'URLAuthenticationChallengeSender' in scope[0;0m
[0;36m490 |[0;0m
[0;36m491 |[0;0m /// Bridges URLProtocolClient challenge decisions back into URLSession's challenge completion handler.
[0;36m492 |[0;0m private final class PlaybackChallengeForwarder: NSObject, [4;39mURLAuthenticationChallengeSender[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLAuthenticationChallengeSender' in scope[0;0m
[0;36m493 |[0;0m private let lock = NSLock()
[0;36m494 |[0;0m private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:494:49: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m492 |[0;0m private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
[0;36m493 |[0;0m private let lock = NSLock()
[0;36m494 |[0;0m private var completionHandler: (([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void)?
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m495 |[0;0m
[0;36m496 |[0;0m init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:28: [1;31merror: [1;39m'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m498 |[0;0m }
[0;36m499 |[0;0m
[0;36m500 |[0;0m func use(_ credential: [4;39mURLCredential[0;0m, for challenge: URLAuthenticationChallenge) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m501 |[0;0m complete(.useCredential, credential)
[0;36m502 |[0;0m }
Foundation.URLCredential:2:18: [1;39mnote: [1;39m'URLCredential' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLCredential = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLCredential' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:58: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m498 |[0;0m }
[0;36m499 |[0;0m
[0;36m500 |[0;0m func use(_ credential: URLCredential, for challenge: [4;39mURLAuthenticationChallenge[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m501 |[0;0m complete(.useCredential, credential)
[0;36m502 |[0;0m }
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:504:51: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m502 |[0;0m }
[0;36m503 |[0;0m
[0;36m504 |[0;0m func continueWithoutCredential(for challenge: [4;39mURLAuthenticationChallenge[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m505 |[0;0m // "Continue without a credential" maps to URLSession's default handling,
[0;36m506 |[0;0m // not to `.useCredential` with a nil credential.
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:510:30: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m508 |[0;0m }
[0;36m509 |[0;0m
[0;36m510 |[0;0m func cancel(_ challenge: [4;39mURLAuthenticationChallenge[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m511 |[0;0m complete(.cancelAuthenticationChallenge, nil)
[0;36m512 |[0;0m }
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:514:48: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m512 |[0;0m }
[0;36m513 |[0;0m
[0;36m514 |[0;0m func performDefaultHandling(for challenge: [4;39mURLAuthenticationChallenge[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m515 |[0;0m complete(.performDefaultHandling, nil)
[0;36m516 |[0;0m }
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:518:59: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m516 |[0;0m }
[0;36m517 |[0;0m
[0;36m518 |[0;0m func rejectProtectionSpaceAndContinue(with challenge: [4;39mURLAuthenticationChallenge[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m519 |[0;0m complete(.rejectProtectionSpace, nil)
[0;36m520 |[0;0m }
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:53: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m520 |[0;0m }
[0;36m521 |[0;0m
[0;36m522 |[0;0m private func complete(_ disposition: [4;39mURLSession[0;0m.AuthChallengeDisposition, _ credential: URLCredential?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m523 |[0;0m // A challenge sender may receive more than one callback from a defensive client;
[0;36m524 |[0;0m // URLSession completion handlers must only be invoked once.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:93: [1;31merror: [1;39m'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m520 |[0;0m }
[0;36m521 |[0;0m
[0;36m522 |[0;0m private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: [4;39mURLCredential[0;0m?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m523 |[0;0m // A challenge sender may receive more than one callback from a defensive client;
[0;36m524 |[0;0m // URLSession completion handlers must only be invoked once.
Foundation.URLCredential:2:18: [1;39mnote: [1;39m'URLCredential' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLCredential = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLCredential' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:23: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m624 |[0;0m public enum RequestDisposition: Sendable {
[0;36m625 |[0;0m /// Use the recorded entry's response.
[0;36m626 |[0;0m case recorded([4;39mHTTPURLResponse[0;0m, Data)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m627 |[0;0m /// No match found; go to the network (with optional recording).
[0;36m628 |[0;0m case network(shouldRecord: Bool)
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:14: [1;31merror: [1;39massociated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'[0;0m
[0;36m624 |[0;0m public enum RequestDisposition: Sendable {
[0;36m625 |[0;0m /// Use the recorded entry's response.
[0;36m626 |[0;0m case recorded(HTTPURLResponse, Data)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'[0;0m
[0;36m627 |[0;0m /// No match found; go to the network (with optional recording).
[0;36m628 |[0;0m case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:640:41: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m638 |[0;0m /// - Parameter request: The request to check.
[0;36m639 |[0;0m /// - Returns: A disposition indicating how to handle the request.
[0;36m640 |[0;0m public func checkRequest(_ request: [4;39mURLRequest[0;0m) throws -> RequestDisposition {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m641 |[0;0m guard let config = configuration else {
[0;36m642 |[0;0m throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:691:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m689 |[0;0m /// - duration: How long the request took.
[0;36m690 |[0;0m public func recordResponse(
[0;36m691 |[0;0m request: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m692 |[0;0m response: HTTPURLResponse,
[0;36m693 |[0;0m data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:692:19: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m690 |[0;0m public func recordResponse(
[0;36m691 |[0;0m request: URLRequest,
[0;36m692 |[0;0m response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m693 |[0;0m data: Data,
[0;36m694 |[0;0m duration: TimeInterval,
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:42: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m751 |[0;0m /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
[0;36m752 |[0;0m /// and handle network requests with `URLSession.bytes(for:)`.
[0;36m753 |[0;0m public func handleRequest(_ request: [4;39mURLRequest[0;0m) async throws -> (HTTPURLResponse, Data) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m754 |[0;0m switch try checkRequest(request) {
[0;36m755 |[0;0m case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:71: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m751 |[0;0m /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
[0;36m752 |[0;0m /// and handle network requests with `URLSession.bytes(for:)`.
[0;36m753 |[0;0m public func handleRequest(_ request: URLRequest) async throws -> ([4;39mHTTPURLResponse[0;0m, Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m754 |[0;0m switch try checkRequest(request) {
[0;36m755 |[0;0m case .recorded(let response, let data):
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:31: [1;31merror: [1;39mcannot find 'request' in scope[0;0m
[0;36m202 |[0;0m
[0;36m203 |[0;0m public override func startLoading() {
[0;36m204 |[0;0m let mutableRequest = ([4;39mrequest[0;0m as NSURLRequest).mutableCopy() as! NSMutableURLRequest
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'request' in scope[0;0m
[0;36m205 |[0;0m URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
[0;36m206 |[0;0m let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:42: [1;31merror: [1;39mcannot find type 'NSURLRequest' in scope[0;0m
[0;36m202 |[0;0m
[0;36m203 |[0;0m public override func startLoading() {
[0;36m204 |[0;0m let mutableRequest = (request as [4;39mNSURLRequest[0;0m).mutableCopy() as! NSMutableURLRequest
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'NSURLRequest' in scope[0;0m
[0;36m205 |[0;0m URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
[0;36m206 |[0;0m let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:74: [1;31merror: [1;39mcannot find type 'NSMutableURLRequest' in scope[0;0m
[0;36m202 |[0;0m
[0;36m203 |[0;0m public override func startLoading() {
[0;36m204 |[0;0m let mutableRequest = (request as NSURLRequest).mutableCopy() as! [4;39mNSMutableURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'NSMutableURLRequest' in scope[0;0m
[0;36m205 |[0;0m URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
[0;36m206 |[0;0m let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:205:21: [1;31merror: [1;39mtype 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'[0;0m
[0;36m203 |[0;0m public override func startLoading() {
[0;36m204 |[0;0m let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
[0;36m205 |[0;0m [4;39mURLProtocol[0;0m.[4;39msetProperty[0;0m(true, forKey: Self.handledKey, in: mutableRequest)
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'[0;0m
[0;36m206 |[0;0m let markedRequest = mutableRequest as URLRequest
[0;36m207 |[0;0m
/host/spi-builder-workspace/Sources/Replay/Playback.swift:206:47: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m204 |[0;0m let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
[0;36m205 |[0;0m URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
[0;36m206 |[0;0m let markedRequest = mutableRequest as [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m207 |[0;0m
[0;36m208 |[0;0m // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Replay.swift:79:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m77 |[0;0m /// This is a convenience for tests and tools that want a session without
[0;36m78 |[0;0m /// manually configuring `URLSessionConfiguration`.
[0;36m79 |[0;0m public static var session: [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m80 |[0;0m let config = URLSessionConfiguration.ephemeral
[0;36m81 |[0;0m configure(config)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Replay.swift:96:51: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m94 |[0;0m /// Configure a `URLSessionConfiguration` with `PlaybackURLProtocol`
[0;36m95 |[0;0m /// inserted at highest priority.
[0;36m96 |[0;0m public static func configure(_ configuration: [4;39mURLSessionConfiguration[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m97 |[0;0m var protocols = configuration.protocolClasses ?? []
[0;36m98 |[0;0m if !protocols.contains(where: { $0 == PlaybackURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:15: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m104 |[0;0m /// Create a new `URLSessionConfiguration` with Replay pre-configured.
[0;36m105 |[0;0m public static func configuration(
[0;36m106 |[0;0m base: [4;39mURLSessionConfiguration[0;0m = .default
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m107 |[0;0m ) -> URLSessionConfiguration {
[0;36m108 |[0;0m let config = base
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Replay.swift:107:10: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m105 |[0;0m public static func configuration(
[0;36m106 |[0;0m base: URLSessionConfiguration = .default
[0;36m107 |[0;0m ) -> [4;39mURLSessionConfiguration[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m108 |[0;0m let config = base
[0;36m109 |[0;0m configure(config)
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m104 |[0;0m /// Create a new `URLSessionConfiguration` with Replay pre-configured.
[0;36m105 |[0;0m public static func configuration(
[0;36m106 |[0;0m base: URLSessionConfiguration = .default
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m107 |[0;0m ) -> URLSessionConfiguration {
[0;36m108 |[0;0m let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m104 |[0;0m /// Create a new `URLSessionConfiguration` with Replay pre-configured.
[0;36m105 |[0;0m public static func configuration(
[0;36m106 |[0;0m base: URLSessionConfiguration = [4;39m.default[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m107 |[0;0m ) -> URLSessionConfiguration {
[0;36m108 |[0;0m let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:24: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m113 |[0;0m /// Create a `URLSession` with Replay pre-configured.
[0;36m114 |[0;0m public static func makeSession(
[0;36m115 |[0;0m configuration: [4;39mURLSessionConfiguration[0;0m = .default
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m116 |[0;0m ) -> URLSession {
[0;36m117 |[0;0m let config = self.configuration(base: configuration)
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Replay.swift:116:10: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m114 |[0;0m public static func makeSession(
[0;36m115 |[0;0m configuration: URLSessionConfiguration = .default
[0;36m116 |[0;0m ) -> [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m117 |[0;0m let config = self.configuration(base: configuration)
[0;36m118 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m113 |[0;0m /// Create a `URLSession` with Replay pre-configured.
[0;36m114 |[0;0m public static func makeSession(
[0;36m115 |[0;0m configuration: URLSessionConfiguration = [4;39m.default[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m116 |[0;0m ) -> URLSession {
[0;36m117 |[0;0m let config = self.configuration(base: configuration)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m113 |[0;0m /// Create a `URLSession` with Replay pre-configured.
[0;36m114 |[0;0m public static func makeSession(
[0;36m115 |[0;0m configuration: URLSessionConfiguration = .default
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m116 |[0;0m ) -> URLSession {
[0;36m117 |[0;0m 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