The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VCR, reference main (aee80c), with Swift 6.1 for Android on 30 Oct 2025 18:08:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grdsdev/swift-vcr.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/grdsdev/swift-vcr
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at aee80c9 Add support for binary request bodies via httpBodyStream
Cloned https://github.com/grdsdev/swift-vcr.git
Revision (git rev-parse @):
aee80c9b638cde25bb8cfd47705a37d48f375597
SUCCESS checkout https://github.com/grdsdev/swift-vcr.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/grdsdev/swift-vcr.git
https://github.com/grdsdev/swift-vcr.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "VCR",
  "name" : "VCR",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "VCR",
      "targets" : [
        "VCR"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VCRTests",
      "module_type" : "SwiftTarget",
      "name" : "VCRTests",
      "path" : "Tests/VCRTests",
      "sources" : [
        "VCRTests.swift"
      ],
      "target_dependencies" : [
        "VCR"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VCR",
      "module_type" : "SwiftTarget",
      "name" : "VCR",
      "path" : "Sources/VCR",
      "product_memberships" : [
        "VCR"
      ],
      "sources" : [
        "Cassette.swift",
        "HTTPInteraction.swift",
        "RecordMode.swift",
        "RequestMatcher.swift",
        "VCR.swift",
        "VCRConfiguration.swift",
        "VCRURLProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling VCR RecordMode.swift
[4/10] Compiling VCR VCRURLProtocol.swift
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:5:25: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
  5 |   private var dataTask: URLSessionDataTask?
    |                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
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/VCR/VCRURLProtocol.swift:8:45: error: cannot find type 'URLRequest' in scope
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
  8 |   override class func canInit(with request: URLRequest) -> Bool {
    |                                             `- error: cannot find type 'URLRequest' in scope
  9 |     // Don't intercept our own internal requests
 10 |     if URLProtocol.property(forKey: internalSessionKey, in: request) != nil {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:68: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:53: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:28:17: error: method does not override any method from its superclass
 26 |   }
 27 |
 28 |   override func startLoading() {
    |                 `- error: method does not override any method from its superclass
 29 |     guard let cassette = VCR.shared.currentCassette else {
 30 |       // No cassette inserted, pass through
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:52:17: error: method does not override any method from its superclass
 50 |   }
 51 |
 52 |   override func stopLoading() {
    |                 `- error: method does not override any method from its superclass
 53 |     dataTask?.cancel()
 54 |     dataTask = nil
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:4:29: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  2 |
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
    |                             `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |   private var dataTask: URLSessionDataTask?
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
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/VCR/VCRURLProtocol.swift:10:20: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
  8 |   override class func canInit(with request: URLRequest) -> Bool {
  9 |     // Don't intercept our own internal requests
 10 |     if URLProtocol.property(forKey: internalSessionKey, in: request) != nil {
    |                    `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
 11 |       return false
 12 |     }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:36:56: error: cannot find 'request' in scope
 34 |
 35 |     // Try to find a matching interaction
 36 |     if let interaction = cassette.findInteraction(for: request) {
    |                                                        `- error: cannot find 'request' in scope
 37 |       // Found a match, replay it
 38 |       replayInteraction(interaction)
/host/spi-builder-workspace/Sources/VCR/Cassette.swift:40:37: error: cannot find type 'URLRequest' in scope
 38 |
 39 |   /// Find a matching interaction for the given request
 40 |   func findInteraction(for request: URLRequest) -> HTTPInteraction? {
    |                                     `- error: cannot find type 'URLRequest' in scope
 41 |     let matcher = self.matcher.createMatcher()
 42 |     return _interactions.value.first { interaction in
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:45:17: error: cannot find 'request' in scope
 43 |       // No match and recording not allowed
 44 |       let error = VCRError.noMatchingInteraction(
 45 |         method: request.httpMethod ?? "GET",
    |                 `- error: cannot find 'request' in scope
 46 |         url: request.url?.absoluteString ?? ""
 47 |       )
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:46:14: error: cannot find 'request' in scope
 44 |       let error = VCRError.noMatchingInteraction(
 45 |         method: request.httpMethod ?? "GET",
 46 |         url: request.url?.absoluteString ?? ""
    |              `- error: cannot find 'request' in scope
 47 |       )
 48 |       client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:48:7: error: cannot find 'client' in scope
 46 |         url: request.url?.absoluteString ?? ""
 47 |       )
 48 |       client?.urlProtocol(self, didFailWithError: error)
    |       `- error: cannot find 'client' in scope
 49 |     }
 50 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:53:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 51 |
 52 |   override func stopLoading() {
 53 |     dataTask?.cancel()
    |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 54 |     dataTask = nil
 55 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:59:21: error: cannot find 'request' in scope
 57 |   private func replayInteraction(_ interaction: HTTPInteraction) {
 58 |     // Create response
 59 |     guard let url = request.url else { return }
    |                     `- error: cannot find 'request' in scope
 60 |
 61 |     let httpResponse = HTTPURLResponse(
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:61:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 59 |     guard let url = request.url else { return }
 60 |
 61 |     let httpResponse = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |       url: url,
 63 |       statusCode: interaction.response.statusCode,
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:69:5: error: cannot find 'client' in scope
 67 |
 68 |     // Deliver response to client
 69 |     client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |     `- error: cannot find 'client' in scope
 70 |
 71 |     if let body = interaction.response.body {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:69:78: error: cannot infer contextual base in reference to member 'notAllowed'
 67 |
 68 |     // Deliver response to client
 69 |     client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                              `- error: cannot infer contextual base in reference to member 'notAllowed'
 70 |
 71 |     if let body = interaction.response.body {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:72:7: error: cannot find 'client' in scope
 70 |
 71 |     if let body = interaction.response.body {
 72 |       client?.urlProtocol(self, didLoad: body)
    |       `- error: cannot find 'client' in scope
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:75:5: error: cannot find 'client' in scope
 73 |     }
 74 |
 75 |     client?.urlProtocolDidFinishLoading(self)
    |     `- error: cannot find 'client' in scope
 76 |   }
 77 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:80:27: error: cannot find 'request' in scope
 78 |   private func performRealRequest() {
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                           `- error: cannot find 'request' in scope
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:80:38: error: cannot find type 'NSURLRequest' in scope
 78 |   private func performRealRequest() {
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                                      `- error: cannot find type 'NSURLRequest' in scope
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:80:70: error: cannot find type 'NSMutableURLRequest' in scope
 78 |   private func performRealRequest() {
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                                                                      `- error: cannot find type 'NSMutableURLRequest' in scope
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:81:17: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
    |                 `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 82 |     let internalRequest = mutableRequest as URLRequest
 83 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:82:45: error: cannot find type 'URLRequest' in scope
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     // Create a session that won't be intercepted
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:85:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 83 |
 84 |     // Create a session that won't be intercepted
 85 |     let config = URLSessionConfiguration.ephemeral
    |                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 86 |     config.protocolClasses = []
 87 |     let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:87:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 85 |     let config = URLSessionConfiguration.ephemeral
 86 |     config.protocolClasses = []
 87 |     let session = URLSession(configuration: config)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:89:70: error: cannot infer type of closure parameter 'data' without a type annotation
 87 |     let session = URLSession(configuration: config)
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
    |                                                                      `- error: cannot infer type of closure parameter 'data' without a type annotation
 90 |       guard let self else { return }
 91 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:89:76: error: cannot infer type of closure parameter 'response' without a type annotation
 87 |     let session = URLSession(configuration: config)
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
    |                                                                            `- error: cannot infer type of closure parameter 'response' without a type annotation
 90 |       guard let self else { return }
 91 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:89:86: error: cannot infer type of closure parameter 'error' without a type annotation
 87 |     let session = URLSession(configuration: config)
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
    |                                                                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
 90 |       guard let self else { return }
 91 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:93:14: error: value of type 'VCRURLProtocol' has no member 'client'
 91 |
 92 |       if let error = error {
 93 |         self.client?.urlProtocol(self, didFailWithError: error)
    |              `- error: value of type 'VCRURLProtocol' has no member 'client'
 94 |         return
 95 |       }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:124:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
122 |     }
123 |
124 |     dataTask?.resume()
    |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
125 |   }
126 | }
[5/10] Compiling VCR Cassette.swift
/host/spi-builder-workspace/Sources/VCR/Cassette.swift:40:37: error: cannot find type 'URLRequest' in scope
 38 |
 39 |   /// Find a matching interaction for the given request
 40 |   func findInteraction(for request: URLRequest) -> HTTPInteraction? {
    |                                     `- error: cannot find type 'URLRequest' in scope
 41 |     let matcher = self.matcher.createMatcher()
 42 |     return _interactions.value.first { interaction in
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:5:27: error: cannot find type 'URLRequest' in scope
 3 | /// Protocol for matching HTTP requests
 4 | public protocol RequestMatcher: Sendable {
 5 |   func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
[6/10] Compiling VCR VCRConfiguration.swift
[7/10] Compiling VCR VCR.swift
/host/spi-builder-workspace/Sources/VCR/VCR.swift:220:20: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |   ) -> URLSession {
222 |     let config = 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/VCR/VCR.swift:221:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
221 |   ) -> URLSession {
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |     let config = configuration
223 |     var protocolClasses = 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/VCR/VCR.swift:220:47: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                                               `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
221 |   ) -> URLSession {
222 |     let config = configuration
/host/spi-builder-workspace/Sources/VCR/VCR.swift:171:17: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
169 |     guard !_isRegistered else { return }
170 |     // Register with the global URLProtocol system
171 |     URLProtocol.registerClass(VCRURLProtocol.self)
    |                 `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
172 |
173 |     // Also modify the default session configuration
/host/spi-builder-workspace/Sources/VCR/VCR.swift:175:29: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
173 |     // Also modify the default session configuration
174 |     // Note: This only affects new URLSessions, not URLSession.shared
175 |     URLSessionConfiguration.default.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
    |                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
176 |     URLSessionConfiguration.ephemeral.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
177 |
/host/spi-builder-workspace/Sources/VCR/VCR.swift:176:29: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
174 |     // Note: This only affects new URLSessions, not URLSession.shared
175 |     URLSessionConfiguration.default.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
176 |     URLSessionConfiguration.ephemeral.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
    |                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
177 |
178 |     _isRegistered = true
/host/spi-builder-workspace/Sources/VCR/VCR.swift:223:34: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
221 |   ) -> URLSession {
222 |     let config = configuration
223 |     var protocolClasses = config.protocolClasses ?? []
    |                                  `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
224 |     protocolClasses.insert(VCRURLProtocol.self, at: 0)
225 |     config.protocolClasses = protocolClasses
/host/spi-builder-workspace/Sources/VCR/VCR.swift:225:12: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
223 |     var protocolClasses = config.protocolClasses ?? []
224 |     protocolClasses.insert(VCRURLProtocol.self, at: 0)
225 |     config.protocolClasses = protocolClasses
    |            `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
226 |     return URLSession(configuration: config)
227 |   }
/host/spi-builder-workspace/Sources/VCR/VCR.swift:226:12: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
224 |     protocolClasses.insert(VCRURLProtocol.self, at: 0)
225 |     config.protocolClasses = protocolClasses
226 |     return URLSession(configuration: config)
    |            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
227 |   }
228 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Emitting module VCR
/host/spi-builder-workspace/Sources/VCR/Cassette.swift:40:37: error: cannot find type 'URLRequest' in scope
 38 |
 39 |   /// Find a matching interaction for the given request
 40 |   func findInteraction(for request: URLRequest) -> HTTPInteraction? {
    |                                     `- error: cannot find type 'URLRequest' in scope
 41 |     let matcher = self.matcher.createMatcher()
 42 |     return _interactions.value.first { interaction in
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:5:27: error: cannot find type 'URLRequest' in scope
 3 | /// Protocol for matching HTTP requests
 4 | public protocol RequestMatcher: Sendable {
 5 |   func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:17:25: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   init(from urlRequest: URLRequest) {
   |                         `- error: cannot find type 'URLRequest' in scope
18 |     self.method = urlRequest.httpMethod ?? "GET"
19 |     self.url = urlRequest.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:37:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |   }
36 |
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     self.statusCode = httpResponse.statusCode
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
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/VCR/HTTPInteraction.swift:61:11: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
62 |   fileprivate var data: Data? {
63 |     httpBody ?? httpBodyStream.map { Data(reading: $0, withBufferSize: 1024) }
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:12:34: error: cannot find type 'URLRequest' in scope
10 |   public init() {}
11 |
12 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |     let method = request.httpMethod ?? "GET"
14 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:23:34: error: cannot find type 'URLRequest' in scope
21 |   public init() {}
22 |
23 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |     let method = request.httpMethod ?? "GET"
25 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 |   }
45 |
46 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
47 |     let method = request.httpMethod ?? "GET"
48 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:74:34: error: cannot find type 'URLRequest' in scope
72 |   }
73 |
74 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
75 |     matchers.allSatisfy { $0.matches(request, recorded: recorded) }
76 |   }
/host/spi-builder-workspace/Sources/VCR/VCR.swift:220:20: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |   ) -> URLSession {
222 |     let config = 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/VCR/VCR.swift:221:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
221 |   ) -> URLSession {
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |     let config = configuration
223 |     var protocolClasses = 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/VCR/VCR.swift:220:47: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                                               `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
221 |   ) -> URLSession {
222 |     let config = configuration
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:5:25: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
  5 |   private var dataTask: URLSessionDataTask?
    |                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
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/VCR/VCRURLProtocol.swift:8:45: error: cannot find type 'URLRequest' in scope
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
  8 |   override class func canInit(with request: URLRequest) -> Bool {
    |                                             `- error: cannot find type 'URLRequest' in scope
  9 |     // Don't intercept our own internal requests
 10 |     if URLProtocol.property(forKey: internalSessionKey, in: request) != nil {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:68: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:53: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:28:17: error: method does not override any method from its superclass
 26 |   }
 27 |
 28 |   override func startLoading() {
    |                 `- error: method does not override any method from its superclass
 29 |     guard let cassette = VCR.shared.currentCassette else {
 30 |       // No cassette inserted, pass through
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:52:17: error: method does not override any method from its superclass
 50 |   }
 51 |
 52 |   override func stopLoading() {
    |                 `- error: method does not override any method from its superclass
 53 |     dataTask?.cancel()
 54 |     dataTask = nil
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:4:29: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  2 |
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
    |                             `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |   private var dataTask: URLSessionDataTask?
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
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
[9/10] Compiling VCR HTTPInteraction.swift
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:17:25: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   init(from urlRequest: URLRequest) {
   |                         `- error: cannot find type 'URLRequest' in scope
18 |     self.method = urlRequest.httpMethod ?? "GET"
19 |     self.url = urlRequest.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:37:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |   }
36 |
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     self.statusCode = httpResponse.statusCode
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
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/VCR/HTTPInteraction.swift:61:11: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
62 |   fileprivate var data: Data? {
63 |     httpBody ?? httpBodyStream.map { Data(reading: $0, withBufferSize: 1024) }
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:38:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
38 |     self.statusCode = httpResponse.statusCode
   |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
40 |       if let key = pair.key as? String, let value = pair.value as? String {
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:39:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
38 |     self.statusCode = httpResponse.statusCode
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
   |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
40 |       if let key = pair.key as? String, let value = pair.value as? String {
41 |         result[key] = value
[10/10] Compiling VCR RequestMatcher.swift
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:5:27: error: cannot find type 'URLRequest' in scope
 3 | /// Protocol for matching HTTP requests
 4 | public protocol RequestMatcher: Sendable {
 5 |   func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:12:34: error: cannot find type 'URLRequest' in scope
10 |   public init() {}
11 |
12 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |     let method = request.httpMethod ?? "GET"
14 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:23:34: error: cannot find type 'URLRequest' in scope
21 |   public init() {}
22 |
23 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |     let method = request.httpMethod ?? "GET"
25 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 |   }
45 |
46 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
47 |     let method = request.httpMethod ?? "GET"
48 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:74:34: error: cannot find type 'URLRequest' in scope
72 |   }
73 |
74 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
75 |     matchers.allSatisfy { $0.matches(request, recorded: recorded) }
76 |   }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling VCR RecordMode.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Emitting module VCR
/host/spi-builder-workspace/Sources/VCR/Cassette.swift:40:37: error: cannot find type 'URLRequest' in scope
 38 |
 39 |   /// Find a matching interaction for the given request
 40 |   func findInteraction(for request: URLRequest) -> HTTPInteraction? {
    |                                     `- error: cannot find type 'URLRequest' in scope
 41 |     let matcher = self.matcher.createMatcher()
 42 |     return _interactions.value.first { interaction in
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:5:27: error: cannot find type 'URLRequest' in scope
 3 | /// Protocol for matching HTTP requests
 4 | public protocol RequestMatcher: Sendable {
 5 |   func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:17:25: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   init(from urlRequest: URLRequest) {
   |                         `- error: cannot find type 'URLRequest' in scope
18 |     self.method = urlRequest.httpMethod ?? "GET"
19 |     self.url = urlRequest.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:37:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |   }
36 |
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     self.statusCode = httpResponse.statusCode
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
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/VCR/HTTPInteraction.swift:61:11: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
62 |   fileprivate var data: Data? {
63 |     httpBody ?? httpBodyStream.map { Data(reading: $0, withBufferSize: 1024) }
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:12:34: error: cannot find type 'URLRequest' in scope
10 |   public init() {}
11 |
12 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |     let method = request.httpMethod ?? "GET"
14 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:23:34: error: cannot find type 'URLRequest' in scope
21 |   public init() {}
22 |
23 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |     let method = request.httpMethod ?? "GET"
25 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 |   }
45 |
46 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
47 |     let method = request.httpMethod ?? "GET"
48 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:74:34: error: cannot find type 'URLRequest' in scope
72 |   }
73 |
74 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
75 |     matchers.allSatisfy { $0.matches(request, recorded: recorded) }
76 |   }
/host/spi-builder-workspace/Sources/VCR/VCR.swift:220:20: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |   ) -> URLSession {
222 |     let config = 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/VCR/VCR.swift:221:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
221 |   ) -> URLSession {
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |     let config = configuration
223 |     var protocolClasses = 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/VCR/VCR.swift:220:47: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                                               `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
221 |   ) -> URLSession {
222 |     let config = configuration
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:5:25: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
  5 |   private var dataTask: URLSessionDataTask?
    |                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
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/VCR/VCRURLProtocol.swift:8:45: error: cannot find type 'URLRequest' in scope
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
  8 |   override class func canInit(with request: URLRequest) -> Bool {
    |                                             `- error: cannot find type 'URLRequest' in scope
  9 |     // Don't intercept our own internal requests
 10 |     if URLProtocol.property(forKey: internalSessionKey, in: request) != nil {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:68: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:53: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:28:17: error: method does not override any method from its superclass
 26 |   }
 27 |
 28 |   override func startLoading() {
    |                 `- error: method does not override any method from its superclass
 29 |     guard let cassette = VCR.shared.currentCassette else {
 30 |       // No cassette inserted, pass through
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:52:17: error: method does not override any method from its superclass
 50 |   }
 51 |
 52 |   override func stopLoading() {
    |                 `- error: method does not override any method from its superclass
 53 |     dataTask?.cancel()
 54 |     dataTask = nil
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:4:29: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  2 |
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
    |                             `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |   private var dataTask: URLSessionDataTask?
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
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
[4/9] Compiling VCR HTTPInteraction.swift
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:17:25: error: cannot find type 'URLRequest' in scope
15 |   }
16 |
17 |   init(from urlRequest: URLRequest) {
   |                         `- error: cannot find type 'URLRequest' in scope
18 |     self.method = urlRequest.httpMethod ?? "GET"
19 |     self.url = urlRequest.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:37:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |   }
36 |
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     self.statusCode = httpResponse.statusCode
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
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/VCR/HTTPInteraction.swift:61:11: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
62 |   fileprivate var data: Data? {
63 |     httpBody ?? httpBodyStream.map { Data(reading: $0, withBufferSize: 1024) }
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:38:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 |
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
38 |     self.statusCode = httpResponse.statusCode
   |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
40 |       if let key = pair.key as? String, let value = pair.value as? String {
/host/spi-builder-workspace/Sources/VCR/HTTPInteraction.swift:39:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
37 |   init(from httpResponse: HTTPURLResponse, body: Data?) {
38 |     self.statusCode = httpResponse.statusCode
39 |     self.headers = httpResponse.allHeaderFields.reduce(into: [:]) { result, pair in
   |                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
40 |       if let key = pair.key as? String, let value = pair.value as? String {
41 |         result[key] = value
[5/9] Compiling VCR Cassette.swift
/host/spi-builder-workspace/Sources/VCR/Cassette.swift:40:37: error: cannot find type 'URLRequest' in scope
 38 |
 39 |   /// Find a matching interaction for the given request
 40 |   func findInteraction(for request: URLRequest) -> HTTPInteraction? {
    |                                     `- error: cannot find type 'URLRequest' in scope
 41 |     let matcher = self.matcher.createMatcher()
 42 |     return _interactions.value.first { interaction in
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:5:27: error: cannot find type 'URLRequest' in scope
 3 | /// Protocol for matching HTTP requests
 4 | public protocol RequestMatcher: Sendable {
 5 |   func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
[6/9] Compiling VCR VCRConfiguration.swift
[7/9] Compiling VCR VCR.swift
/host/spi-builder-workspace/Sources/VCR/VCR.swift:220:20: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |   ) -> URLSession {
222 |     let config = 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/VCR/VCR.swift:221:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
221 |   ) -> URLSession {
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |     let config = configuration
223 |     var protocolClasses = 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/VCR/VCR.swift:220:47: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
218 |   /// - Returns: URLSession with VCR protocol registered
219 |   public static func urlSession(
220 |     configuration: URLSessionConfiguration = .default
    |                                               `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
221 |   ) -> URLSession {
222 |     let config = configuration
/host/spi-builder-workspace/Sources/VCR/VCR.swift:171:17: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
169 |     guard !_isRegistered else { return }
170 |     // Register with the global URLProtocol system
171 |     URLProtocol.registerClass(VCRURLProtocol.self)
    |                 `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
172 |
173 |     // Also modify the default session configuration
/host/spi-builder-workspace/Sources/VCR/VCR.swift:175:29: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
173 |     // Also modify the default session configuration
174 |     // Note: This only affects new URLSessions, not URLSession.shared
175 |     URLSessionConfiguration.default.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
    |                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
176 |     URLSessionConfiguration.ephemeral.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
177 |
/host/spi-builder-workspace/Sources/VCR/VCR.swift:176:29: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
174 |     // Note: This only affects new URLSessions, not URLSession.shared
175 |     URLSessionConfiguration.default.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
176 |     URLSessionConfiguration.ephemeral.protocolClasses?.insert(VCRURLProtocol.self, at: 0)
    |                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
177 |
178 |     _isRegistered = true
/host/spi-builder-workspace/Sources/VCR/VCR.swift:223:34: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
221 |   ) -> URLSession {
222 |     let config = configuration
223 |     var protocolClasses = config.protocolClasses ?? []
    |                                  `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
224 |     protocolClasses.insert(VCRURLProtocol.self, at: 0)
225 |     config.protocolClasses = protocolClasses
/host/spi-builder-workspace/Sources/VCR/VCR.swift:225:12: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
223 |     var protocolClasses = config.protocolClasses ?? []
224 |     protocolClasses.insert(VCRURLProtocol.self, at: 0)
225 |     config.protocolClasses = protocolClasses
    |            `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
226 |     return URLSession(configuration: config)
227 |   }
/host/spi-builder-workspace/Sources/VCR/VCR.swift:226:12: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
224 |     protocolClasses.insert(VCRURLProtocol.self, at: 0)
225 |     config.protocolClasses = protocolClasses
226 |     return URLSession(configuration: config)
    |            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
227 |   }
228 | }
[8/9] Compiling VCR RequestMatcher.swift
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:5:27: error: cannot find type 'URLRequest' in scope
 3 | /// Protocol for matching HTTP requests
 4 | public protocol RequestMatcher: Sendable {
 5 |   func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:12:34: error: cannot find type 'URLRequest' in scope
10 |   public init() {}
11 |
12 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
13 |     let method = request.httpMethod ?? "GET"
14 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:23:34: error: cannot find type 'URLRequest' in scope
21 |   public init() {}
22 |
23 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |     let method = request.httpMethod ?? "GET"
25 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 |   }
45 |
46 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
47 |     let method = request.httpMethod ?? "GET"
48 |     let url = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/Sources/VCR/RequestMatcher.swift:74:34: error: cannot find type 'URLRequest' in scope
72 |   }
73 |
74 |   public func matches(_ request: URLRequest, recorded: RecordedRequest) -> Bool {
   |                                  `- error: cannot find type 'URLRequest' in scope
75 |     matchers.allSatisfy { $0.matches(request, recorded: recorded) }
76 |   }
[9/9] Compiling VCR VCRURLProtocol.swift
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:5:25: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
  5 |   private var dataTask: URLSessionDataTask?
    |                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
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/VCR/VCRURLProtocol.swift:8:45: error: cannot find type 'URLRequest' in scope
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
  7 |
  8 |   override class func canInit(with request: URLRequest) -> Bool {
    |                                             `- error: cannot find type 'URLRequest' in scope
  9 |     // Don't intercept our own internal requests
 10 |     if URLProtocol.property(forKey: internalSessionKey, in: request) != nil {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:68: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:24:53: error: cannot find type 'URLRequest' in scope
 22 |   }
 23 |
 24 |   override class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 25 |     return request
 26 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:28:17: error: method does not override any method from its superclass
 26 |   }
 27 |
 28 |   override func startLoading() {
    |                 `- error: method does not override any method from its superclass
 29 |     guard let cassette = VCR.shared.currentCassette else {
 30 |       // No cassette inserted, pass through
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:52:17: error: method does not override any method from its superclass
 50 |   }
 51 |
 52 |   override func stopLoading() {
    |                 `- error: method does not override any method from its superclass
 53 |     dataTask?.cancel()
 54 |     dataTask = nil
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:4:29: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  2 |
  3 | /// URLProtocol subclass that intercepts URLSession requests for VCR recording/playback
  4 | final class VCRURLProtocol: URLProtocol {
    |                             `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 |   private var dataTask: URLSessionDataTask?
  6 |   private static let internalSessionKey = "VCRURLProtocol.InternalSession"
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/VCR/VCRURLProtocol.swift:10:20: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
  8 |   override class func canInit(with request: URLRequest) -> Bool {
  9 |     // Don't intercept our own internal requests
 10 |     if URLProtocol.property(forKey: internalSessionKey, in: request) != nil {
    |                    `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
 11 |       return false
 12 |     }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:36:56: error: cannot find 'request' in scope
 34 |
 35 |     // Try to find a matching interaction
 36 |     if let interaction = cassette.findInteraction(for: request) {
    |                                                        `- error: cannot find 'request' in scope
 37 |       // Found a match, replay it
 38 |       replayInteraction(interaction)
/host/spi-builder-workspace/Sources/VCR/Cassette.swift:40:37: error: cannot find type 'URLRequest' in scope
 38 |
 39 |   /// Find a matching interaction for the given request
 40 |   func findInteraction(for request: URLRequest) -> HTTPInteraction? {
    |                                     `- error: cannot find type 'URLRequest' in scope
 41 |     let matcher = self.matcher.createMatcher()
 42 |     return _interactions.value.first { interaction in
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:45:17: error: cannot find 'request' in scope
 43 |       // No match and recording not allowed
 44 |       let error = VCRError.noMatchingInteraction(
 45 |         method: request.httpMethod ?? "GET",
    |                 `- error: cannot find 'request' in scope
 46 |         url: request.url?.absoluteString ?? ""
 47 |       )
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:46:14: error: cannot find 'request' in scope
 44 |       let error = VCRError.noMatchingInteraction(
 45 |         method: request.httpMethod ?? "GET",
 46 |         url: request.url?.absoluteString ?? ""
    |              `- error: cannot find 'request' in scope
 47 |       )
 48 |       client?.urlProtocol(self, didFailWithError: error)
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:48:7: error: cannot find 'client' in scope
 46 |         url: request.url?.absoluteString ?? ""
 47 |       )
 48 |       client?.urlProtocol(self, didFailWithError: error)
    |       `- error: cannot find 'client' in scope
 49 |     }
 50 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:53:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 51 |
 52 |   override func stopLoading() {
 53 |     dataTask?.cancel()
    |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 54 |     dataTask = nil
 55 |   }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:59:21: error: cannot find 'request' in scope
 57 |   private func replayInteraction(_ interaction: HTTPInteraction) {
 58 |     // Create response
 59 |     guard let url = request.url else { return }
    |                     `- error: cannot find 'request' in scope
 60 |
 61 |     let httpResponse = HTTPURLResponse(
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:61:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 59 |     guard let url = request.url else { return }
 60 |
 61 |     let httpResponse = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |       url: url,
 63 |       statusCode: interaction.response.statusCode,
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:69:5: error: cannot find 'client' in scope
 67 |
 68 |     // Deliver response to client
 69 |     client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |     `- error: cannot find 'client' in scope
 70 |
 71 |     if let body = interaction.response.body {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:69:78: error: cannot infer contextual base in reference to member 'notAllowed'
 67 |
 68 |     // Deliver response to client
 69 |     client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                              `- error: cannot infer contextual base in reference to member 'notAllowed'
 70 |
 71 |     if let body = interaction.response.body {
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:72:7: error: cannot find 'client' in scope
 70 |
 71 |     if let body = interaction.response.body {
 72 |       client?.urlProtocol(self, didLoad: body)
    |       `- error: cannot find 'client' in scope
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:75:5: error: cannot find 'client' in scope
 73 |     }
 74 |
 75 |     client?.urlProtocolDidFinishLoading(self)
    |     `- error: cannot find 'client' in scope
 76 |   }
 77 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:80:27: error: cannot find 'request' in scope
 78 |   private func performRealRequest() {
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                           `- error: cannot find 'request' in scope
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:80:38: error: cannot find type 'NSURLRequest' in scope
 78 |   private func performRealRequest() {
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                                      `- error: cannot find type 'NSURLRequest' in scope
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:80:70: error: cannot find type 'NSMutableURLRequest' in scope
 78 |   private func performRealRequest() {
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
    |                                                                      `- error: cannot find type 'NSMutableURLRequest' in scope
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:81:17: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 79 |     // Create a new request marked as internal to avoid infinite recursion
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
    |                 `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 82 |     let internalRequest = mutableRequest as URLRequest
 83 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:82:45: error: cannot find type 'URLRequest' in scope
 80 |     let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
 81 |     URLProtocol.setProperty(true, forKey: Self.internalSessionKey, in: mutableRequest)
 82 |     let internalRequest = mutableRequest as URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     // Create a session that won't be intercepted
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:85:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 83 |
 84 |     // Create a session that won't be intercepted
 85 |     let config = URLSessionConfiguration.ephemeral
    |                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 86 |     config.protocolClasses = []
 87 |     let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:87:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 85 |     let config = URLSessionConfiguration.ephemeral
 86 |     config.protocolClasses = []
 87 |     let session = URLSession(configuration: config)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:89:70: error: cannot infer type of closure parameter 'data' without a type annotation
 87 |     let session = URLSession(configuration: config)
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
    |                                                                      `- error: cannot infer type of closure parameter 'data' without a type annotation
 90 |       guard let self else { return }
 91 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:89:76: error: cannot infer type of closure parameter 'response' without a type annotation
 87 |     let session = URLSession(configuration: config)
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
    |                                                                            `- error: cannot infer type of closure parameter 'response' without a type annotation
 90 |       guard let self else { return }
 91 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:89:86: error: cannot infer type of closure parameter 'error' without a type annotation
 87 |     let session = URLSession(configuration: config)
 88 |
 89 |     dataTask = session.dataTask(with: internalRequest) { [weak self] data, response, error in
    |                                                                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
 90 |       guard let self else { return }
 91 |
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:93:14: error: value of type 'VCRURLProtocol' has no member 'client'
 91 |
 92 |       if let error = error {
 93 |         self.client?.urlProtocol(self, didFailWithError: error)
    |              `- error: value of type 'VCRURLProtocol' has no member 'client'
 94 |         return
 95 |       }
/host/spi-builder-workspace/Sources/VCR/VCRURLProtocol.swift:124:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
122 |     }
123 |
124 |     dataTask?.resume()
    |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
125 |   }
126 | }
BUILD FAILURE 6.1 android