Build Information
Failed to build Replay, reference main (f641f9), with Swift 6.3 for Wasm on 18 Apr 2026 16:32:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattt/Replay.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f641f9c Bump version to 0.4.0
Cloned https://github.com/mattt/Replay.git
Revision (git rev-parse @):
f641f9c06a4a01c73342aa0879a860591b608418
SUCCESS checkout https://github.com/mattt/Replay.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/mattt/Replay.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-argument-parser.git
[1/17529] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.92s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (1.37s)
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.7.1
[1/1] Compiling plugin ReplayPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/24] Write sources
[11/24] Write swift-version-24593BA9C3E375BF.txt
[13/48] Compiling Replay Replay+HTTPClient.swift
[15/50] Emitting module ArgumentParserToolInfo
[16/50] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/51] Emitting module ArgumentParserToolInfo
[19/51] Compiling ArgumentParserToolInfo ToolInfo.swift
[19/52] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/144] Emitting module Replay
/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:28: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public static func session(
31 | configuration: CaptureConfiguration,
32 | baseConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ) async -> URLSession {
34 | let config = baseConfiguration
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:33:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | configuration: CaptureConfiguration,
32 | baseConfiguration: URLSessionConfiguration = .default
33 | ) async -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let config = baseConfiguration
35 | var protocols = config.protocolClasses ?? []
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:55: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 | public static func session(
31 | configuration: CaptureConfiguration,
32 | baseConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
33 | ) async -> URLSession {
34 | let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Capture.swift:32:55: error: value of type '_' expected to be instance of class or class-constrained type
30 | public static func session(
31 | configuration: CaptureConfiguration,
32 | baseConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
33 | ) async -> URLSession {
34 | let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Capture.swift:122:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |
121 | private var startTime: Date?
122 | private var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:124:54: error: cannot find type 'URLRequest' in scope
122 | private var dataTask: URLSessionDataTask?
123 |
124 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
125 | // Prevent infinite loops
126 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:77: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | request
137 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:62: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | request
137 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:139:26: error: method does not override any method from its superclass
137 | }
138 |
139 | public override func startLoading() {
| `- error: method does not override any method from its superclass
140 | startTime = Date()
141 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:192:26: error: method does not override any method from its superclass
190 | }
191 |
192 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
193 | dataTask?.cancel()
194 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:118:40: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | /// `CaptureURLProtocol` forwards responses to the requesting client,
117 | /// and records the request/response pair asynchronously.
118 | public final class CaptureURLProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | private static let handledKey = "ReplayCaptureHandled"
120 |
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:290:18: error: cannot find type 'URLRequest' in scope
288 | /// - duration: The request duration.
289 | public func recordEntry(
290 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
291 | response: HTTPURLResponse,
292 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:291:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 | public func recordEntry(
290 | request: URLRequest,
291 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 | data: Data,
293 | startTime: Date,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/HAR.swift:873:34: error: cannot find type 'URLRequest' in scope
871 | /// - Parameter urlRequest: The request to convert.
872 | /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
873 | public init(from urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
874 | guard let url = urlRequest.url else {
875 | throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:837:18: error: cannot find type 'URLRequest' in scope
835 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
836 | public init(
837 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
838 | response: HTTPURLResponse,
839 | data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:838:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
836 | public init(
837 | request: URLRequest,
838 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
839 | data: Data,
840 | 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:945:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
943 | /// - httpResponse: The response to convert.
944 | /// - data: The response body data.
945 | 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.
946 | self.status = httpResponse.statusCode
947 | 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:999:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
997 | extension HAR.Entry {
998 | /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
999 | public func toURLResponse() throws -> (HTTPURLResponse, Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1000 | guard let url = URL(string: request.url) else {
1001 | 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:50:39: error: cannot find type 'URLRequest' in scope
48 | /// Escape hatch for custom matching logic.
49 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:50:64: error: cannot find type 'URLRequest' in scope
48 | /// Escape hatch for custom matching logic.
49 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:52:26: error: cannot find type 'URLRequest' in scope
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | switch self {
54 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:52:51: error: cannot find type 'URLRequest' in scope
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | switch self {
54 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:136:36: error: cannot find type 'URLRequest' in scope
134 | ///
135 | /// This is used by capture as an opt-in filter.
136 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
137 | for matcher in self {
138 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:146:41: error: cannot find type 'URLRequest' in scope
144 |
145 | /// Finds the first entry whose request matches according to all matchers.
146 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
147 | for entry in entries {
148 | guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:172:37: error: cannot find type 'URLRequest' in scope
170 | }
171 |
172 | private func matches(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
173 | for matcher in self {
174 | if !matcher.test(request, candidate) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:172:62: error: cannot find type 'URLRequest' in scope
170 | }
171 |
172 | private func matches(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
173 | for matcher in self {
174 | if !matcher.test(request, candidate) {
/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:173:44: error: cannot find type 'URLRequest' in scope
171 | }
172 |
173 | private func requestDescription(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
174 | let method = request.httpMethod ?? "GET"
175 | let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:188:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | private static let handledKey = "ReplayPlaybackHandled"
187 | private var streamTask: Task<Void, Never>?
188 | private var urlSessionTask: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |
190 | 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:190:54: error: cannot find type 'URLRequest' in scope
188 | private var urlSessionTask: URLSessionTask?
189 |
190 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
191 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
192 | return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:197:77: error: cannot find type 'URLRequest' in scope
195 | }
196 |
197 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
198 | request
199 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:197:62: error: cannot find type 'URLRequest' in scope
195 | }
196 |
197 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
198 | request
199 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:201:26: error: method does not override any method from its superclass
199 | }
200 |
201 | public override func startLoading() {
| `- error: method does not override any method from its superclass
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:347:26: error: method does not override any method from its superclass
345 | }
346 |
347 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
348 | urlSessionTask?.cancel()
349 | urlSessionTask = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:185:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 | /// For network requests (live/passthrough mode), responses are streamed incrementally,
184 | /// enabling support for Server-Sent Events and other streaming protocols.
185 | 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.
186 | private static let handledKey = "ReplayPlaybackHandled"
187 | private var streamTask: Task<Void, Never>?
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:358:50: error: cannot find type 'URLSessionDataDelegate' in scope
356 |
357 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
358 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
359 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
360 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:359:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
357 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
358 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
359 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
360 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
361 |
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:372:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
370 | private var _dataStream: AsyncThrowingStream<Data, Error>?
371 |
372 | func waitForResponse() async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
373 | try await withCheckedThrowingContinuation { continuation in
374 | self.responseContinuation = continuation
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:380:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
378 | func urlSession(
379 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
381 | ) {
382 | if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:379:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |
378 | func urlSession(
379 | _ 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.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
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:379:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |
378 | func urlSession(
379 | _ 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.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
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:379:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |
378 | func urlSession(
379 | _ 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.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
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:389:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
387 | }
388 |
389 | 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.
390 | dataContinuation?.yield(data)
391 | }
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:389:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
387 | }
388 |
389 | 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.
390 | dataContinuation?.yield(data)
391 | }
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:393:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
391 | }
392 |
393 | 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.
394 | if let error = error {
395 | responseContinuation?.resume(throwing: error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:393:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
391 | }
392 |
393 | 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.
394 | if let error = error {
395 | responseContinuation?.resume(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:496:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
494 | public enum RequestDisposition: Sendable {
495 | /// Use the recorded entry's response.
496 | case recorded(HTTPURLResponse, Data)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
497 | /// No match found; go to the network (with optional recording).
498 | 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:496:14: error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
494 | public enum RequestDisposition: Sendable {
495 | /// Use the recorded entry's response.
496 | case recorded(HTTPURLResponse, Data)
| `- error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
497 | /// No match found; go to the network (with optional recording).
498 | case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:510:41: error: cannot find type 'URLRequest' in scope
508 | /// - Parameter request: The request to check.
509 | /// - Returns: A disposition indicating how to handle the request.
510 | public func checkRequest(_ request: URLRequest) throws -> RequestDisposition {
| `- error: cannot find type 'URLRequest' in scope
511 | guard let config = configuration else {
512 | throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:561:18: error: cannot find type 'URLRequest' in scope
559 | /// - duration: How long the request took.
560 | public func recordResponse(
561 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
562 | response: HTTPURLResponse,
563 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:562:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
560 | public func recordResponse(
561 | request: URLRequest,
562 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
563 | data: Data,
564 | 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:623:42: error: cannot find type 'URLRequest' in scope
621 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
622 | /// and handle network requests with `URLSession.bytes(for:)`.
623 | public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
| `- error: cannot find type 'URLRequest' in scope
624 | switch try checkRequest(request) {
625 | case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:623:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
621 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
622 | /// and handle network requests with `URLSession.bytes(for:)`.
623 | 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.
624 | switch try checkRequest(request) {
625 | 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:202:31: error: cannot find 'request' in scope
200 |
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:202:42: error: cannot find type 'NSURLRequest' in scope
200 |
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:202:74: error: cannot find type 'NSMutableURLRequest' in scope
200 |
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:203:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
204 | let markedRequest = mutableRequest as URLRequest
205 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:47: error: cannot find type 'URLRequest' in scope
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
| `- error: cannot find type 'URLRequest' in scope
205 |
206 | // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Replay.swift:79:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | /// This is a convenience for tests and tools that want a session without
78 | /// manually configuring `URLSessionConfiguration`.
79 | public static var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | let config = URLSessionConfiguration.ephemeral
81 | configure(config)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:96:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | /// Configure a `URLSessionConfiguration` with `PlaybackURLProtocol`
95 | /// inserted at highest priority.
96 | public static func configure(_ configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | var protocols = configuration.protocolClasses ?? []
98 | if !protocols.contains(where: { $0 == PlaybackURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:15: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | ) -> URLSessionConfiguration {
108 | let config = base
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:107:10: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
107 | ) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | let config = base
109 | configure(config)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: error: value of type '_' expected to be instance of class or class-constrained type
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
107 | ) -> URLSessionConfiguration {
108 | let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
107 | ) -> URLSessionConfiguration {
108 | let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// Create a `URLSession` with Replay pre-configured.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | ) -> URLSession {
117 | let config = self.configuration(base: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:116:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
116 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | let config = self.configuration(base: configuration)
118 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: error: value of type '_' expected to be instance of class or class-constrained type
113 | /// Create a `URLSession` with Replay pre-configured.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
116 | ) -> URLSession {
117 | let config = self.configuration(base: configuration)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
113 | /// Create a `URLSession` with Replay pre-configured.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 | ) -> URLSession {
117 | let config = self.configuration(base: configuration)
[24/144] Compiling ArgumentParser BashCompletionsGenerator.swift
/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: 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: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:122:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |
121 | private var startTime: Date?
122 | private var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:124:54: error: cannot find type 'URLRequest' in scope
122 | private var dataTask: URLSessionDataTask?
123 |
124 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
125 | // Prevent infinite loops
126 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:77: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | request
137 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:62: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | request
137 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:139:26: error: method does not override any method from its superclass
137 | }
138 |
139 | public override func startLoading() {
| `- error: method does not override any method from its superclass
140 | startTime = Date()
141 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:192:26: error: method does not override any method from its superclass
190 | }
191 |
192 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
193 | dataTask?.cancel()
194 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:118:40: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | /// `CaptureURLProtocol` forwards responses to the requesting client,
117 | /// and records the request/response pair asynchronously.
118 | public final class CaptureURLProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | private static let handledKey = "ReplayCaptureHandled"
120 |
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:290:18: error: cannot find type 'URLRequest' in scope
288 | /// - duration: The request duration.
289 | public func recordEntry(
290 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
291 | response: HTTPURLResponse,
292 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:291:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 | public func recordEntry(
290 | request: URLRequest,
291 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 | data: Data,
293 | startTime: Date,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:35:32: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
33 | ) async -> URLSession {
34 | let config = baseConfiguration
35 | var protocols = config.protocolClasses ?? []
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
36 | protocols.insert(CaptureURLProtocol.self, at: 0)
37 | config.protocolClasses = protocols
/host/spi-builder-workspace/Sources/Replay/Capture.swift:37:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
35 | var protocols = config.protocolClasses ?? []
36 | protocols.insert(CaptureURLProtocol.self, at: 0)
37 | config.protocolClasses = protocols
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
38 |
39 | await CaptureStore.shared.configure(configuration)
/host/spi-builder-workspace/Sources/Replay/Capture.swift:41:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | await CaptureStore.shared.configure(configuration)
40 |
41 | return URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | }
43 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:126:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
124 | public override class func canInit(with request: URLRequest) -> Bool {
125 | // Prevent infinite loops
126 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
127 | return false
128 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:143:31: error: cannot find 'request' in scope
141 |
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:143:42: error: cannot find type 'NSURLRequest' in scope
141 |
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:143:74: error: cannot find type 'NSMutableURLRequest' in scope
141 |
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:144:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
145 |
146 | let session = URLSession.shared
/host/spi-builder-workspace/Sources/Replay/Capture.swift:146:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
146 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 | // URLSession completion handlers are strictly @Sendable in Swift 6.
148 | // We use a wrapper to capture `weak self` safely without requiring Sendable conformance on Linux.
/host/spi-builder-workspace/Sources/Replay/Capture.swift:150:61: error: cannot find type 'URLRequest' in scope
148 | // We use a wrapper to capture `weak self` safely without requiring Sendable conformance on Linux.
149 | let weakSelf = UnsafeWeakSendable(self)
150 | dataTask = session.dataTask(with: mutableRequest as URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
151 | data, response, error in
152 | guard let self = weakSelf.value else { return }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:189:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
187 | }
188 |
189 | dataTask?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
190 | }
191 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:193:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
191 |
192 | public override func stopLoading() {
193 | dataTask?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
194 | }
195 |
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:136:36: error: cannot find type 'URLRequest' in scope
134 | ///
135 | /// This is used by capture as an opt-in filter.
136 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
137 | for matcher in self {
138 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:299:28: error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
297 |
298 | if let matchers = config.matchers {
299 | guard matchers.matches(request) else { return }
| `- error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
300 | }
301 |
_StringProcessing.BidirectionalCollection:1:11: note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
1 | extension BidirectionalCollection where Self.SubSequence == Substring {
| `- note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
2 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
3 | public func matches<Output>(of r: some RegexComponent) -> [Regex<Output>.Match]
/host/spi-builder-workspace/Sources/Replay/Capture.swift:299:36: error: missing argument label 'of:' in call
297 |
298 | if let matchers = config.matchers {
299 | guard matchers.matches(request) else { return }
| `- error: missing argument label 'of:' in call
300 | }
301 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:299:28: error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
297 |
298 | if let matchers = config.matchers {
299 | guard matchers.matches(request) else { return }
| `- error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
300 | }
301 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:837:18: error: cannot find type 'URLRequest' in scope
835 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
836 | public init(
837 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
838 | response: HTTPURLResponse,
839 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:303:38: error: extra arguments at positions #3, #4, #5 in call
301 |
302 | do {
303 | var entry = try HAR.Entry(
| `- error: extra arguments at positions #3, #4, #5 in call
304 | request: request,
305 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:303:38: error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
301 |
302 | do {
303 | var entry = try HAR.Entry(
| `- error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
304 | request: request,
305 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:305:27: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
303 | var entry = try HAR.Entry(
304 | request: request,
305 | response: response,
| `- error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
306 | data: data,
307 | startTime: startTime,
[25/144] Compiling ArgumentParser CompletionsGenerator.swift
/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: 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: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:122:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |
121 | private var startTime: Date?
122 | private var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 | public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:124:54: error: cannot find type 'URLRequest' in scope
122 | private var dataTask: URLSessionDataTask?
123 |
124 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
125 | // Prevent infinite loops
126 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:77: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | request
137 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:135:62: error: cannot find type 'URLRequest' in scope
133 | }
134 |
135 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
136 | request
137 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:139:26: error: method does not override any method from its superclass
137 | }
138 |
139 | public override func startLoading() {
| `- error: method does not override any method from its superclass
140 | startTime = Date()
141 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:192:26: error: method does not override any method from its superclass
190 | }
191 |
192 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
193 | dataTask?.cancel()
194 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:118:40: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | /// `CaptureURLProtocol` forwards responses to the requesting client,
117 | /// and records the request/response pair asynchronously.
118 | public final class CaptureURLProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | private static let handledKey = "ReplayCaptureHandled"
120 |
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:290:18: error: cannot find type 'URLRequest' in scope
288 | /// - duration: The request duration.
289 | public func recordEntry(
290 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
291 | response: HTTPURLResponse,
292 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:291:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 | public func recordEntry(
290 | request: URLRequest,
291 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 | data: Data,
293 | startTime: Date,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Capture.swift:35:32: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
33 | ) async -> URLSession {
34 | let config = baseConfiguration
35 | var protocols = config.protocolClasses ?? []
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
36 | protocols.insert(CaptureURLProtocol.self, at: 0)
37 | config.protocolClasses = protocols
/host/spi-builder-workspace/Sources/Replay/Capture.swift:37:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
35 | var protocols = config.protocolClasses ?? []
36 | protocols.insert(CaptureURLProtocol.self, at: 0)
37 | config.protocolClasses = protocols
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
38 |
39 | await CaptureStore.shared.configure(configuration)
/host/spi-builder-workspace/Sources/Replay/Capture.swift:41:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | await CaptureStore.shared.configure(configuration)
40 |
41 | return URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | }
43 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:126:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
124 | public override class func canInit(with request: URLRequest) -> Bool {
125 | // Prevent infinite loops
126 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
127 | return false
128 | }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:143:31: error: cannot find 'request' in scope
141 |
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:143:42: error: cannot find type 'NSURLRequest' in scope
141 |
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:143:74: error: cannot find type 'NSMutableURLRequest' in scope
141 |
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:144:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
142 | // Mark request as handled
143 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
145 |
146 | let session = URLSession.shared
/host/spi-builder-workspace/Sources/Replay/Capture.swift:146:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
144 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
145 |
146 | let session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 | // URLSession completion handlers are strictly @Sendable in Swift 6.
148 | // We use a wrapper to capture `weak self` safely without requiring Sendable conformance on Linux.
/host/spi-builder-workspace/Sources/Replay/Capture.swift:150:61: error: cannot find type 'URLRequest' in scope
148 | // We use a wrapper to capture `weak self` safely without requiring Sendable conformance on Linux.
149 | let weakSelf = UnsafeWeakSendable(self)
150 | dataTask = session.dataTask(with: mutableRequest as URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
151 | data, response, error in
152 | guard let self = weakSelf.value else { return }
/host/spi-builder-workspace/Sources/Replay/Capture.swift:189:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
187 | }
188 |
189 | dataTask?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
190 | }
191 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:193:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
191 |
192 | public override func stopLoading() {
193 | dataTask?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
194 | }
195 |
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:136:36: error: cannot find type 'URLRequest' in scope
134 | ///
135 | /// This is used by capture as an opt-in filter.
136 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
137 | for matcher in self {
138 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Capture.swift:299:28: error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
297 |
298 | if let matchers = config.matchers {
299 | guard matchers.matches(request) else { return }
| `- error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
300 | }
301 |
_StringProcessing.BidirectionalCollection:1:11: note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
1 | extension BidirectionalCollection where Self.SubSequence == Substring {
| `- note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
2 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
3 | public func matches<Output>(of r: some RegexComponent) -> [Regex<Output>.Match]
/host/spi-builder-workspace/Sources/Replay/Capture.swift:299:36: error: missing argument label 'of:' in call
297 |
298 | if let matchers = config.matchers {
299 | guard matchers.matches(request) else { return }
| `- error: missing argument label 'of:' in call
300 | }
301 |
/host/spi-builder-workspace/Sources/Replay/Capture.swift:299:28: error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
297 |
298 | if let matchers = config.matchers {
299 | guard matchers.matches(request) else { return }
| `- error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
300 | }
301 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:837:18: error: cannot find type 'URLRequest' in scope
835 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
836 | public init(
837 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
838 | response: HTTPURLResponse,
839 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:303:38: error: extra arguments at positions #3, #4, #5 in call
301 |
302 | do {
303 | var entry = try HAR.Entry(
| `- error: extra arguments at positions #3, #4, #5 in call
304 | request: request,
305 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:303:38: error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
301 |
302 | do {
303 | var entry = try HAR.Entry(
| `- error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
304 | request: request,
305 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Capture.swift:305:27: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
303 | var entry = try HAR.Entry(
304 | request: request,
305 | response: response,
| `- error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
306 | data: data,
307 | startTime: startTime,
[26/144] Compiling Replay Matcher.swift
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:50:39: error: cannot find type 'URLRequest' in scope
48 | /// Escape hatch for custom matching logic.
49 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:50:64: error: cannot find type 'URLRequest' in scope
48 | /// Escape hatch for custom matching logic.
49 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:52:26: error: cannot find type 'URLRequest' in scope
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | switch self {
54 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:52:51: error: cannot find type 'URLRequest' in scope
50 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
51 |
52 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | switch self {
54 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:136:36: error: cannot find type 'URLRequest' in scope
134 | ///
135 | /// This is used by capture as an opt-in filter.
136 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
137 | for matcher in self {
138 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:146:41: error: cannot find type 'URLRequest' in scope
144 |
145 | /// Finds the first entry whose request matches according to all matchers.
146 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
147 | for entry in entries {
148 | guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:172:37: error: cannot find type 'URLRequest' in scope
170 | }
171 |
172 | private func matches(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
173 | for matcher in self {
174 | if !matcher.test(request, candidate) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:172:62: error: cannot find type 'URLRequest' in scope
170 | }
171 |
172 | private func matches(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
173 | for matcher in self {
174 | if !matcher.test(request, candidate) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:150:32: error: cannot find 'URLRequest' in scope
148 | guard let entryURL = URL(string: entry.request.url) else { continue }
149 |
150 | var entryRequest = URLRequest(url: entryURL)
| `- error: cannot find 'URLRequest' in scope
151 | entryRequest.httpMethod = entry.request.method
152 | for header in entry.request.headers {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:164:16: error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
162 | }
163 |
164 | if matches(request, entryRequest) {
| `- error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
165 | return entry
166 | }
_StringProcessing.BidirectionalCollection:1:11: note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
1 | extension BidirectionalCollection where Self.SubSequence == Substring {
| `- note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
2 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
3 | public func matches<Output>(of r: some RegexComponent) -> [Regex<Output>.Match]
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:164:33: error: extra argument in call
162 | }
163 |
164 | if matches(request, entryRequest) {
| `- error: extra argument in call
165 | return entry
166 | }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:164:16: error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
162 | }
163 |
164 | if matches(request, entryRequest) {
| `- error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
165 | return entry
166 | }
[27/144] Compiling Replay Playback.swift
/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:173:44: error: cannot find type 'URLRequest' in scope
171 | }
172 |
173 | private func requestDescription(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
174 | let method = request.httpMethod ?? "GET"
175 | let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:188:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | private static let handledKey = "ReplayPlaybackHandled"
187 | private var streamTask: Task<Void, Never>?
188 | private var urlSessionTask: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |
190 | 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:190:54: error: cannot find type 'URLRequest' in scope
188 | private var urlSessionTask: URLSessionTask?
189 |
190 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
191 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
192 | return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:197:77: error: cannot find type 'URLRequest' in scope
195 | }
196 |
197 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
198 | request
199 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:197:62: error: cannot find type 'URLRequest' in scope
195 | }
196 |
197 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
198 | request
199 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:201:26: error: method does not override any method from its superclass
199 | }
200 |
201 | public override func startLoading() {
| `- error: method does not override any method from its superclass
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:347:26: error: method does not override any method from its superclass
345 | }
346 |
347 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
348 | urlSessionTask?.cancel()
349 | urlSessionTask = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:185:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 | /// For network requests (live/passthrough mode), responses are streamed incrementally,
184 | /// enabling support for Server-Sent Events and other streaming protocols.
185 | 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.
186 | private static let handledKey = "ReplayPlaybackHandled"
187 | private var streamTask: Task<Void, Never>?
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:358:50: error: cannot find type 'URLSessionDataDelegate' in scope
356 |
357 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
358 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
359 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
360 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:359:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
357 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
358 | private final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
359 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
360 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
361 |
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:372:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
370 | private var _dataStream: AsyncThrowingStream<Data, Error>?
371 |
372 | func waitForResponse() async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
373 | try await withCheckedThrowingContinuation { continuation in
374 | self.responseContinuation = continuation
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:380:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
378 | func urlSession(
379 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
381 | ) {
382 | if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:379:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |
378 | func urlSession(
379 | _ 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.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
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:379:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |
378 | func urlSession(
379 | _ 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.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
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:379:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |
378 | func urlSession(
379 | _ 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.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
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:389:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
387 | }
388 |
389 | 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.
390 | dataContinuation?.yield(data)
391 | }
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:389:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
387 | }
388 |
389 | 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.
390 | dataContinuation?.yield(data)
391 | }
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:393:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
391 | }
392 |
393 | 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.
394 | if let error = error {
395 | responseContinuation?.resume(throwing: error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:393:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
391 | }
392 |
393 | 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.
394 | if let error = error {
395 | responseContinuation?.resume(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:496:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
494 | public enum RequestDisposition: Sendable {
495 | /// Use the recorded entry's response.
496 | case recorded(HTTPURLResponse, Data)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
497 | /// No match found; go to the network (with optional recording).
498 | 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:496:14: error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
494 | public enum RequestDisposition: Sendable {
495 | /// Use the recorded entry's response.
496 | case recorded(HTTPURLResponse, Data)
| `- error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
497 | /// No match found; go to the network (with optional recording).
498 | case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:510:41: error: cannot find type 'URLRequest' in scope
508 | /// - Parameter request: The request to check.
509 | /// - Returns: A disposition indicating how to handle the request.
510 | public func checkRequest(_ request: URLRequest) throws -> RequestDisposition {
| `- error: cannot find type 'URLRequest' in scope
511 | guard let config = configuration else {
512 | throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:561:18: error: cannot find type 'URLRequest' in scope
559 | /// - duration: How long the request took.
560 | public func recordResponse(
561 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
562 | response: HTTPURLResponse,
563 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:562:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
560 | public func recordResponse(
561 | request: URLRequest,
562 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
563 | data: Data,
564 | 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:623:42: error: cannot find type 'URLRequest' in scope
621 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
622 | /// and handle network requests with `URLSession.bytes(for:)`.
623 | public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
| `- error: cannot find type 'URLRequest' in scope
624 | switch try checkRequest(request) {
625 | case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:623:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
621 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
622 | /// and handle network requests with `URLSession.bytes(for:)`.
623 | 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.
624 | switch try checkRequest(request) {
625 | 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:20:32: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
18 | ) async throws -> URLSession {
19 | let config = baseConfiguration
20 | var protocols = config.protocolClasses ?? []
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
21 | protocols.insert(PlaybackURLProtocol.self, at: 0)
22 | config.protocolClasses = protocols
/host/spi-builder-workspace/Sources/Replay/Playback.swift:22:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
20 | var protocols = config.protocolClasses ?? []
21 | protocols.insert(PlaybackURLProtocol.self, at: 0)
22 | config.protocolClasses = protocols
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
23 |
24 | // Prefer isolation: configure a dedicated store and route requests to it via header.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:30:30: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
28 | let key = PlaybackStoreRegistry.shared.register(store)
29 |
30 | var headers = config.httpAdditionalHeaders ?? [:]
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
31 | headers[ReplayProtocolContext.headerName] = key
32 | config.httpAdditionalHeaders = headers
/host/spi-builder-workspace/Sources/Replay/Playback.swift:32:16: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
30 | var headers = config.httpAdditionalHeaders ?? [:]
31 | headers[ReplayProtocolContext.headerName] = key
32 | config.httpAdditionalHeaders = headers
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
33 |
34 | return URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:34:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | config.httpAdditionalHeaders = headers
33 |
34 | return URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:191:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
189 |
190 | public override class func canInit(with request: URLRequest) -> Bool {
191 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
192 | return false
193 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:202:31: error: cannot find 'request' in scope
200 |
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:202:42: error: cannot find type 'NSURLRequest' in scope
200 |
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:202:74: error: cannot find type 'NSMutableURLRequest' in scope
200 |
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:203:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
201 | public override func startLoading() {
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
204 | let markedRequest = mutableRequest as URLRequest
205 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:47: error: cannot find type 'URLRequest' in scope
202 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
203 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
204 | let markedRequest = mutableRequest as URLRequest
| `- error: cannot find type 'URLRequest' in scope
205 |
206 | // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Playback.swift:348:25: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
346 |
347 | public override func stopLoading() {
348 | urlSessionTask?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
349 | urlSessionTask = nil
350 | streamTask?.cancel()
/host/spi-builder-workspace/Sources/Replay/Playback.swift:382:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
382 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
383 | responseContinuation?.resume(returning: httpResponse)
384 | responseContinuation = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:382:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
380 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
381 | ) {
382 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
383 | responseContinuation?.resume(returning: httpResponse)
384 | responseContinuation = nil
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:386:28: error: cannot infer contextual base in reference to member 'allow'
384 | responseContinuation = nil
385 | }
386 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
387 | }
388 |
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:146:41: error: cannot find type 'URLRequest' in scope
144 |
145 | /// Finds the first entry whose request matches according to all matchers.
146 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
147 | for entry in entries {
148 | guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:517:51: error: extra arguments at positions #1, #2 in call
515 | // `.live` ignores any recorded entries and always hits the network.
516 | if effectivePlaybackMode != .live,
517 | let entry = config.matchers.firstMatch(for: request, in: entries)
| `- error: extra arguments at positions #1, #2 in call
518 | {
519 | let (response, data) = try entry.toURLResponse()
_StringProcessing.BidirectionalCollection.firstMatch:3:26: note: 'firstMatch(of:)' declared here
1 | protocol BidirectionalCollection {
2 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
3 | @inlinable public func firstMatch<Output>(of r: some RegexComponent) -> Regex<Output>.Match?}
| `- note: 'firstMatch(of:)' declared here
4 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:517:52: error: missing argument for parameter 'of' in call
515 | // `.live` ignores any recorded entries and always hits the network.
516 | if effectivePlaybackMode != .live,
517 | let entry = config.matchers.firstMatch(for: request, in: entries)
| `- error: missing argument for parameter 'of' in call
518 | {
519 | let (response, data) = try entry.toURLResponse()
_StringProcessing.BidirectionalCollection.firstMatch:3:26: note: 'firstMatch(of:)' declared here
1 | protocol BidirectionalCollection {
2 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
3 | @inlinable public func firstMatch<Output>(of r: some RegexComponent) -> Regex<Output>.Match?}
| `- note: 'firstMatch(of:)' declared here
4 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:517:41: error: referencing instance method 'firstMatch(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
515 | // `.live` ignores any recorded entries and always hits the network.
516 | if effectivePlaybackMode != .live,
517 | let entry = config.matchers.firstMatch(for: request, in: entries)
| `- error: referencing instance method 'firstMatch(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
518 | {
519 | let (response, data) = try entry.toURLResponse()
_StringProcessing.BidirectionalCollection:1:11: note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
1 | extension BidirectionalCollection where Self.SubSequence == Substring {
| `- note: where 'Self.SubSequence' = 'ArraySlice<Matcher>'
2 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
3 | @inlinable public func firstMatch<Output>(of r: some RegexComponent) -> Regex<Output>.Match?
/host/spi-builder-workspace/Sources/Replay/HAR.swift:837:18: error: cannot find type 'URLRequest' in scope
835 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
836 | public init(
837 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
838 | response: HTTPURLResponse,
839 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:571:34: error: extra arguments at positions #3, #4, #5 in call
569 | }
570 |
571 | var entry = try HAR.Entry(
| `- error: extra arguments at positions #3, #4, #5 in call
572 | request: request,
573 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:571:34: error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
569 | }
570 |
571 | var entry = try HAR.Entry(
| `- error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
572 | request: request,
573 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:573:23: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
571 | var entry = try HAR.Entry(
572 | request: request,
573 | response: response,
| `- error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
574 | data: data,
575 | startTime: startTime,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:631:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
629 | case .network(let shouldRecord):
630 | let startTime = Date()
631 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
632 | guard let httpResponse = response as? HTTPURLResponse else {
633 | throw ReplayError.invalidResponse
/host/spi-builder-workspace/Sources/Replay/Playback.swift:669:23: error: cannot find 'URLRequest' in scope
667 |
668 | private func makeEntry(from stub: Stub) throws -> HAR.Entry {
669 | var request = URLRequest(url: stub.url)
| `- error: cannot find 'URLRequest' in scope
670 | request.httpMethod = stub.method.rawValue
671 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:673:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
671 |
672 | guard
673 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
674 | url: stub.url,
675 | statusCode: stub.status,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:683:29: error: extra arguments at positions #3, #4, #5 in call
681 | }
682 |
683 | return try HAR.Entry(
| `- error: extra arguments at positions #3, #4, #5 in call
684 | request: request,
685 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:683:29: error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
681 | }
682 |
683 | return try HAR.Entry(
| `- error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
684 | request: request,
685 | response: response,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:212:16: note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
210 | public var comment: String?
211 |
212 | public init(
| `- note: 'init(startedDateTime:time:request:response:cache:timings:serverIPAddress:connection:comment:)' declared here
213 | startedDateTime: Date,
214 | time: Int,
[28/144] Compiling Replay Traits.swift
/host/spi-builder-workspace/Sources/Replay/Traits.swift:121:29: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
119 |
120 | // Register URLProtocol globally for zero-config interception.
121 | _ = URLProtocol.registerClass(PlaybackURLProtocol.self)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
122 | defer {
123 | URLProtocol.unregisterClass(PlaybackURLProtocol.self)
/host/spi-builder-workspace/Sources/Replay/Traits.swift:123:29: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
121 | _ = URLProtocol.registerClass(PlaybackURLProtocol.self)
122 | defer {
123 | URLProtocol.unregisterClass(PlaybackURLProtocol.self)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
124 | }
125 |
[29/144] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/Replay/HAR.swift:873:34: error: cannot find type 'URLRequest' in scope
871 | /// - Parameter urlRequest: The request to convert.
872 | /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
873 | public init(from urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
874 | guard let url = urlRequest.url else {
875 | throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:837:18: error: cannot find type 'URLRequest' in scope
835 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
836 | public init(
837 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
838 | response: HTTPURLResponse,
839 | data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:838:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
836 | public init(
837 | request: URLRequest,
838 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
839 | data: Data,
840 | 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:945:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
943 | /// - httpResponse: The response to convert.
944 | /// - data: The response body data.
945 | 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.
946 | self.status = httpResponse.statusCode
947 | 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:999:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
997 | extension HAR.Entry {
998 | /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
999 | public func toURLResponse() throws -> (HTTPURLResponse, Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1000 | guard let url = URL(string: request.url) else {
1001 | 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/HAR.swift:919:64: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
917 | .split(separator: ";")
918 | .compactMap { pair in
919 | let trimmed = pair.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
920 | let parts = trimmed.split(separator: "=", maxSplits: 1)
921 | guard parts.count == 2 else { return nil }
/host/spi-builder-workspace/Sources/Replay/HAR.swift:946:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
944 | /// - data: The response body data.
945 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
946 | self.status = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
947 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
948 | self.httpVersion = "HTTP/1.1"
/host/spi-builder-workspace/Sources/Replay/HAR.swift:947:43: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
945 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
946 | self.status = httpResponse.statusCode
947 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
948 | self.httpVersion = "HTTP/1.1"
949 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:947:87: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
945 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
946 | self.status = httpResponse.statusCode
947 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
948 | self.httpVersion = "HTTP/1.1"
949 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:950:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
948 | self.httpVersion = "HTTP/1.1"
949 |
950 | self.headers = httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
951 | .sorted { String(describing: $0.key) < String(describing: $1.key) }
952 | .map { key, value in
/host/spi-builder-workspace/Sources/Replay/HAR.swift:956:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
954 | }
955 |
956 | let mimeType = httpResponse.mimeType ?? "application/octet-stream"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
957 | let utf8Text = String(data: data, encoding: .utf8)
958 | let encoding = utf8Text == nil && !data.isEmpty ? "base64" : nil
/host/spi-builder-workspace/Sources/Replay/HAR.swift:968:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
966 | )
967 |
968 | if let url = httpResponse.url {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
969 | var headerFields: [String: String] = [:]
970 | for (key, value) in httpResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/Replay/HAR.swift:970:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
968 | if let url = httpResponse.url {
969 | var headerFields: [String: String] = [:]
970 | for (key, value) in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
971 | headerFields[String(describing: key)] = String(describing: value)
972 | }
/host/spi-builder-workspace/Sources/Replay/HAR.swift:974:38: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
972 | }
973 |
974 | let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
975 | self.cookies = cookies.map { cookie in
976 | HAR.Cookie(
/host/spi-builder-workspace/Sources/Replay/HAR.swift:1010:32: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1008 |
1009 | guard
1010 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1011 | url: url,
1012 | statusCode: response.status,
[30/144] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/Replay/HAR.swift:873:34: error: cannot find type 'URLRequest' in scope
871 | /// - Parameter urlRequest: The request to convert.
872 | /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
873 | public init(from urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
874 | guard let url = urlRequest.url else {
875 | throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:837:18: error: cannot find type 'URLRequest' in scope
835 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
836 | public init(
837 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
838 | response: HTTPURLResponse,
839 | data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:838:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
836 | public init(
837 | request: URLRequest,
838 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
839 | data: Data,
840 | 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:945:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
943 | /// - httpResponse: The response to convert.
944 | /// - data: The response body data.
945 | 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.
946 | self.status = httpResponse.statusCode
947 | 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:999:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
997 | extension HAR.Entry {
998 | /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
999 | public func toURLResponse() throws -> (HTTPURLResponse, Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1000 | guard let url = URL(string: request.url) else {
1001 | 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/HAR.swift:919:64: error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
917 | .split(separator: ";")
918 | .compactMap { pair in
919 | let trimmed = pair.trimmingCharacters(in: .whitespacesAndNewlines)
| `- error: cannot infer contextual base in reference to member 'whitespacesAndNewlines'
920 | let parts = trimmed.split(separator: "=", maxSplits: 1)
921 | guard parts.count == 2 else { return nil }
/host/spi-builder-workspace/Sources/Replay/HAR.swift:946:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
944 | /// - data: The response body data.
945 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
946 | self.status = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
947 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
948 | self.httpVersion = "HTTP/1.1"
/host/spi-builder-workspace/Sources/Replay/HAR.swift:947:43: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
945 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
946 | self.status = httpResponse.statusCode
947 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
948 | self.httpVersion = "HTTP/1.1"
949 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:947:87: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
945 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
946 | self.status = httpResponse.statusCode
947 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
948 | self.httpVersion = "HTTP/1.1"
949 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:950:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
948 | self.httpVersion = "HTTP/1.1"
949 |
950 | self.headers = httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
951 | .sorted { String(describing: $0.key) < String(describing: $1.key) }
952 | .map { key, value in
/host/spi-builder-workspace/Sources/Replay/HAR.swift:956:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
954 | }
955 |
956 | let mimeType = httpResponse.mimeType ?? "application/octet-stream"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
957 | let utf8Text = String(data: data, encoding: .utf8)
958 | let encoding = utf8Text == nil && !data.isEmpty ? "base64" : nil
/host/spi-builder-workspace/Sources/Replay/HAR.swift:968:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
966 | )
967 |
968 | if let url = httpResponse.url {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
969 | var headerFields: [String: String] = [:]
970 | for (key, value) in httpResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/Replay/HAR.swift:970:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
968 | if let url = httpResponse.url {
969 | var headerFields: [String: String] = [:]
970 | for (key, value) in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
971 | headerFields[String(describing: key)] = String(describing: value)
972 | }
/host/spi-builder-workspace/Sources/Replay/HAR.swift:974:38: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
972 | }
973 |
974 | let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
975 | self.cookies = cookies.map { cookie in
976 | HAR.Cookie(
/host/spi-builder-workspace/Sources/Replay/HAR.swift:1010:32: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1008 |
1009 | guard
1010 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1011 | url: url,
1012 | statusCode: response.status,
[31/144] Compiling Replay Stub.swift
[32/144] Compiling Replay Replay.swift
/host/spi-builder-workspace/Sources/Replay/Replay.swift:79:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | /// This is a convenience for tests and tools that want a session without
78 | /// manually configuring `URLSessionConfiguration`.
79 | public static var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | let config = URLSessionConfiguration.ephemeral
81 | configure(config)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:96:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | /// Configure a `URLSessionConfiguration` with `PlaybackURLProtocol`
95 | /// inserted at highest priority.
96 | public static func configure(_ configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | var protocols = configuration.protocolClasses ?? []
98 | if !protocols.contains(where: { $0 == PlaybackURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:15: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | ) -> URLSessionConfiguration {
108 | let config = base
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:107:10: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
107 | ) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | let config = base
109 | configure(config)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
107 | ) -> URLSessionConfiguration {
108 | let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: error: value of type '_' expected to be instance of class or class-constrained type
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
107 | ) -> URLSessionConfiguration {
108 | let config = base
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// Create a `URLSession` with Replay pre-configured.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | ) -> URLSession {
117 | let config = self.configuration(base: configuration)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:116:10: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
116 | ) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | let config = self.configuration(base: configuration)
118 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
113 | /// Create a `URLSession` with Replay pre-configured.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 | ) -> URLSession {
117 | let config = self.configuration(base: configuration)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:115:51: error: value of type '_' expected to be instance of class or class-constrained type
113 | /// Create a `URLSession` with Replay pre-configured.
114 | public static func makeSession(
115 | configuration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
116 | ) -> URLSession {
117 | let config = self.configuration(base: configuration)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:80:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
78 | /// manually configuring `URLSessionConfiguration`.
79 | public static var session: URLSession {
80 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
81 | configure(config)
82 |
/host/spi-builder-workspace/Sources/Replay/Replay.swift:91:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
89 | }
90 |
91 | return URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
92 | }
93 |
/host/spi-builder-workspace/Sources/Replay/Replay.swift:97:39: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
95 | /// inserted at highest priority.
96 | public static func configure(_ configuration: URLSessionConfiguration) {
97 | var protocols = configuration.protocolClasses ?? []
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
98 | if !protocols.contains(where: { $0 == PlaybackURLProtocol.self }) {
99 | protocols.insert(PlaybackURLProtocol.self, at: 0)
/host/spi-builder-workspace/Sources/Replay/Replay.swift:101:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
99 | protocols.insert(PlaybackURLProtocol.self, at: 0)
100 | }
101 | configuration.protocolClasses = protocols
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
102 | }
103 |
/host/spi-builder-workspace/Sources/Replay/Replay.swift:121:34: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
119 | if let store = ReplayContext.playbackStore {
120 | let key = PlaybackStoreRegistry.key(for: store)
121 | var headers = config.httpAdditionalHeaders ?? [:]
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
122 | headers[ReplayProtocolContext.headerName] = key
123 | config.httpAdditionalHeaders = headers
/host/spi-builder-workspace/Sources/Replay/Replay.swift:123:20: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
121 | var headers = config.httpAdditionalHeaders ?? [:]
122 | headers[ReplayProtocolContext.headerName] = key
123 | config.httpAdditionalHeaders = headers
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
124 | }
125 |
/host/spi-builder-workspace/Sources/Replay/Replay.swift:126:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
124 | }
125 |
126 | return URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
127 | }
128 | }
BUILD FAILURE 6.3 wasm