Build Information
Failed to build Replay, reference main (421787), with Swift 6.3 for Wasm on 13 Oct 2026 11:58:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
954 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
955 | self.httpVersion = "HTTP/1.1"
956 |
/host/spi-builder-workspace/Sources/Replay/HAR.swift:957:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
955 | self.httpVersion = "HTTP/1.1"
956 |
957 | self.headers = httpResponse.allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
958 | .sorted { String(describing: $0.key) < String(describing: $1.key) }
959 | .map { key, value in
/host/spi-builder-workspace/Sources/Replay/HAR.swift:963:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
961 | }
962 |
963 | let mimeType = httpResponse.mimeType ?? "application/octet-stream"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
964 | let utf8Text = String(data: data, encoding: .utf8)
965 | let encoding = utf8Text == nil && !data.isEmpty ? "base64" : nil
/host/spi-builder-workspace/Sources/Replay/HAR.swift:975:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
973 | )
974 |
975 | if let url = httpResponse.url {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
976 | var headerFields: [String: String] = [:]
977 | for (key, value) in httpResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/Replay/HAR.swift:977:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
975 | if let url = httpResponse.url {
976 | var headerFields: [String: String] = [:]
977 | for (key, value) in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
978 | headerFields[String(describing: key)] = String(describing: value)
979 | }
/host/spi-builder-workspace/Sources/Replay/HAR.swift:981:38: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
979 | }
980 |
981 | let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
982 | self.cookies = cookies.map { cookie in
983 | HAR.Cookie(
/host/spi-builder-workspace/Sources/Replay/HAR.swift:1017:32: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1015 |
1016 | guard
1017 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1018 | url: url,
1019 | statusCode: response.status,
[21/98] Compiling ArgumentParser ParentCommand.swift
[22/98] Compiling ArgumentParser AsyncParsableCommand.swift
[23/98] Compiling ArgumentParser CommandConfiguration.swift
[24/98] Compiling ArgumentParser CommandGroup.swift
[25/98] Compiling ArgumentParser EnumerableFlag.swift
[26/98] Compiling ArgumentParser ExpressibleByArgument.swift
[27/98] Compiling ArgumentParser ParsableArguments.swift
[28/138] Wrapping AST for ArgumentParserToolInfo for debugging
[30/151] 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: 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: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:175:44: error: cannot find type 'URLRequest' in scope
173 | }
174 |
175 | private func requestDescription(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
176 | let method = request.httpMethod ?? "GET"
177 | let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:190:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | private static let handledKey = "ReplayPlaybackHandled"
189 | private var streamTask: Task<Void, Never>?
190 | private var urlSessionTask: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:192:54: error: cannot find type 'URLRequest' in scope
190 | private var urlSessionTask: URLSessionTask?
191 |
192 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
193 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
194 | return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:77: error: cannot find type 'URLRequest' in scope
197 | }
198 |
199 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
200 | request
201 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:62: error: cannot find type 'URLRequest' in scope
197 | }
198 |
199 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
200 | request
201 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:203:26: error: method does not override any method from its superclass
201 | }
202 |
203 | public override func startLoading() {
| `- error: method does not override any method from its superclass
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:389:26: error: method does not override any method from its superclass
387 | }
388 |
389 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
390 | urlSessionTask?.cancel()
391 | urlSessionTask = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:187:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 | /// For network requests (live/passthrough mode), responses are streamed incrementally,
186 | /// enabling support for Server-Sent Events and other streaming protocols.
187 | public final class PlaybackURLProtocol: URLProtocol, @unchecked Sendable {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | private static let handledKey = "ReplayPlaybackHandled"
189 | private var streamTask: Task<Void, Never>?
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:400:42: error: cannot find type 'URLSessionDataDelegate' in scope
398 |
399 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
400 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
401 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
402 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:401:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
399 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
400 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
401 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
402 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
403 | // Held weakly because URLProtocol owns the streaming task that owns this delegate.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:416:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | private var _dataStream: AsyncThrowingStream<Data, Error>?
415 |
416 | func waitForResponse() async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 | try await withCheckedThrowingContinuation { continuation in
418 | self.responseContinuation = continuation
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:424:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
425 | ) {
426 | if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:433:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
431 | }
432 |
433 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
434 | dataContinuation?.yield(data)
435 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:433:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
431 | }
432 |
433 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
434 | dataContinuation?.yield(data)
435 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:443:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
441 | _ session: URLSession,
442 | didReceive challenge: URLAuthenticationChallenge,
443 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
444 | ) {
445 | forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:441:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
439 | // forwarded, otherwise trust decisions silently fall back to default handling.
440 | func urlSession(
441 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
442 | didReceive challenge: URLAuthenticationChallenge,
443 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:442:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 | func urlSession(
441 | _ session: URLSession,
442 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
444 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:452:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
450 | task: URLSessionTask,
451 | didReceive challenge: URLAuthenticationChallenge,
452 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
453 | ) {
454 | forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:449:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
447 |
448 | func urlSession(
449 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
450 | task: URLSessionTask,
451 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:450:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
448 | func urlSession(
449 | _ session: URLSession,
450 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
451 | didReceive challenge: URLAuthenticationChallenge,
452 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:451:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
449 | _ session: URLSession,
450 | task: URLSessionTask,
451 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
452 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
453 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:459:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
457 | private func forward(
458 | _ challenge: URLAuthenticationChallenge,
459 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
460 | ) {
461 | guard let urlProtocol, let client = urlProtocol.client else {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:458:22: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
456 |
457 | private func forward(
458 | _ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
459 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
460 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
478 | }
479 |
480 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
481 | if let error = error {
482 | responseContinuation?.resume(throwing: error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
478 | }
479 |
480 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
481 | if let error = error {
482 | responseContinuation?.resume(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:496:51: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
494 | private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
495 |
496 | init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
497 | self.completionHandler = completionHandler
498 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:492:59: error: cannot find type 'URLAuthenticationChallengeSender' in scope
490 |
491 | /// Bridges URLProtocolClient challenge decisions back into URLSession's challenge completion handler.
492 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
| `- error: cannot find type 'URLAuthenticationChallengeSender' in scope
493 | private let lock = NSLock()
494 | private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:494:49: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
492 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
493 | private let lock = NSLock()
494 | private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
495 |
496 | init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
498 | }
499 |
500 | func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 | complete(.useCredential, credential)
502 | }
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
498 | }
499 |
500 | func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 | complete(.useCredential, credential)
502 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:504:51: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
502 | }
503 |
504 | func continueWithoutCredential(for challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
505 | // "Continue without a credential" maps to URLSession's default handling,
506 | // not to `.useCredential` with a nil credential.
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:510:30: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
508 | }
509 |
510 | func cancel(_ challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
511 | complete(.cancelAuthenticationChallenge, nil)
512 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:514:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | }
513 |
514 | func performDefaultHandling(for challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | complete(.performDefaultHandling, nil)
516 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:518:59: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | complete(.rejectProtectionSpace, nil)
520 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:53: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
520 | }
521 |
522 | private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
523 | // A challenge sender may receive more than one callback from a defensive client;
524 | // URLSession completion handlers must only be invoked once.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:93: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 | }
521 |
522 | private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 | // A challenge sender may receive more than one callback from a defensive client;
524 | // URLSession completion handlers must only be invoked once.
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
624 | public enum RequestDisposition: Sendable {
625 | /// Use the recorded entry's response.
626 | case recorded(HTTPURLResponse, Data)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
627 | /// No match found; go to the network (with optional recording).
628 | case network(shouldRecord: Bool)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:14: error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
624 | public enum RequestDisposition: Sendable {
625 | /// Use the recorded entry's response.
626 | case recorded(HTTPURLResponse, Data)
| `- error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
627 | /// No match found; go to the network (with optional recording).
628 | case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:640:41: error: cannot find type 'URLRequest' in scope
638 | /// - Parameter request: The request to check.
639 | /// - Returns: A disposition indicating how to handle the request.
640 | public func checkRequest(_ request: URLRequest) throws -> RequestDisposition {
| `- error: cannot find type 'URLRequest' in scope
641 | guard let config = configuration else {
642 | throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:691:18: error: cannot find type 'URLRequest' in scope
689 | /// - duration: How long the request took.
690 | public func recordResponse(
691 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
692 | response: HTTPURLResponse,
693 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:692:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
690 | public func recordResponse(
691 | request: URLRequest,
692 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
693 | data: Data,
694 | duration: TimeInterval,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:42: error: cannot find type 'URLRequest' in scope
751 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
752 | /// and handle network requests with `URLSession.bytes(for:)`.
753 | public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
| `- error: cannot find type 'URLRequest' in scope
754 | switch try checkRequest(request) {
755 | case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
751 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
752 | /// and handle network requests with `URLSession.bytes(for:)`.
753 | public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
754 | switch try checkRequest(request) {
755 | case .recorded(let response, let data):
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift: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:193:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
191 |
192 | public override class func canInit(with request: URLRequest) -> Bool {
193 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
194 | return false
195 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:31: error: cannot find 'request' in scope
202 |
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:42: error: cannot find type 'NSURLRequest' in scope
202 |
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:74: error: cannot find type 'NSMutableURLRequest' in scope
202 |
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:205:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
206 | let markedRequest = mutableRequest as URLRequest
207 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:206:47: error: cannot find type 'URLRequest' in scope
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
| `- error: cannot find type 'URLRequest' in scope
207 |
208 | // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Playback.swift:390:25: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
388 |
389 | public override func stopLoading() {
390 | urlSessionTask?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
391 | urlSessionTask = nil
392 | streamTask?.cancel()
/host/spi-builder-workspace/Sources/Replay/Playback.swift:426:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
426 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
427 | responseContinuation?.resume(returning: httpResponse)
428 | responseContinuation = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:426:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
426 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
427 | responseContinuation?.resume(returning: httpResponse)
428 | 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:430:28: error: cannot infer contextual base in reference to member 'allow'
428 | responseContinuation = nil
429 | }
430 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
431 | }
432 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:461:57: error: value of type 'PlaybackURLProtocol' has no member 'client'
459 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
460 | ) {
461 | guard let urlProtocol, let client = urlProtocol.client else {
| `- error: value of type 'PlaybackURLProtocol' has no member 'client'
462 | completionHandler(.performDefaultHandling, nil)
463 | return
/host/spi-builder-workspace/Sources/Replay/Playback.swift:462:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
460 | ) {
461 | guard let urlProtocol, let client = urlProtocol.client else {
462 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
463 | return
464 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:462:56: error: 'nil' requires a contextual type
460 | ) {
461 | guard let urlProtocol, let client = urlProtocol.client else {
462 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
463 | return
464 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:469:34: error: 'URLAuthenticationChallenge' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
467 | // while URLSession expects a completion handler.
468 | // Rebuild the challenge with a sender that bridges the client's eventual decision back to URLSession.
469 | let forwardedChallenge = URLAuthenticationChallenge(
| `- error: 'URLAuthenticationChallenge' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
470 | protectionSpace: challenge.protectionSpace,
471 | proposedCredential: challenge.proposedCredential,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:470:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
468 | // Rebuild the challenge with a sender that bridges the client's eventual decision back to URLSession.
469 | let forwardedChallenge = URLAuthenticationChallenge(
470 | protectionSpace: challenge.protectionSpace,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
471 | proposedCredential: challenge.proposedCredential,
472 | previousFailureCount: challenge.previousFailureCount,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:471:43: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'proposedCredential'
469 | let forwardedChallenge = URLAuthenticationChallenge(
470 | protectionSpace: challenge.protectionSpace,
471 | proposedCredential: challenge.proposedCredential,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'proposedCredential'
472 | previousFailureCount: challenge.previousFailureCount,
473 | failureResponse: challenge.failureResponse,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:472:45: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
470 | protectionSpace: challenge.protectionSpace,
471 | proposedCredential: challenge.proposedCredential,
472 | previousFailureCount: challenge.previousFailureCount,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'previousFailureCount'
473 | failureResponse: challenge.failureResponse,
474 | error: challenge.error,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:473:40: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'failureResponse'
471 | proposedCredential: challenge.proposedCredential,
472 | previousFailureCount: challenge.previousFailureCount,
473 | failureResponse: challenge.failureResponse,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'failureResponse'
474 | error: challenge.error,
475 | sender: PlaybackChallengeForwarder(completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:474:30: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'error'
472 | previousFailureCount: challenge.previousFailureCount,
473 | failureResponse: challenge.failureResponse,
474 | error: challenge.error,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'error'
475 | sender: PlaybackChallengeForwarder(completionHandler: completionHandler)
476 | )
/host/spi-builder-workspace/Sources/Replay/Playback.swift:501:19: error: cannot infer contextual base in reference to member 'useCredential'
499 |
500 | func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
501 | complete(.useCredential, credential)
| `- error: cannot infer contextual base in reference to member 'useCredential'
502 | }
503 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:507:19: error: cannot infer contextual base in reference to member 'performDefaultHandling'
505 | // "Continue without a credential" maps to URLSession's default handling,
506 | // not to `.useCredential` with a nil credential.
507 | complete(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
508 | }
509 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:507:43: error: 'nil' requires a contextual type
505 | // "Continue without a credential" maps to URLSession's default handling,
506 | // not to `.useCredential` with a nil credential.
507 | complete(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
508 | }
509 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:511:19: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
509 |
510 | func cancel(_ challenge: URLAuthenticationChallenge) {
511 | complete(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
512 | }
513 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:511:50: error: 'nil' requires a contextual type
509 |
510 | func cancel(_ challenge: URLAuthenticationChallenge) {
511 | complete(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
512 | }
513 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:515:19: error: cannot infer contextual base in reference to member 'performDefaultHandling'
513 |
514 | func performDefaultHandling(for challenge: URLAuthenticationChallenge) {
515 | complete(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
516 | }
517 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:515:43: error: 'nil' requires a contextual type
513 |
514 | func performDefaultHandling(for challenge: URLAuthenticationChallenge) {
515 | complete(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
516 | }
517 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:519:19: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
517 |
518 | func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge) {
519 | complete(.rejectProtectionSpace, nil)
| `- error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
520 | }
521 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:519:42: error: 'nil' requires a contextual type
517 |
518 | func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge) {
519 | complete(.rejectProtectionSpace, nil)
| `- error: 'nil' requires a contextual type
520 | }
521 |
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:151:41: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
152 | firstMatch(for: request, in: entries, filters: [])
153 | }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:155:34: error: cannot find type 'URLRequest' in scope
153 | }
154 |
155 | func firstMatch(for request: URLRequest, in entries: [HAR.Entry], filters: [Filter]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
156 | for entry in entries {
157 | guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:647:41: error: referencing instance method 'firstMatch(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
645 | // `.live` ignores any recorded entries and always hits the network.
646 | if effectivePlaybackMode != .live,
647 | let entry = config.matchers.firstMatch(for: request, in: entries, filters: config.filters)
| `- error: referencing instance method 'firstMatch(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
648 | {
649 | 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/Playback.swift:647:51: error: extra arguments at positions #1, #2, #3 in call
645 | // `.live` ignores any recorded entries and always hits the network.
646 | if effectivePlaybackMode != .live,
647 | let entry = config.matchers.firstMatch(for: request, in: entries, filters: config.filters)
| `- error: extra arguments at positions #1, #2, #3 in call
648 | {
649 | 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:647:52: error: missing argument for parameter 'of' in call
645 | // `.live` ignores any recorded entries and always hits the network.
646 | if effectivePlaybackMode != .live,
647 | let entry = config.matchers.firstMatch(for: request, in: entries, filters: config.filters)
| `- error: missing argument for parameter 'of' in call
648 | {
649 | 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/HAR.swift:844:18: error: cannot find type 'URLRequest' in scope
842 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
843 | public init(
844 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
845 | response: HTTPURLResponse,
846 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:701:34: error: extra arguments at positions #3, #4, #5 in call
699 | }
700 |
701 | var entry = try HAR.Entry(
| `- error: extra arguments at positions #3, #4, #5 in call
702 | request: request,
703 | 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:701:34: error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
699 | }
700 |
701 | var entry = try HAR.Entry(
| `- error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
702 | request: request,
703 | 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:703:23: error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
701 | var entry = try HAR.Entry(
702 | request: request,
703 | response: response,
| `- error: cannot convert value of type 'HTTPURLResponse' (aka 'AnyObject') to expected argument type 'HAR.Response'
704 | data: data,
705 | startTime: startTime,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:761:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
759 | case .network(let shouldRecord):
760 | let startTime = Date()
761 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
762 | guard let httpResponse = response as? HTTPURLResponse else {
763 | throw ReplayError.invalidResponse
/host/spi-builder-workspace/Sources/Replay/Playback.swift:799:23: error: cannot find 'URLRequest' in scope
797 |
798 | private func makeEntry(from stub: Stub) throws -> HAR.Entry {
799 | var request = URLRequest(url: stub.url)
| `- error: cannot find 'URLRequest' in scope
800 | request.httpMethod = stub.method.rawValue
801 | if !stub.requestHeaders.isEmpty {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:806:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
804 |
805 | guard
806 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
807 | url: stub.url,
808 | statusCode: stub.status,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:816:29: error: extra arguments at positions #3, #4, #5 in call
814 | }
815 |
816 | return try HAR.Entry(
| `- error: extra arguments at positions #3, #4, #5 in call
817 | request: request,
818 | 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:816:29: error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
814 | }
815 |
816 | return try HAR.Entry(
| `- error: missing arguments for parameters 'startedDateTime', 'time', 'timings' in call
817 | request: request,
818 | 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,
[31/151] Compiling Replay Matcher.swift
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:39: error: cannot find type 'URLRequest' in scope
53 | /// Escape hatch for custom matching logic.
54 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:64: error: cannot find type 'URLRequest' in scope
53 | /// Escape hatch for custom matching logic.
54 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:26: error: cannot find type 'URLRequest' in scope
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
58 | switch self {
59 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:51: error: cannot find type 'URLRequest' in scope
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
58 | switch self {
59 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:141:36: error: cannot find type 'URLRequest' in scope
139 | ///
140 | /// This is used by capture as an opt-in filter.
141 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
142 | for matcher in self {
143 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:151:41: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
152 | firstMatch(for: request, in: entries, filters: [])
153 | }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:155:34: error: cannot find type 'URLRequest' in scope
153 | }
154 |
155 | func firstMatch(for request: URLRequest, in entries: [HAR.Entry], filters: [Filter]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
156 | for entry in entries {
157 | guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:20: error: cannot find type 'URLRequest' in scope
180 |
181 | private func matches(
182 | _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
| `- error: cannot find type 'URLRequest' in scope
183 | ) -> Bool {
184 | for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:45: error: cannot find type 'URLRequest' in scope
180 |
181 | private func matches(
182 | _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
| `- error: cannot find type 'URLRequest' in scope
183 | ) -> Bool {
184 | for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:152:9: error: referencing instance method 'firstMatch(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
152 | firstMatch(for: request, in: entries, filters: [])
| `- error: referencing instance method 'firstMatch(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
153 | }
154 |
_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/Matcher.swift:152:19: error: extra arguments at positions #1, #2, #3 in call
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
152 | firstMatch(for: request, in: entries, filters: [])
| `- error: extra arguments at positions #1, #2, #3 in call
153 | }
154 |
_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/Matcher.swift:152:20: error: missing argument for parameter 'of' in call
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
152 | firstMatch(for: request, in: entries, filters: [])
| `- error: missing argument for parameter 'of' in call
153 | }
154 |
_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/Matcher.swift:152:9: error: cannot convert return expression of type 'Regex<(some RegexComponent).RegexOutput>.Match?' to return type 'HAR.Entry?'
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
152 | firstMatch(for: request, in: entries, filters: [])
| |- error: cannot convert return expression of type 'Regex<(some RegexComponent).RegexOutput>.Match?' to return type 'HAR.Entry?'
| `- note: arguments to generic parameter 'Wrapped' ('Regex<(some RegexComponent).RegexOutput>.Match' and 'HAR.Entry') are expected to be equal
153 | }
154 |
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:159:32: error: cannot find 'URLRequest' in scope
157 | guard let entryURL = URL(string: entry.request.url) else { continue }
158 |
159 | var entryRequest = URLRequest(url: entryURL)
| `- error: cannot find 'URLRequest' in scope
160 | entryRequest.httpMethod = entry.request.method
161 | for header in entry.request.headers {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:173:23: error: extra arguments at positions #2, #3, #4 in call
171 | }
172 |
173 | if matches(request, entryRequest, candidateURL: entry.request.url, filters: filters) {
| `- error: extra arguments at positions #2, #3, #4 in call
174 | return entry
175 | }
_StringProcessing.BidirectionalCollection.matches:3:15: note: 'matches(of:)' declared here
1 | protocol BidirectionalCollection {
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]}
| `- note: 'matches(of:)' declared here
4 |
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:173:16: error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
171 | }
172 |
173 | if matches(request, entryRequest, candidateURL: entry.request.url, filters: filters) {
| `- error: cannot convert value of type '[Regex<(some RegexComponent).RegexOutput>.Match]' to expected condition type 'Bool'
174 | return entry
175 | }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:173:16: error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
171 | }
172 |
173 | if matches(request, entryRequest, candidateURL: entry.request.url, filters: filters) {
| `- error: referencing instance method 'matches(of:)' on 'BidirectionalCollection' requires the types 'ArraySlice<Matcher>' and 'Substring' be equivalent
174 | return entry
175 | }
_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]
[32/151] Compiling Replay Replay+HTTPClient.swift
[33/151] 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 |
[34/151] Compiling ArgumentParser Option.swift
[35/151] Compiling ArgumentParser OptionGroup.swift
[36/151] Compiling ArgumentParser ParsableCommand.swift
[37/151] Compiling ArgumentParser ArgumentDecoder.swift
[38/151] Compiling ArgumentParser ArgumentDefinition.swift
[39/151] Compiling ArgumentParser ArgumentSet.swift
[40/151] Compiling ArgumentParser CommandParser.swift
[41/151] Emitting module ArgumentParser
[42/151] 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:141:36: error: cannot find type 'URLRequest' in scope
139 | ///
140 | /// This is used by capture as an opt-in filter.
141 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
142 | for matcher in self {
143 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/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/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/HAR.swift:844:18: error: cannot find type 'URLRequest' in scope
842 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
843 | public init(
844 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
845 | response: HTTPURLResponse,
846 | data: Data,
/host/spi-builder-workspace/Sources/Replay/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,
[43/151] 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:141:36: error: cannot find type 'URLRequest' in scope
139 | ///
140 | /// This is used by capture as an opt-in filter.
141 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
142 | for matcher in self {
143 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/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/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/HAR.swift:844:18: error: cannot find type 'URLRequest' in scope
842 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
843 | public init(
844 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
845 | response: HTTPURLResponse,
846 | data: Data,
/host/spi-builder-workspace/Sources/Replay/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,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/151] 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:880:34: error: cannot find type 'URLRequest' in scope
878 | /// - Parameter urlRequest: The request to convert.
879 | /// - Throws: `ReplayError.invalidRequest` if the request is missing a URL.
880 | public init(from urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
881 | guard let url = urlRequest.url else {
882 | throw ReplayError.invalidRequest("Missing URL")
/host/spi-builder-workspace/Sources/Replay/HAR.swift:844:18: error: cannot find type 'URLRequest' in scope
842 | /// Create an entry from a `URLRequest` and `HTTPURLResponse`.
843 | public init(
844 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
845 | response: HTTPURLResponse,
846 | data: Data,
/host/spi-builder-workspace/Sources/Replay/HAR.swift:845:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
843 | public init(
844 | request: URLRequest,
845 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
846 | data: Data,
847 | startTime: Date,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/HAR.swift:952:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
950 | /// - httpResponse: The response to convert.
951 | /// - data: The response body data.
952 | public init(from httpResponse: HTTPURLResponse, data: Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
953 | self.status = httpResponse.statusCode
954 | self.statusText = HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/HAR.swift:1006:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1004 | extension HAR.Entry {
1005 | /// Convert an entry back into `HTTPURLResponse` and body `Data` for playback.
1006 | public func toURLResponse() throws -> (HTTPURLResponse, Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
1007 | guard let url = URL(string: request.url) else {
1008 | throw ReplayError.invalidURL(request.url)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:39: error: cannot find type 'URLRequest' in scope
53 | /// Escape hatch for custom matching logic.
54 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:55:64: error: cannot find type 'URLRequest' in scope
53 | /// Escape hatch for custom matching logic.
54 | /// Compares an incoming request against a candidate request (typically from a recorded entry).
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:26: error: cannot find type 'URLRequest' in scope
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
58 | switch self {
59 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:57:51: error: cannot find type 'URLRequest' in scope
55 | case custom(@Sendable (_ request: URLRequest, _ candidate: URLRequest) -> Bool)
56 |
57 | func test(_ request: URLRequest, _ candidate: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
58 | switch self {
59 | case .method:
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:141:36: error: cannot find type 'URLRequest' in scope
139 | ///
140 | /// This is used by capture as an opt-in filter.
141 | public func matches(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
142 | for matcher in self {
143 | if !matcher.test(request, request) {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:151:41: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Finds the first entry whose request matches according to all matchers.
151 | public func firstMatch(for request: URLRequest, in entries: [HAR.Entry]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
152 | firstMatch(for: request, in: entries, filters: [])
153 | }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:155:34: error: cannot find type 'URLRequest' in scope
153 | }
154 |
155 | func firstMatch(for request: URLRequest, in entries: [HAR.Entry], filters: [Filter]) -> HAR.Entry? {
| `- error: cannot find type 'URLRequest' in scope
156 | for entry in entries {
157 | guard let entryURL = URL(string: entry.request.url) else { continue }
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:20: error: cannot find type 'URLRequest' in scope
180 |
181 | private func matches(
182 | _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
| `- error: cannot find type 'URLRequest' in scope
183 | ) -> Bool {
184 | for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Matcher.swift:182:45: error: cannot find type 'URLRequest' in scope
180 |
181 | private func matches(
182 | _ request: URLRequest, _ candidate: URLRequest, candidateURL: String, filters: [Filter]
| `- error: cannot find type 'URLRequest' in scope
183 | ) -> Bool {
184 | for matcher in self {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:28: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public static func session(
16 | configuration: PlaybackConfiguration,
17 | baseConfiguration: URLSessionConfiguration = .ephemeral
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | ) async throws -> URLSession {
19 | let config = baseConfiguration
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:18:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | configuration: PlaybackConfiguration,
17 | baseConfiguration: URLSessionConfiguration = .ephemeral
18 | ) async throws -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | let config = baseConfiguration
20 | var protocols = config.protocolClasses ?? []
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:55: error: value of type '_' expected to be instance of class or class-constrained type
15 | public static func session(
16 | configuration: PlaybackConfiguration,
17 | baseConfiguration: URLSessionConfiguration = .ephemeral
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | ) async throws -> URLSession {
19 | let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Playback.swift:17:55: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
15 | public static func session(
16 | configuration: PlaybackConfiguration,
17 | baseConfiguration: URLSessionConfiguration = .ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
18 | ) async throws -> URLSession {
19 | let config = baseConfiguration
/host/spi-builder-workspace/Sources/Replay/Playback.swift:175:44: error: cannot find type 'URLRequest' in scope
173 | }
174 |
175 | private func requestDescription(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
176 | let method = request.httpMethod ?? "GET"
177 | let url = request.url?.absoluteString ?? "<unknown URL>"
/host/spi-builder-workspace/Sources/Replay/Playback.swift:190:33: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | private static let handledKey = "ReplayPlaybackHandled"
189 | private var streamTask: Task<Void, Never>?
190 | private var urlSessionTask: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | public override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:192:54: error: cannot find type 'URLRequest' in scope
190 | private var urlSessionTask: URLSessionTask?
191 |
192 | public override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
193 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
194 | return false
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:77: error: cannot find type 'URLRequest' in scope
197 | }
198 |
199 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
200 | request
201 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:199:62: error: cannot find type 'URLRequest' in scope
197 | }
198 |
199 | public override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
200 | request
201 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:203:26: error: method does not override any method from its superclass
201 | }
202 |
203 | public override func startLoading() {
| `- error: method does not override any method from its superclass
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:389:26: error: method does not override any method from its superclass
387 | }
388 |
389 | public override func stopLoading() {
| `- error: method does not override any method from its superclass
390 | urlSessionTask?.cancel()
391 | urlSessionTask = nil
/host/spi-builder-workspace/Sources/Replay/Playback.swift:187:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 | /// For network requests (live/passthrough mode), responses are streamed incrementally,
186 | /// enabling support for Server-Sent Events and other streaming protocols.
187 | public final class PlaybackURLProtocol: URLProtocol, @unchecked Sendable {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | private static let handledKey = "ReplayPlaybackHandled"
189 | private var streamTask: Task<Void, Never>?
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:400:42: error: cannot find type 'URLSessionDataDelegate' in scope
398 |
399 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
400 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
401 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
402 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:401:59: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
399 | /// A delegate that bridges URLSession callbacks to async streams for SSE support.
400 | final class StreamingDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
401 | private var responseContinuation: CheckedContinuation<HTTPURLResponse, Error>?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
402 | private var dataContinuation: AsyncThrowingStream<Data, Error>.Continuation?
403 | // Held weakly because URLProtocol owns the streaming task that owns this delegate.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:416:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
414 | private var _dataStream: AsyncThrowingStream<Data, Error>?
415 |
416 | func waitForResponse() async throws -> HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
417 | try await withCheckedThrowingContinuation { continuation in
418 | self.responseContinuation = continuation
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:424:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
425 | ) {
426 | if let httpResponse = response as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:423:83: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
421 |
422 | func urlSession(
423 | _ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
424 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
425 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:433:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
431 | }
432 |
433 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
434 | dataContinuation?.yield(data)
435 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:433:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
431 | }
432 |
433 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
434 | dataContinuation?.yield(data)
435 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:443:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
441 | _ session: URLSession,
442 | didReceive challenge: URLAuthenticationChallenge,
443 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
444 | ) {
445 | forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:441:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
439 | // forwarded, otherwise trust decisions silently fall back to default handling.
440 | func urlSession(
441 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
442 | didReceive challenge: URLAuthenticationChallenge,
443 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:442:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 | func urlSession(
441 | _ session: URLSession,
442 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
443 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
444 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:452:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
450 | task: URLSessionTask,
451 | didReceive challenge: URLAuthenticationChallenge,
452 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
453 | ) {
454 | forward(challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:449:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
447 |
448 | func urlSession(
449 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
450 | task: URLSessionTask,
451 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:450:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
448 | func urlSession(
449 | _ session: URLSession,
450 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
451 | didReceive challenge: URLAuthenticationChallenge,
452 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:451:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
449 | _ session: URLSession,
450 | task: URLSessionTask,
451 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
452 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
453 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:459:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
457 | private func forward(
458 | _ challenge: URLAuthenticationChallenge,
459 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
460 | ) {
461 | guard let urlProtocol, let client = urlProtocol.client else {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:458:22: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
456 |
457 | private func forward(
458 | _ challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
459 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
460 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
478 | }
479 |
480 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
481 | if let error = error {
482 | responseContinuation?.resume(throwing: error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:480:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
478 | }
479 |
480 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
481 | if let error = error {
482 | responseContinuation?.resume(throwing: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:496:51: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
494 | private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
495 |
496 | init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
497 | self.completionHandler = completionHandler
498 | }
/host/spi-builder-workspace/Sources/Replay/Playback.swift:492:59: error: cannot find type 'URLAuthenticationChallengeSender' in scope
490 |
491 | /// Bridges URLProtocolClient challenge decisions back into URLSession's challenge completion handler.
492 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
| `- error: cannot find type 'URLAuthenticationChallengeSender' in scope
493 | private let lock = NSLock()
494 | private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
/host/spi-builder-workspace/Sources/Replay/Playback.swift:494:49: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
492 | private final class PlaybackChallengeForwarder: NSObject, URLAuthenticationChallengeSender, @unchecked Sendable {
493 | private let lock = NSLock()
494 | private var completionHandler: ((URLSession.AuthChallengeDisposition, URLCredential?) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
495 |
496 | init(completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
498 | }
499 |
500 | func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 | complete(.useCredential, credential)
502 | }
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:500:58: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
498 | }
499 |
500 | func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
501 | complete(.useCredential, credential)
502 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:504:51: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
502 | }
503 |
504 | func continueWithoutCredential(for challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
505 | // "Continue without a credential" maps to URLSession's default handling,
506 | // not to `.useCredential` with a nil credential.
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:510:30: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
508 | }
509 |
510 | func cancel(_ challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
511 | complete(.cancelAuthenticationChallenge, nil)
512 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:514:48: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
512 | }
513 |
514 | func performDefaultHandling(for challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
515 | complete(.performDefaultHandling, nil)
516 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:518:59: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
516 | }
517 |
518 | func rejectProtectionSpaceAndContinue(with challenge: URLAuthenticationChallenge) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
519 | complete(.rejectProtectionSpace, nil)
520 | }
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:53: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
520 | }
521 |
522 | private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
523 | // A challenge sender may receive more than one callback from a defensive client;
524 | // URLSession completion handlers must only be invoked once.
/host/spi-builder-workspace/Sources/Replay/Playback.swift:522:93: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 | }
521 |
522 | private func complete(_ disposition: URLSession.AuthChallengeDisposition, _ credential: URLCredential?) {
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 | // A challenge sender may receive more than one callback from a defensive client;
524 | // URLSession completion handlers must only be invoked once.
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
624 | public enum RequestDisposition: Sendable {
625 | /// Use the recorded entry's response.
626 | case recorded(HTTPURLResponse, Data)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
627 | /// No match found; go to the network (with optional recording).
628 | case network(shouldRecord: Bool)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:626:14: error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
624 | public enum RequestDisposition: Sendable {
625 | /// Use the recorded entry's response.
626 | case recorded(HTTPURLResponse, Data)
| `- error: associated value 'recorded' of 'Sendable'-conforming enum 'RequestDisposition' contains non-Sendable type 'AnyObject'
627 | /// No match found; go to the network (with optional recording).
628 | case network(shouldRecord: Bool)
/host/spi-builder-workspace/Sources/Replay/Playback.swift:640:41: error: cannot find type 'URLRequest' in scope
638 | /// - Parameter request: The request to check.
639 | /// - Returns: A disposition indicating how to handle the request.
640 | public func checkRequest(_ request: URLRequest) throws -> RequestDisposition {
| `- error: cannot find type 'URLRequest' in scope
641 | guard let config = configuration else {
642 | throw ReplayError.notConfigured
/host/spi-builder-workspace/Sources/Replay/Playback.swift:691:18: error: cannot find type 'URLRequest' in scope
689 | /// - duration: How long the request took.
690 | public func recordResponse(
691 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
692 | response: HTTPURLResponse,
693 | data: Data,
/host/spi-builder-workspace/Sources/Replay/Playback.swift:692:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
690 | public func recordResponse(
691 | request: URLRequest,
692 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
693 | data: Data,
694 | duration: TimeInterval,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:42: error: cannot find type 'URLRequest' in scope
751 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
752 | /// and handle network requests with `URLSession.bytes(for:)`.
753 | public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
| `- error: cannot find type 'URLRequest' in scope
754 | switch try checkRequest(request) {
755 | case .recorded(let response, let data):
/host/spi-builder-workspace/Sources/Replay/Playback.swift:753:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
751 | /// responses like Server-Sent Events. For streaming support, use `checkRequest(_:)`
752 | /// and handle network requests with `URLSession.bytes(for:)`.
753 | public func handleRequest(_ request: URLRequest) async throws -> (HTTPURLResponse, Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
754 | switch try checkRequest(request) {
755 | case .recorded(let response, let data):
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:31: error: cannot find 'request' in scope
202 |
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:42: error: cannot find type 'NSURLRequest' in scope
202 |
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:204:74: error: cannot find type 'NSMutableURLRequest' in scope
202 |
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/Replay/Playback.swift:205:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
203 | public override func startLoading() {
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
206 | let markedRequest = mutableRequest as URLRequest
207 |
/host/spi-builder-workspace/Sources/Replay/Playback.swift:206:47: error: cannot find type 'URLRequest' in scope
204 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
205 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
206 | let markedRequest = mutableRequest as URLRequest
| `- error: cannot find type 'URLRequest' in scope
207 |
208 | // URLProtocol predates Swift concurrency; wrap self to cross isolation boundary
/host/spi-builder-workspace/Sources/Replay/Replay.swift:79:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | /// This is a convenience for tests and tools that want a session without
78 | /// manually configuring `URLSessionConfiguration`.
79 | public static var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | let config = URLSessionConfiguration.ephemeral
81 | configure(config)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:96:51: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | /// Configure a `URLSessionConfiguration` with `PlaybackURLProtocol`
95 | /// inserted at highest priority.
96 | public static func configure(_ configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | var protocols = configuration.protocolClasses ?? []
98 | if !protocols.contains(where: { $0 == PlaybackURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:15: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | /// Create a new `URLSessionConfiguration` with Replay pre-configured.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 | ) -> URLSessionConfiguration {
108 | let config = base
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:107:10: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | public static func configuration(
106 | base: URLSessionConfiguration = .default
107 | ) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | let config = base
109 | configure(config)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Replay/Replay.swift:106:42: error: 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: 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)
[45/151] Compiling Replay Stub.swift
[46/152] Compiling ArgumentParser ParentCommand.swift
[47/152] Compiling ArgumentParser AsyncParsableCommand.swift
[48/152] Compiling ArgumentParser CommandConfiguration.swift
[49/152] Compiling ArgumentParser CommandGroup.swift
[50/152] Compiling ArgumentParser EnumerableFlag.swift
[51/152] Compiling ArgumentParser ExpressibleByArgument.swift
[52/152] 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 | }
[53/152] Compiling Replay Stub.swift
BUILD FAILURE 6.3 wasm