The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DVR, reference v2.1.0 (d13f71), with Swift 6.2 for Linux on 17 Jun 2025 22:13:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/venmo/DVR.git
Reference: v2.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/venmo/DVR
 * tag               v2.1.0     -> FETCH_HEAD
HEAD is now at d13f713 Bump version to 2.1.0
Cloned https://github.com/venmo/DVR.git
Revision (git rev-parse @):
d13f7135d1993053580efe13c9ecc43200852d09
SUCCESS checkout https://github.com/venmo/DVR.git at v2.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/venmo/DVR.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling DVR SessionUploadTask.swift
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:7:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     // MARK: - Types
 6 |
 7 |     typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
   |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     // MARK: - Properties
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/DVR/SessionUploadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
10 |
11 |     weak var session: Session!
12 |     let request: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
13 |     let completion: Completion?
14 |     let dataTask: SessionDataTask
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:18:37: error: cannot find type 'URLRequest' in scope
16 |     // MARK: - Initializers
17 |
18 |     init(session: Session, request: URLRequest, completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
19 |         self.session = session
20 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:27:19: error: method does not override any method from its superclass
25 |     // MARK: - URLSessionTask
26 |
27 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
28 |         // Don't do anything
29 |     }
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:31:19: error: method does not override any method from its superclass
29 |     }
30 |
31 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
32 |         dataTask.resume()
33 |     }
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:3:32: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 1 | import Foundation
 2 |
 3 | final class SessionUploadTask: URLSessionUploadTask {
   |                                `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |
 5 |     // MARK: - Types
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:29:37: error: cannot find type 'URLRequest' in scope
27 |     // MARK: - Initializers
28 |
29 |     init(session: Session, request: URLRequest, completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
30 |         self.session = session
31 |         self.request = request
[4/11] Compiling DVR URLRequest.swift
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 4 |     var dictionary: [String: Any] {
 5 |         var dictionary = [String: Any]()
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 |
27 |
28 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
29 |     func appending(headers: [AnyHashable: Any]) -> URLRequest {
30 |         guard let headers = headers as? [String: String] else { return self }
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:49:11: error: cannot find type 'NSMutableURLRequest' in scope
47 |
48 |
49 | extension NSMutableURLRequest {
   |           `- error: cannot find type 'NSMutableURLRequest' in scope
50 |     convenience init(dictionary: [String: Any]) {
51 |         self.init()
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:72:11: error: cannot find type 'NSMutableURLRequest' in scope
70 |
71 |
72 | extension NSMutableURLRequest {
   |           `- error: cannot find type 'NSMutableURLRequest' in scope
73 |     func appendHeaders(_ headers: [AnyHashable: Any]) {
74 |         var existingHeaders = allHTTPHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:29:52: error: cannot find type 'URLRequest' in scope
27 |
28 | extension URLRequest {
29 |     func appending(headers: [AnyHashable: Any]) -> URLRequest {
   |                                                    `- error: cannot find type 'URLRequest' in scope
30 |         guard let headers = headers as? [String: String] else { return self }
31 |
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:41:36: error: cannot find type 'URLRequest' in scope
39 |     }
40 |
41 |     func appending(body: Data?) -> URLRequest {
   |                                    `- error: cannot find type 'URLRequest' in scope
42 |         var request = self
43 |         request.httpBody = body
[5/12] Compiling DVR SessionDownloadTask.swift
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:7:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     // MARK: - Types
 6 |
 7 |     typealias Completion = (URL?, Foundation.URLResponse?, NSError?) -> Void
   |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     // MARK: - Properties
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/DVR/SessionDownloadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
10 |
11 |     weak var session: Session!
12 |     let request: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
13 |     let completion: Completion?
14 |
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:18:37: error: cannot find type 'URLRequest' in scope
16 |     // MARK: - Initializers
17 |
18 |     init(session: Session, request: URLRequest, completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
19 |         self.session = session
20 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:26:19: error: method does not override any method from its superclass
24 |     // MARK: - URLSessionTask
25 |
26 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
27 |         // Don't do anything
28 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:30:19: error: method does not override any method from its superclass
28 |     }
29 |
30 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
31 |         let task = SessionDataTask(session: session, request: request) { data, response, error in
32 |             let location: URL?
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:3:34: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 1 | import Foundation
 2 |
 3 | final class SessionDownloadTask: URLSessionDownloadTask {
   |                                  `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |
 5 |     // MARK: - Types
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:29:37: error: cannot find type 'URLRequest' in scope
27 |     // MARK: - Initializers
28 |
29 |     init(session: Session, request: URLRequest, completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
30 |         self.session = session
31 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:36:57: error: reference to member 'atomic' cannot be resolved without a contextual type
34 |                 // Write data to temporary file
35 |                 let tempURL = URL(fileURLWithPath: (NSTemporaryDirectory() as NSString).appendingPathComponent(UUID().uuidString))
36 |                 try? data.write(to: tempURL, options: [.atomic])
   |                                                         `- error: reference to member 'atomic' cannot be resolved without a contextual type
37 |                 location = tempURL
38 |             } else {
[6/12] Compiling DVR SessionDataTask.swift
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:7:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     // MARK: - Types
 6 |
 7 |     typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
   |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |
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/DVR/SessionDataTask.swift:13:18: error: cannot find type 'URLRequest' in scope
11 |
12 |     weak var session: Session!
13 |     let request: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
14 |     let completion: Completion?
15 |     private let queue = DispatchQueue(label: "com.venmo.DVR.sessionDataTaskQueue", attributes: [])
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:18:18: error: property does not override any property from its superclass
16 |     private var interaction: Interaction?
17 |
18 |     override var response: Foundation.URLResponse? {
   |                  `- error: property does not override any property from its superclass
19 |         return interaction?.response
20 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:18:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private var interaction: Interaction?
17 |
18 |     override var response: Foundation.URLResponse? {
   |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         return interaction?.response
20 |     }
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/DVR/SessionDataTask.swift:22:34: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     override var currentRequest: URLRequest? {
   |                                  `- error: cannot find type 'URLRequest' in scope
23 |         return request
24 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:29:37: error: cannot find type 'URLRequest' in scope
27 |     // MARK: - Initializers
28 |
29 |     init(session: Session, request: URLRequest, completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
30 |         self.session = session
31 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:38:19: error: method does not override any method from its superclass
36 |     // MARK: - URLSessionTask
37 |
38 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
39 |         // Don't do anything
40 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:42:19: error: method does not override any method from its superclass
40 |     }
41 |
42 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
43 |         let cassette = session.cassette
44 |
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:3:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 1 | import Foundation
 2 |
 3 | final class SessionDataTask: URLSessionDataTask {
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |
 5 |     // MARK: - Types
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/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
19 |     // MARK: - Functions
20 |
21 |     func interactionForRequest(_ request: URLRequest) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         for interaction in interactions {
23 |             let interactionRequest = interaction.request
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:67:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
65 |         }
66 |
67 |         let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
   |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 |
69 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:67:100: error: cannot infer type of closure parameter 'data' without a type annotation
65 |         }
66 |
67 |         let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
   |                                                                                                    `- error: cannot infer type of closure parameter 'data' without a type annotation
68 |
69 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:67:106: error: cannot infer type of closure parameter 'response' without a type annotation
65 |         }
66 |
67 |         let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
   |                                                                                                          `- error: cannot infer type of closure parameter 'response' without a type annotation
68 |
69 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:67:116: error: cannot infer type of closure parameter 'error' without a type annotation
65 |         }
66 |
67 |         let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
   |                                                                                                                    `- error: cannot infer type of closure parameter 'error' without a type annotation
68 |
69 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:80:40: error: argument type '_' expected to be an instance of a class or class-constrained type
78 |             // Still call the completion block so the user can chain requests while recording.
79 |             this.queue.async {
80 |                 this.completion?(data, response, nil)
   |                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
81 |             }
82 |
[7/12] Compiling DVR Session.swift
/host/spi-builder-workspace/Sources/DVR/Session.swift:13:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     open var outputDirectory: String
 12 |     public let cassetteName: String
 13 |     public let backingSession: URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     open var recordingEnabled = true
 15 |
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/DVR/Session.swift:20:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private var recording = false
 19 |     private var needsPersistence = false
 20 |     private var outstandingTasks = [URLSessionTask]()
    |                                     `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     private var completedInteractions = [Interaction]()
 22 |     private var completionBlock: (() -> 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/DVR/Session.swift:24:33: error: cannot find type 'URLSessionDelegate' in scope
 22 |     private var completionBlock: (() -> Void)?
 23 |
 24 |     override open var delegate: URLSessionDelegate? {
    |                                 `- error: cannot find type 'URLSessionDelegate' in scope
 25 |         return backingSession.delegate
 26 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:30:148: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     // MARK: - Initializers
 29 |
 30 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared) {
    |                                                                                                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         self.outputDirectory = outputDirectory
 32 |         self.cassetteName = cassetteName
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/DVR/Session.swift:30:172: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |     // MARK: - Initializers
 29 |
 30 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared) {
    |                                                                                                                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |         self.outputDirectory = outputDirectory
 32 |         self.cassetteName = cassetteName
/host/spi-builder-workspace/Sources/DVR/Session.swift:41:51: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     // MARK: - URLSession
 40 |
 41 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
    |                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         return addDataTask(URLRequest(url: url))
 43 |     }
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/DVR/Session.swift:41:24: error: method does not override any method from its superclass
 39 |     // MARK: - URLSession
 40 |
 41 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
    |                        `- error: method does not override any method from its superclass
 42 |         return addDataTask(URLRequest(url: url))
 43 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:45:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     }
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 47 |     }
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/DVR/Session.swift:45:132: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     }
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 47 |     }
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/DVR/Session.swift:45:24: error: method does not override any method from its superclass
 43 |     }
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                        `- error: method does not override any method from its superclass
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 47 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:49:47: error: cannot find type 'URLRequest' in scope
 47 |     }
 48 |
 49 |     open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 50 |         return addDataTask(request)
 51 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:49:62: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     }
 48 |
 49 |     open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
    |                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         return addDataTask(request)
 51 |     }
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/DVR/Session.swift:53:47: error: cannot find type 'URLRequest' in scope
 51 |     }
 52 |
 53 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 54 |         return addDataTask(request, completionHandler: completionHandler)
 55 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:53:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         return addDataTask(request, completionHandler: completionHandler)
 55 |     }
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/DVR/Session.swift:53:143: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                               `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         return addDataTask(request, completionHandler: completionHandler)
 55 |     }
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/DVR/Session.swift:57:51: error: cannot find type 'URLRequest' in scope
 55 |     }
 56 |
 57 |     open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 58 |         return addDownloadTask(request)
 59 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:57:66: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |     }
 56 |
 57 |     open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
    |                                                                  `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         return addDownloadTask(request)
 59 |     }
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:61:51: error: cannot find type 'URLRequest' in scope
 59 |     }
 60 |
 61 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 62 |         return addDownloadTask(request, completionHandler: completionHandler)
 63 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:61:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |     }
 60 |
 61 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         return addDownloadTask(request, completionHandler: completionHandler)
 63 |     }
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/DVR/Session.swift:61:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |     }
 60 |
 61 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                                                                `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         return addDownloadTask(request, completionHandler: completionHandler)
 63 |     }
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:65:49: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         return addUploadTask(request, fromData: bodyData)
 67 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:65:85: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     }
 64 |
 65 |     open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
    |                                                                                     `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         return addUploadTask(request, fromData: bodyData)
 67 |     }
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:69:50: error: cannot find type 'URLRequest' in scope
 67 |     }
 68 |
 69 |     open override  func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                  `- error: cannot find type 'URLRequest' in scope
 70 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 71 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:69:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     open override  func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 71 |     }
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/DVR/Session.swift:69:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     open override  func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                                                      `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 71 |     }
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:73:49: error: cannot find type 'URLRequest' in scope
 71 |     }
 72 |
 73 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 74 |         let data = try! Data(contentsOf: fileURL)
 75 |         return addUploadTask(request, fromData: data)
/host/spi-builder-workspace/Sources/DVR/Session.swift:73:87: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     }
 72 |
 73 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
    |                                                                                       `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |         let data = try! Data(contentsOf: fileURL)
 75 |         return addUploadTask(request, fromData: data)
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:78:49: error: cannot find type 'URLRequest' in scope
 76 |     }
 77 |
 78 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 79 |         let data = try! Data(contentsOf: fileURL)
 80 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:78:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     }
 77 |
 78 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         let data = try! Data(contentsOf: fileURL)
 80 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
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/DVR/Session.swift:78:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     }
 77 |
 78 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                                                      `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         let data = try! Data(contentsOf: fileURL)
 80 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:83:24: error: method does not override any method from its superclass
 81 |     }
 82 |
 83 |     open override func invalidateAndCancel() {
    |                        `- error: method does not override any method from its superclass
 84 |         recording = false
 85 |         outstandingTasks.removeAll()
/host/spi-builder-workspace/Sources/DVR/Session.swift:134:29: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |     }
133 |
134 |     func finishTask(_ task: URLSessionTask, interaction: Interaction, playback: Bool) {
    |                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         needsPersistence = needsPersistence || !playback
136 |
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/DVR/Session.swift:159:41: error: cannot find type 'URLRequest' in scope
157 |     // MARK: - Private
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:159:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     // MARK: - Private
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
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/DVR/Session.swift:159:136: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     // MARK: - Private
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
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/DVR/Session.swift:166:45: error: cannot find type 'URLRequest' in scope
164 |     }
165 |
166 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
    |                                             `- error: cannot find type 'URLRequest' in scope
167 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
168 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:166:118: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
    |                                                                                                                      `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
168 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:173:43: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
    |                                           `- error: cannot find type 'URLRequest' in scope
174 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
175 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
/host/spi-builder-workspace/Sources/DVR/Session.swift:173:136: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |     }
172 |
173 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
    |                                                                                                                                        `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
175 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:181:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |     }
180 |
181 |     private func addTask(_ task: URLSessionTask) {
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |         let shouldRecord = !recording
183 |         if shouldRecord {
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/DVR/Session.swift:3:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  1 | import Foundation
  2 |
  3 | open class Session: URLSession {
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |
  5 |     // MARK: - Properties
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/DVR/Session.swift:35:9: error: 'super' cannot be used in class 'Session' because it has no superclass
 33 |         self.testBundle = testBundle
 34 |         self.backingSession = backingSession
 35 |         super.init()
    |         `- error: 'super' cannot be used in class 'Session' because it has no superclass
 36 |     }
 37 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:42:28: error: cannot find 'URLRequest' in scope
 40 |
 41 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
 42 |         return addDataTask(URLRequest(url: url))
    |                            `- error: cannot find 'URLRequest' in scope
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:46:28: error: cannot find 'URLRequest' in scope
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
    |                            `- error: cannot find 'URLRequest' in scope
 47 |     }
 48 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:86:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 84 |         recording = false
 85 |         outstandingTasks.removeAll()
 86 |         backingSession.invalidateAndCancel()
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 87 |     }
 88 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:137:41: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Equatable' because 'Equatable' has static requirements
135 |         needsPersistence = needsPersistence || !playback
136 |
137 |         if let index = outstandingTasks.firstIndex(of: task) {
    |                                         `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Equatable' because 'Equatable' has static requirements
138 |             outstandingTasks.remove(at: index)
139 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:147:40: error: cannot find type 'URLSessionDataDelegate' in scope
145 |         }
146 |
147 |         if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
    |                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
148 |             delegate.urlSession?(self, dataTask: task, didReceive: data as Data)
149 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:147:80: warning: conditional cast from 'URLSessionTask' (aka 'AnyObject') to 'URLSessionDataTask' (aka 'AnyObject') always succeeds
145 |         }
146 |
147 |         if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
    |                                                                                `- warning: conditional cast from 'URLSessionTask' (aka 'AnyObject') to 'URLSessionDataTask' (aka 'AnyObject') always succeeds
148 |             delegate.urlSession?(self, dataTask: task, didReceive: data as Data)
149 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:147:84: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |         }
146 |
147 |         if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
    |                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |             delegate.urlSession?(self, dataTask: task, didReceive: data as Data)
149 |         }
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/DVR/Session.swift:151:40: error: cannot find type 'URLSessionTaskDelegate' in scope
149 |         }
150 |
151 |         if let delegate = delegate as? URLSessionTaskDelegate {
    |                                        `- error: cannot find type 'URLSessionTaskDelegate' in scope
152 |             delegate.urlSession?(self, task: task, didCompleteWithError: nil)
153 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:152:74: error: 'nil' requires a contextual type
150 |
151 |         if let delegate = delegate as? URLSessionTaskDelegate {
152 |             delegate.urlSession?(self, task: task, didCompleteWithError: nil)
    |                                                                          `- error: 'nil' requires a contextual type
153 |         }
154 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:160:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
162 |         addTask(task)
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:29:37: error: cannot find type 'URLRequest' in scope
27 |     // MARK: - Initializers
28 |
29 |     init(session: Session, request: URLRequest, completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
30 |         self.session = session
31 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/Session.swift:167:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
165 |
166 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
167 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
168 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
169 |         addTask(task)
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:18:37: error: cannot find type 'URLRequest' in scope
16 |     // MARK: - Initializers
17 |
18 |     init(session: Session, request: URLRequest, completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
19 |         self.session = session
20 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/Session.swift:174:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
172 |
173 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
174 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
175 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
176 |         let task = SessionUploadTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:175:32: error: generic parameter 'E' could not be inferred
173 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
174 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
175 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
    |                                `- error: generic parameter 'E' could not be inferred
176 |         let task = SessionUploadTask(session: self, request: modifiedRequest, completion: completionHandler)
177 |         addTask(task.dataTask)
Swift.Optional.map:2:13: note: in call to function 'map'
1 | generic enum Optional {
2 | public func map<E, U>(_ transform: (Wrapped) throws(E) -> U) throws(E) -> U? where E : Error, U : ~Copyable}
  |             `- note: in call to function 'map'
3 |
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:18:37: error: cannot find type 'URLRequest' in scope
16 |     // MARK: - Initializers
17 |
18 |     init(session: Session, request: URLRequest, completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
19 |         self.session = session
20 |         self.request = request
[8/12] Compiling DVR URLResponse.swift
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:6:18: error: property does not override any property from its superclass
 4 | class URLResponse: Foundation.URLResponse {
 5 |     private var _URL: Foundation.URL?
 6 |     override var url: Foundation.URL? {
   |                  `- error: property does not override any property from its superclass
 7 |         get {
 8 |             return _URL ?? super.url
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:4:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | // There isn't a mutable URLResponse, so we have to make our own.
 4 | class URLResponse: Foundation.URLResponse {
   |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     private var _URL: Foundation.URL?
 6 |     override var url: Foundation.URL? {
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/DVR/URLResponse.swift:18:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 |
17 |
18 | extension Foundation.URLResponse {
   | `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 |     var dictionary: [String: Any] {
20 |         if let url = url?.absoluteString {
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:8:28: error: 'super' cannot be used in class 'URLResponse' because it has no superclass
 6 |     override var url: Foundation.URL? {
 7 |         get {
 8 |             return _URL ?? super.url
   |                            `- error: 'super' cannot be used in class 'URLResponse' because it has no superclass
 9 |         }
10 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/12] Emitting module DVR
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
19 |     // MARK: - Functions
20 |
21 |     func interactionForRequest(_ request: URLRequest) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         for interaction in interactions {
23 |             let interactionRequest = interaction.request
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
  5 |     // MARK: - Properties
  6 |
  7 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
  8 |     let response: Foundation.URLResponse
  9 |     let responseData: Data?
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:56:19: error: cannot find type 'URLRequest' in scope
54 | }
55 |
56 | private extension URLRequest {
   |                   `- error: cannot find type 'URLRequest' in scope
57 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
58 |         guard let body1 = self.httpBody,
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:9:18: error: property does not override any property from its superclass
 7 |
 8 |     private var _url: URL?
 9 |     override var url: URL? {
   |                  `- error: property does not override any property from its superclass
10 |         get {
11 |             return _url ?? super.url
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:20:18: error: property does not override any property from its superclass
18 |
19 |     private var _statusCode: Int?
20 |     override var statusCode: Int {
   |                  `- error: property does not override any property from its superclass
21 |         get {
22 |             return _statusCode ?? super.statusCode
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:31:18: error: property does not override any property from its superclass
29 |
30 |     private var _allHeaderFields: [AnyHashable: Any]?
31 |     override var allHeaderFields: [AnyHashable: Any] {
   |                  `- error: property does not override any property from its superclass
32 |         get {
33 |             return _allHeaderFields ?? super.allHeaderFields
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:4:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | // There isn't a mutable HTTPURLResponse, so we have to make our own.
 4 | class HTTPURLResponse: Foundation.HTTPURLResponse {
   |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     // MARK: - Properties
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/DVR/Interaction.swift:8:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |
  7 |     let request: URLRequest
  8 |     let response: Foundation.URLResponse
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let responseData: Data?
 10 |     let recordedAt: Date
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/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |     // MARK: - Initializers
 14 |
 15 |     init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |         self.request = request
 17 |         self.response = response
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     // MARK: - Initializers
 14 |
 15 |     init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
    |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.request = request
 17 |         self.response = response
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/DVR/Session.swift:13:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     open var outputDirectory: String
 12 |     public let cassetteName: String
 13 |     public let backingSession: URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     open var recordingEnabled = true
 15 |
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/DVR/Session.swift:20:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private var recording = false
 19 |     private var needsPersistence = false
 20 |     private var outstandingTasks = [URLSessionTask]()
    |                                     `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     private var completedInteractions = [Interaction]()
 22 |     private var completionBlock: (() -> 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/DVR/Session.swift:24:33: error: cannot find type 'URLSessionDelegate' in scope
 22 |     private var completionBlock: (() -> Void)?
 23 |
 24 |     override open var delegate: URLSessionDelegate? {
    |                                 `- error: cannot find type 'URLSessionDelegate' in scope
 25 |         return backingSession.delegate
 26 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:30:148: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     // MARK: - Initializers
 29 |
 30 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared) {
    |                                                                                                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         self.outputDirectory = outputDirectory
 32 |         self.cassetteName = cassetteName
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/DVR/Session.swift:30:172: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 28 |     // MARK: - Initializers
 29 |
 30 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared) {
    |                                                                                                                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |         self.outputDirectory = outputDirectory
 32 |         self.cassetteName = cassetteName
/host/spi-builder-workspace/Sources/DVR/Session.swift:41:51: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     // MARK: - URLSession
 40 |
 41 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
    |                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |         return addDataTask(URLRequest(url: url))
 43 |     }
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/DVR/Session.swift:41:24: error: method does not override any method from its superclass
 39 |     // MARK: - URLSession
 40 |
 41 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
    |                        `- error: method does not override any method from its superclass
 42 |         return addDataTask(URLRequest(url: url))
 43 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:45:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     }
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 47 |     }
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/DVR/Session.swift:45:132: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     }
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 47 |     }
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/DVR/Session.swift:45:24: error: method does not override any method from its superclass
 43 |     }
 44 |
 45 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                        `- error: method does not override any method from its superclass
 46 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 47 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:49:47: error: cannot find type 'URLRequest' in scope
 47 |     }
 48 |
 49 |     open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 50 |         return addDataTask(request)
 51 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:49:62: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     }
 48 |
 49 |     open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
    |                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         return addDataTask(request)
 51 |     }
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/DVR/Session.swift:53:47: error: cannot find type 'URLRequest' in scope
 51 |     }
 52 |
 53 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 54 |         return addDataTask(request, completionHandler: completionHandler)
 55 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:53:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         return addDataTask(request, completionHandler: completionHandler)
 55 |     }
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/DVR/Session.swift:53:143: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                               `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         return addDataTask(request, completionHandler: completionHandler)
 55 |     }
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/DVR/Session.swift:57:51: error: cannot find type 'URLRequest' in scope
 55 |     }
 56 |
 57 |     open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 58 |         return addDownloadTask(request)
 59 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:57:66: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |     }
 56 |
 57 |     open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
    |                                                                  `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |         return addDownloadTask(request)
 59 |     }
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:61:51: error: cannot find type 'URLRequest' in scope
 59 |     }
 60 |
 61 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 62 |         return addDownloadTask(request, completionHandler: completionHandler)
 63 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:61:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |     }
 60 |
 61 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         return addDownloadTask(request, completionHandler: completionHandler)
 63 |     }
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/DVR/Session.swift:61:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |     }
 60 |
 61 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                                                                `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         return addDownloadTask(request, completionHandler: completionHandler)
 63 |     }
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:65:49: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         return addUploadTask(request, fromData: bodyData)
 67 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:65:85: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     }
 64 |
 65 |     open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
    |                                                                                     `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         return addUploadTask(request, fromData: bodyData)
 67 |     }
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:69:50: error: cannot find type 'URLRequest' in scope
 67 |     }
 68 |
 69 |     open override  func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                  `- error: cannot find type 'URLRequest' in scope
 70 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 71 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:69:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     open override  func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 71 |     }
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/DVR/Session.swift:69:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     open override  func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                                                      `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 71 |     }
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:73:49: error: cannot find type 'URLRequest' in scope
 71 |     }
 72 |
 73 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 74 |         let data = try! Data(contentsOf: fileURL)
 75 |         return addUploadTask(request, fromData: data)
/host/spi-builder-workspace/Sources/DVR/Session.swift:73:87: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |     }
 72 |
 73 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
    |                                                                                       `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |         let data = try! Data(contentsOf: fileURL)
 75 |         return addUploadTask(request, fromData: data)
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:78:49: error: cannot find type 'URLRequest' in scope
 76 |     }
 77 |
 78 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 79 |         let data = try! Data(contentsOf: fileURL)
 80 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:78:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     }
 77 |
 78 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         let data = try! Data(contentsOf: fileURL)
 80 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
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/DVR/Session.swift:78:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     }
 77 |
 78 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
    |                                                                                                                                                                      `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         let data = try! Data(contentsOf: fileURL)
 80 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:83:24: error: method does not override any method from its superclass
 81 |     }
 82 |
 83 |     open override func invalidateAndCancel() {
    |                        `- error: method does not override any method from its superclass
 84 |         recording = false
 85 |         outstandingTasks.removeAll()
/host/spi-builder-workspace/Sources/DVR/Session.swift:134:29: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |     }
133 |
134 |     func finishTask(_ task: URLSessionTask, interaction: Interaction, playback: Bool) {
    |                             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         needsPersistence = needsPersistence || !playback
136 |
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/DVR/Session.swift:159:41: error: cannot find type 'URLRequest' in scope
157 |     // MARK: - Private
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:159:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     // MARK: - Private
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
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/DVR/Session.swift:159:136: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     // MARK: - Private
158 |
159 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
161 |         let task = SessionDataTask(session: self, request: modifiedRequest, completion: completionHandler)
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/DVR/Session.swift:166:45: error: cannot find type 'URLRequest' in scope
164 |     }
165 |
166 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
    |                                             `- error: cannot find type 'URLRequest' in scope
167 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
168 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:166:118: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
    |                                                                                                                      `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
168 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:173:43: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
    |                                           `- error: cannot find type 'URLRequest' in scope
174 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
175 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
/host/spi-builder-workspace/Sources/DVR/Session.swift:173:136: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |     }
172 |
173 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
    |                                                                                                                                        `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
175 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/Session.swift:181:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |     }
180 |
181 |     private func addTask(_ task: URLSessionTask) {
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |         let shouldRecord = !recording
183 |         if shouldRecord {
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/DVR/Session.swift:3:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  1 | import Foundation
  2 |
  3 | open class Session: URLSession {
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  4 |
  5 |     // MARK: - Properties
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/DVR/SessionDataTask.swift:7:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     // MARK: - Types
 6 |
 7 |     typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
   |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |
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/DVR/SessionDataTask.swift:13:18: error: cannot find type 'URLRequest' in scope
11 |
12 |     weak var session: Session!
13 |     let request: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
14 |     let completion: Completion?
15 |     private let queue = DispatchQueue(label: "com.venmo.DVR.sessionDataTaskQueue", attributes: [])
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:18:18: error: property does not override any property from its superclass
16 |     private var interaction: Interaction?
17 |
18 |     override var response: Foundation.URLResponse? {
   |                  `- error: property does not override any property from its superclass
19 |         return interaction?.response
20 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:18:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private var interaction: Interaction?
17 |
18 |     override var response: Foundation.URLResponse? {
   |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |         return interaction?.response
20 |     }
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/DVR/SessionDataTask.swift:22:34: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     override var currentRequest: URLRequest? {
   |                                  `- error: cannot find type 'URLRequest' in scope
23 |         return request
24 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:29:37: error: cannot find type 'URLRequest' in scope
27 |     // MARK: - Initializers
28 |
29 |     init(session: Session, request: URLRequest, completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
30 |         self.session = session
31 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:38:19: error: method does not override any method from its superclass
36 |     // MARK: - URLSessionTask
37 |
38 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
39 |         // Don't do anything
40 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:42:19: error: method does not override any method from its superclass
40 |     }
41 |
42 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
43 |         let cassette = session.cassette
44 |
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:3:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 1 | import Foundation
 2 |
 3 | final class SessionDataTask: URLSessionDataTask {
   |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |
 5 |     // MARK: - Types
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/DVR/SessionDownloadTask.swift:7:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     // MARK: - Types
 6 |
 7 |     typealias Completion = (URL?, Foundation.URLResponse?, NSError?) -> Void
   |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     // MARK: - Properties
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/DVR/SessionDownloadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
10 |
11 |     weak var session: Session!
12 |     let request: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
13 |     let completion: Completion?
14 |
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:18:37: error: cannot find type 'URLRequest' in scope
16 |     // MARK: - Initializers
17 |
18 |     init(session: Session, request: URLRequest, completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
19 |         self.session = session
20 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:26:19: error: method does not override any method from its superclass
24 |     // MARK: - URLSessionTask
25 |
26 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
27 |         // Don't do anything
28 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:30:19: error: method does not override any method from its superclass
28 |     }
29 |
30 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
31 |         let task = SessionDataTask(session: session, request: request) { data, response, error in
32 |             let location: URL?
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:3:34: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 1 | import Foundation
 2 |
 3 | final class SessionDownloadTask: URLSessionDownloadTask {
   |                                  `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |
 5 |     // MARK: - Types
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:7:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     // MARK: - Types
 6 |
 7 |     typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
   |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     // MARK: - Properties
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/DVR/SessionUploadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
10 |
11 |     weak var session: Session!
12 |     let request: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
13 |     let completion: Completion?
14 |     let dataTask: SessionDataTask
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:18:37: error: cannot find type 'URLRequest' in scope
16 |     // MARK: - Initializers
17 |
18 |     init(session: Session, request: URLRequest, completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
19 |         self.session = session
20 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:27:19: error: method does not override any method from its superclass
25 |     // MARK: - URLSessionTask
26 |
27 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
28 |         // Don't do anything
29 |     }
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:31:19: error: method does not override any method from its superclass
29 |     }
30 |
31 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
32 |         dataTask.resume()
33 |     }
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:3:32: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 1 | import Foundation
 2 |
 3 | final class SessionUploadTask: URLSessionUploadTask {
   |                                `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |
 5 |     // MARK: - Types
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
 4 |     var dictionary: [String: Any] {
 5 |         var dictionary = [String: Any]()
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
26 |
27 |
28 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
29 |     func appending(headers: [AnyHashable: Any]) -> URLRequest {
30 |         guard let headers = headers as? [String: String] else { return self }
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:49:11: error: cannot find type 'NSMutableURLRequest' in scope
47 |
48 |
49 | extension NSMutableURLRequest {
   |           `- error: cannot find type 'NSMutableURLRequest' in scope
50 |     convenience init(dictionary: [String: Any]) {
51 |         self.init()
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:72:11: error: cannot find type 'NSMutableURLRequest' in scope
70 |
71 |
72 | extension NSMutableURLRequest {
   |           `- error: cannot find type 'NSMutableURLRequest' in scope
73 |     func appendHeaders(_ headers: [AnyHashable: Any]) {
74 |         var existingHeaders = allHTTPHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:6:18: error: property does not override any property from its superclass
 4 | class URLResponse: Foundation.URLResponse {
 5 |     private var _URL: Foundation.URL?
 6 |     override var url: Foundation.URL? {
   |                  `- error: property does not override any property from its superclass
 7 |         get {
 8 |             return _URL ?? super.url
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:4:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | // There isn't a mutable URLResponse, so we have to make our own.
 4 | class URLResponse: Foundation.URLResponse {
   |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     private var _URL: Foundation.URL?
 6 |     override var url: Foundation.URL? {
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/DVR/URLResponse.swift:18:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 |
17 |
18 | extension Foundation.URLResponse {
   | `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 |     var dictionary: [String: Any] {
20 |         if let url = url?.absoluteString {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/12] Compiling DVR Interaction.swift
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
  5 |     // MARK: - Properties
  6 |
  7 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
  8 |     let response: Foundation.URLResponse
  9 |     let responseData: Data?
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:8:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |
  7 |     let request: URLRequest
  8 |     let response: Foundation.URLResponse
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     let responseData: Data?
 10 |     let recordedAt: Date
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/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |     // MARK: - Initializers
 14 |
 15 |     init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |         self.request = request
 17 |         self.response = response
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     // MARK: - Initializers
 14 |
 15 |     init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
    |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |         self.request = request
 17 |         self.response = response
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/DVR/Interaction.swift:84:48: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'dictionary'
 82 |         ]
 83 |
 84 |         var responseDictionary = self.response.dictionary
    |                                                `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'dictionary'
 85 |
 86 |         if let httpResponse = response as? Foundation.HTTPURLResponse {
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:86:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 84 |         var responseDictionary = self.response.dictionary
 85 |
 86 |         if let httpResponse = response as? Foundation.HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 87 |             responseDictionary["headers"] = httpResponse.allHeaderFields
 88 |             responseDictionary["status"] = httpResponse.statusCode
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:86:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         var responseDictionary = self.response.dictionary
 85 |
 86 |         if let httpResponse = response as? Foundation.HTTPURLResponse {
    |                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |             responseDictionary["headers"] = httpResponse.allHeaderFields
 88 |             responseDictionary["status"] = 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/DVR/Interaction.swift:87:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 85 |
 86 |         if let httpResponse = response as? Foundation.HTTPURLResponse {
 87 |             responseDictionary["headers"] = httpResponse.allHeaderFields
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 88 |             responseDictionary["status"] = httpResponse.statusCode
 89 |         }
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:88:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |         if let httpResponse = response as? Foundation.HTTPURLResponse {
 87 |             responseDictionary["headers"] = httpResponse.allHeaderFields
 88 |             responseDictionary["status"] = httpResponse.statusCode
    |                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 89 |         }
 90 |
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:105:24: error: cannot find 'NSMutableURLRequest' in scope
103 |             let recordedAt = dictionary["recorded_at"] as? TimeInterval else { return nil }
104 |
105 |         self.request = NSMutableURLRequest(dictionary: request) as URLRequest
    |                        `- error: cannot find 'NSMutableURLRequest' in scope
106 |         self.response = HTTPURLResponse(dictionary: response)
107 |         self.recordedAt = Date(timeIntervalSince1970: recordedAt)
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:105:68: error: cannot find type 'URLRequest' in scope
103 |             let recordedAt = dictionary["recorded_at"] as? TimeInterval else { return nil }
104 |
105 |         self.request = NSMutableURLRequest(dictionary: request) as URLRequest
    |                                                                    `- error: cannot find type 'URLRequest' in scope
106 |         self.response = HTTPURLResponse(dictionary: response)
107 |         self.recordedAt = Date(timeIntervalSince1970: recordedAt)
[11/12] Compiling DVR Cassette.swift
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
19 |     // MARK: - Functions
20 |
21 |     func interactionForRequest(_ request: URLRequest) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         for interaction in interactions {
23 |             let interactionRequest = interaction.request
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
  5 |     // MARK: - Properties
  6 |
  7 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
  8 |     let response: Foundation.URLResponse
  9 |     let responseData: Data?
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:56:19: error: cannot find type 'URLRequest' in scope
54 | }
55 |
56 | private extension URLRequest {
   |                   `- error: cannot find type 'URLRequest' in scope
57 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
58 |         guard let body1 = self.httpBody,
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |     // MARK: - Initializers
 14 |
 15 |     init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |         self.request = request
 17 |         self.response = response
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:9:18: error: property does not override any property from its superclass
 7 |
 8 |     private var _url: URL?
 9 |     override var url: URL? {
   |                  `- error: property does not override any property from its superclass
10 |         get {
11 |             return _url ?? super.url
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:20:18: error: property does not override any property from its superclass
18 |
19 |     private var _statusCode: Int?
20 |     override var statusCode: Int {
   |                  `- error: property does not override any property from its superclass
21 |         get {
22 |             return _statusCode ?? super.statusCode
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:31:18: error: property does not override any property from its superclass
29 |
30 |     private var _allHeaderFields: [AnyHashable: Any]?
31 |     override var allHeaderFields: [AnyHashable: Any] {
   |                  `- error: property does not override any property from its superclass
32 |         get {
33 |             return _allHeaderFields ?? super.allHeaderFields
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:4:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | // There isn't a mutable HTTPURLResponse, so we have to make our own.
 4 | class HTTPURLResponse: Foundation.HTTPURLResponse {
   |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     // MARK: - Properties
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/DVR/HTTPURLResponse.swift:11:28: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
 9 |     override var url: URL? {
10 |         get {
11 |             return _url ?? super.url
   |                            `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
12 |         }
13 |
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:22:35: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
20 |     override var statusCode: Int {
21 |         get {
22 |             return _statusCode ?? super.statusCode
   |                                   `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
23 |         }
24 |
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:33:40: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
31 |     override var allHeaderFields: [AnyHashable: Any] {
32 |         get {
33 |             return _allHeaderFields ?? super.allHeaderFields
   |                                        `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
34 |         }
35 |
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:18: error: argument passed to call that takes no arguments
45 |         let url = URL(string: dictionary["url"] as! String)!
46 |
47 |         self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
   |                  `- error: argument passed to call that takes no arguments
48 |
49 |         if let headers = dictionary["headers"] as? [String: String] {
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:39: error: 'nil' requires a contextual type
45 |         let url = URL(string: dictionary["url"] as! String)!
46 |
47 |         self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
   |                                       `- error: 'nil' requires a contextual type
48 |
49 |         if let headers = dictionary["headers"] as? [String: String] {
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:88: error: 'nil' requires a contextual type
45 |         let url = URL(string: dictionary["url"] as! String)!
46 |
47 |         self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
   |                                                                                        `- error: 'nil' requires a contextual type
48 |
49 |         if let headers = dictionary["headers"] as? [String: String] {
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:57:53: error: cannot find type 'URLRequest' in scope
55 |
56 | private extension URLRequest {
57 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
   |                                                     `- error: cannot find type 'URLRequest' in scope
58 |         guard let body1 = self.httpBody,
59 |             let body2 = request.httpBody,
[12/12] Compiling DVR HTTPURLResponse.swift
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
19 |     // MARK: - Functions
20 |
21 |     func interactionForRequest(_ request: URLRequest) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         for interaction in interactions {
23 |             let interactionRequest = interaction.request
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
  5 |     // MARK: - Properties
  6 |
  7 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
  8 |     let response: Foundation.URLResponse
  9 |     let responseData: Data?
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:56:19: error: cannot find type 'URLRequest' in scope
54 | }
55 |
56 | private extension URLRequest {
   |                   `- error: cannot find type 'URLRequest' in scope
57 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
58 |         guard let body1 = self.httpBody,
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |     // MARK: - Initializers
 14 |
 15 |     init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |         self.request = request
 17 |         self.response = response
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:9:18: error: property does not override any property from its superclass
 7 |
 8 |     private var _url: URL?
 9 |     override var url: URL? {
   |                  `- error: property does not override any property from its superclass
10 |         get {
11 |             return _url ?? super.url
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:20:18: error: property does not override any property from its superclass
18 |
19 |     private var _statusCode: Int?
20 |     override var statusCode: Int {
   |                  `- error: property does not override any property from its superclass
21 |         get {
22 |             return _statusCode ?? super.statusCode
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:31:18: error: property does not override any property from its superclass
29 |
30 |     private var _allHeaderFields: [AnyHashable: Any]?
31 |     override var allHeaderFields: [AnyHashable: Any] {
   |                  `- error: property does not override any property from its superclass
32 |         get {
33 |             return _allHeaderFields ?? super.allHeaderFields
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:4:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | // There isn't a mutable HTTPURLResponse, so we have to make our own.
 4 | class HTTPURLResponse: Foundation.HTTPURLResponse {
   |                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     // MARK: - Properties
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/DVR/HTTPURLResponse.swift:11:28: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
 9 |     override var url: URL? {
10 |         get {
11 |             return _url ?? super.url
   |                            `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
12 |         }
13 |
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:22:35: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
20 |     override var statusCode: Int {
21 |         get {
22 |             return _statusCode ?? super.statusCode
   |                                   `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
23 |         }
24 |
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:33:40: error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
31 |     override var allHeaderFields: [AnyHashable: Any] {
32 |         get {
33 |             return _allHeaderFields ?? super.allHeaderFields
   |                                        `- error: 'super' cannot be used in class 'HTTPURLResponse' because it has no superclass
34 |         }
35 |
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:18: error: argument passed to call that takes no arguments
45 |         let url = URL(string: dictionary["url"] as! String)!
46 |
47 |         self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
   |                  `- error: argument passed to call that takes no arguments
48 |
49 |         if let headers = dictionary["headers"] as? [String: String] {
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:39: error: 'nil' requires a contextual type
45 |         let url = URL(string: dictionary["url"] as! String)!
46 |
47 |         self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
   |                                       `- error: 'nil' requires a contextual type
48 |
49 |         if let headers = dictionary["headers"] as? [String: String] {
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:88: error: 'nil' requires a contextual type
45 |         let url = URL(string: dictionary["url"] as! String)!
46 |
47 |         self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
   |                                                                                        `- error: 'nil' requires a contextual type
48 |
49 |         if let headers = dictionary["headers"] as? [String: String] {
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:57:53: error: cannot find type 'URLRequest' in scope
55 |
56 | private extension URLRequest {
57 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
   |                                                     `- error: cannot find type 'URLRequest' in scope
58 |         guard let body1 = self.httpBody,
59 |             let body2 = request.httpBody,
BUILD FAILURE 6.2 linux