The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DVR, reference master (65beaf), with Swift 6.3 for Wasm on 10 Apr 2026 19:01:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/venmo/DVR.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 65beaf9 Select response based on request headers (#96)
Cloned https://github.com/venmo/DVR.git
Revision (git rev-parse @):
65beaf91fc0d7a46d4860028d1087ee5dbb8e382
SUCCESS checkout https://github.com/venmo/DVR.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/venmo/DVR.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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
[4/12] 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 headersToCheck: [String]
14 |     let completion: Completion?
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
17 |     // MARK: - Initializers
18 |
19 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
20 |         self.session = session
21 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:29:19: error: method does not override any method from its superclass
27 |     // MARK: - URLSessionTask
28 |
29 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
30 |         // Don't do anything
31 |     }
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:33:19: error: method does not override any method from its superclass
31 |     }
32 |
33 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
34 |         dataTask.resume()
35 |     }
/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:30:37: error: cannot find type 'URLRequest' in scope
28 |     // MARK: - Initializers
29 |
30 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
31 |         self.session = session
32 |         self.request = request
[5/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:21:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var recording = false
 20 |     private var needsPersistence = false
 21 |     private var outstandingTasks = [URLSessionTask]()
    |                                     `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completedInteractions = [Interaction]()
 23 |     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:25:33: error: cannot find type 'URLSessionDelegate' in scope
 23 |     private var completionBlock: (() -> Void)?
 24 |
 25 |     override open var delegate: URLSessionDelegate? {
    |                                 `- error: cannot find type 'URLSessionDelegate' in scope
 26 |         return backingSession.delegate
 27 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:31:148: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     // MARK: - Initializers
 30 |
 31 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
    |                                                                                                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         self.outputDirectory = outputDirectory
 33 |         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:31:172: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |     // MARK: - Initializers
 30 |
 31 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
    |                                                                                                                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |         self.outputDirectory = outputDirectory
 33 |         self.cassetteName = cassetteName
/host/spi-builder-workspace/Sources/DVR/Session.swift:31:172: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 29 |     // MARK: - Initializers
 30 |
 31 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
    |                                                                                                                                                                            `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
 32 |         self.outputDirectory = outputDirectory
 33 |         self.cassetteName = cassetteName
/host/spi-builder-workspace/Sources/DVR/Session.swift:43:51: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     // MARK: - URLSession
 42 |
 43 |     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.
 44 |         return addDataTask(URLRequest(url: url))
 45 |     }
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:43:24: error: method does not override any method from its superclass
 41 |     // MARK: - URLSession
 42 |
 43 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
    |                        `- error: method does not override any method from its superclass
 44 |         return addDataTask(URLRequest(url: url))
 45 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:47:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     }
 46 |
 47 |     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.
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 49 |     }
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:47:132: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     }
 46 |
 47 |     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.
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 49 |     }
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:47:24: error: method does not override any method from its superclass
 45 |     }
 46 |
 47 |     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
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 49 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:47: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |
 51 |     open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 52 |         return addDataTask(request)
 53 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:62: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |     }
 50 |
 51 |     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.
 52 |         return addDataTask(request)
 53 |     }
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:55:47: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 56 |         return addDataTask(request, completionHandler: completionHandler)
 57 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:55:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     }
 54 |
 55 |     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.
 56 |         return addDataTask(request, completionHandler: completionHandler)
 57 |     }
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:55:143: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     }
 54 |
 55 |     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.
 56 |         return addDataTask(request, completionHandler: completionHandler)
 57 |     }
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:59:51: error: cannot find type 'URLRequest' in scope
 57 |     }
 58 |
 59 |     open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 60 |         return addDownloadTask(request)
 61 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:59:66: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     }
 58 |
 59 |     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.
 60 |         return addDownloadTask(request)
 61 |     }
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:63:51: error: cannot find type 'URLRequest' in scope
 61 |     }
 62 |
 63 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 64 |         return addDownloadTask(request, completionHandler: completionHandler)
 65 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:63:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     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.
 64 |         return addDownloadTask(request, completionHandler: completionHandler)
 65 |     }
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:63:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     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.
 64 |         return addDownloadTask(request, completionHandler: completionHandler)
 65 |     }
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:67:49: error: cannot find type 'URLRequest' in scope
 65 |     }
 66 |
 67 |     open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 68 |         return addUploadTask(request, fromData: bodyData)
 69 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:67:85: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     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.
 68 |         return addUploadTask(request, fromData: bodyData)
 69 |     }
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:71:50: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     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
 72 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 73 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:71:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     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.
 72 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 73 |     }
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:71:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     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.
 72 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 73 |     }
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:75:49: error: cannot find type 'URLRequest' in scope
 73 |     }
 74 |
 75 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 76 |         let data = try! Data(contentsOf: fileURL)
 77 |         return addUploadTask(request, fromData: data)
/host/spi-builder-workspace/Sources/DVR/Session.swift:75:87: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     }
 74 |
 75 |     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.
 76 |         let data = try! Data(contentsOf: fileURL)
 77 |         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:80:49: error: cannot find type 'URLRequest' in scope
 78 |     }
 79 |
 80 |     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
 81 |         let data = try! Data(contentsOf: fileURL)
 82 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:80:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     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.
 81 |         let data = try! Data(contentsOf: fileURL)
 82 |         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:80:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     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.
 81 |         let data = try! Data(contentsOf: fileURL)
 82 |         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:85:24: error: method does not override any method from its superclass
 83 |     }
 84 |
 85 |     open override func invalidateAndCancel() {
    |                        `- error: method does not override any method from its superclass
 86 |         recording = false
 87 |         outstandingTasks.removeAll()
/host/spi-builder-workspace/Sources/DVR/Session.swift:136:29: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |     }
135 |
136 |     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.
137 |         needsPersistence = needsPersistence || !playback
138 |
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:161:41: error: cannot find type 'URLRequest' in scope
159 |     // MARK: - Private
160 |
161 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:161:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     // MARK: - Private
160 |
161 |     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.
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, 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:161:136: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     // MARK: - Private
160 |
161 |     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.
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, 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:168:45: error: cannot find type 'URLRequest' in scope
166 |     }
167 |
168 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
    |                                             `- error: cannot find type 'URLRequest' in scope
169 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
170 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:168:118: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |     }
167 |
168 |     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.
169 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
170 |         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:175:43: error: cannot find type 'URLRequest' in scope
173 |     }
174 |
175 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
    |                                           `- error: cannot find type 'URLRequest' in scope
176 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
177 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
/host/spi-builder-workspace/Sources/DVR/Session.swift:175:136: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     }
174 |
175 |     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.
176 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
177 |         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:183:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     private func addTask(_ task: URLSessionTask) {
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |         let shouldRecord = !recording
185 |         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:26:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
 24 |
 25 |     override open var delegate: URLSessionDelegate? {
 26 |         return backingSession.delegate
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
 27 |     }
 28 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:37:9: error: 'super' cannot be used in class 'Session' because it has no superclass
 35 |         self.backingSession = backingSession
 36 |         self.headersToCheck = headersToCheck
 37 |         super.init()
    |         `- error: 'super' cannot be used in class 'Session' because it has no superclass
 38 |     }
 39 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:44:28: error: cannot find 'URLRequest' in scope
 42 |
 43 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
 44 |         return addDataTask(URLRequest(url: url))
    |                            `- error: cannot find 'URLRequest' in scope
 45 |     }
 46 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:48:28: error: cannot find 'URLRequest' in scope
 46 |
 47 |     open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
    |                            `- error: cannot find 'URLRequest' in scope
 49 |     }
 50 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:88:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 86 |         recording = false
 87 |         outstandingTasks.removeAll()
 88 |         backingSession.invalidateAndCancel()
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 89 |     }
 90 |
/host/spi-builder-workspace/Sources/DVR/Session.swift:139:41: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Equatable' because 'Equatable' has static requirements
137 |         needsPersistence = needsPersistence || !playback
138 |
139 |         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
140 |             outstandingTasks.remove(at: index)
141 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:149:40: error: cannot find type 'URLSessionDataDelegate' in scope
147 |         }
148 |
149 |         if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
    |                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
150 |             delegate.urlSession?(self, dataTask: task, didReceive: data as Data)
151 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:149:80: warning: conditional cast from 'URLSessionTask' (aka 'AnyObject') to 'URLSessionDataTask' (aka 'AnyObject') always succeeds
147 |         }
148 |
149 |         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
150 |             delegate.urlSession?(self, dataTask: task, didReceive: data as Data)
151 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:149:84: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |         }
148 |
149 |         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.
150 |             delegate.urlSession?(self, dataTask: task, didReceive: data as Data)
151 |         }
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:153:40: error: cannot find type 'URLSessionTaskDelegate' in scope
151 |         }
152 |
153 |         if let delegate = delegate as? URLSessionTaskDelegate {
    |                                        `- error: cannot find type 'URLSessionTaskDelegate' in scope
154 |             delegate.urlSession?(self, task: task, didCompleteWithError: nil)
155 |         }
/host/spi-builder-workspace/Sources/DVR/Session.swift:154:74: error: 'nil' requires a contextual type
152 |
153 |         if let delegate = delegate as? URLSessionTaskDelegate {
154 |             delegate.urlSession?(self, task: task, didCompleteWithError: nil)
    |                                                                          `- error: 'nil' requires a contextual type
155 |         }
156 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:162:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
160 |
161 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, completion: completionHandler)
164 |         addTask(task)
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
28 |     // MARK: - Initializers
29 |
30 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
31 |         self.session = session
32 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/Session.swift:169:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
167 |
168 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
169 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
170 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
171 |         addTask(task)
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
17 |     // MARK: - Initializers
18 |
19 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
20 |         self.session = session
21 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/Session.swift:176:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
174 |
175 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
176 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
177 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
178 |         let task = SessionUploadTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:177:32: error: generic parameter 'E' could not be inferred
175 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
176 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
177 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
    |                                `- error: generic parameter 'E' could not be inferred
178 |         let task = SessionUploadTask(session: self, request: modifiedRequest, completion: completionHandler)
179 |         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:19:37: error: cannot find type 'URLRequest' in scope
17 |     // MARK: - Initializers
18 |
19 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
20 |         self.session = session
21 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/Session.swift:229:82: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
227 |
228 |             if let data = string.data(using: String.Encoding.utf8.rawValue) {
229 |                 try? data.write(to: URL(fileURLWithPath: outputPath), options: [.atomic])
    |                                                                                  `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
230 |                 print("[DVR] Persisted cassette at \(outputPath). Please add this file to your test target")
231 |                 return
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[6/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, headersToCheck: [String] = []) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         var match: Interaction?
23 |         for interaction in interactions {
/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:63:19: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | private extension URLRequest {
   |                   `- error: cannot find type 'URLRequest' in scope
64 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
65 |         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:64:53: error: cannot find type 'URLRequest' in scope
62 |
63 | private extension URLRequest {
64 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
   |                                                     `- error: cannot find type 'URLRequest' in scope
65 |         guard let body1 = self.httpBody,
66 |             let body2 = request.httpBody,
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:76:52: error: cannot find type 'URLRequest' in scope
74 |     }
75 |
76 |     func hasHeadersEqualToThatOfRequest(_ request: URLRequest, headersToCheck: [String]) -> Bool {
   |                                                    `- error: cannot find type 'URLRequest' in scope
77 |         let request1Headers = allHTTPHeaderFields ?? [:]
78 |         let request2Headers = request.allHTTPHeaderFields ?? [:]
[7/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, headersToCheck: [String] = []) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         var match: Interaction?
23 |         for interaction in interactions {
/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:63:19: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | private extension URLRequest {
   |                   `- error: cannot find type 'URLRequest' in scope
64 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
65 |         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:64:53: error: cannot find type 'URLRequest' in scope
62 |
63 | private extension URLRequest {
64 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
   |                                                     `- error: cannot find type 'URLRequest' in scope
65 |         guard let body1 = self.httpBody,
66 |             let body2 = request.httpBody,
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:76:52: error: cannot find type 'URLRequest' in scope
74 |     }
75 |
76 |     func hasHeadersEqualToThatOfRequest(_ request: URLRequest, headersToCheck: [String]) -> Bool {
   |                                                    `- error: cannot find type 'URLRequest' in scope
77 |         let request1Headers = allHTTPHeaderFields ?? [:]
78 |         let request2Headers = request.allHTTPHeaderFields ?? [:]
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/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, headersToCheck: [String] = []) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         var match: Interaction?
23 |         for interaction in interactions {
/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:63:19: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | private extension URLRequest {
   |                   `- error: cannot find type 'URLRequest' in scope
64 |     func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
65 |         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:21:37: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var recording = false
 20 |     private var needsPersistence = false
 21 |     private var outstandingTasks = [URLSessionTask]()
    |                                     `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completedInteractions = [Interaction]()
 23 |     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:25:33: error: cannot find type 'URLSessionDelegate' in scope
 23 |     private var completionBlock: (() -> Void)?
 24 |
 25 |     override open var delegate: URLSessionDelegate? {
    |                                 `- error: cannot find type 'URLSessionDelegate' in scope
 26 |         return backingSession.delegate
 27 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:31:148: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     // MARK: - Initializers
 30 |
 31 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
    |                                                                                                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |         self.outputDirectory = outputDirectory
 33 |         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:31:172: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 29 |     // MARK: - Initializers
 30 |
 31 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
    |                                                                                                                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |         self.outputDirectory = outputDirectory
 33 |         self.cassetteName = cassetteName
/host/spi-builder-workspace/Sources/DVR/Session.swift:31:172: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 29 |     // MARK: - Initializers
 30 |
 31 |     public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
    |                                                                                                                                                                            `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
 32 |         self.outputDirectory = outputDirectory
 33 |         self.cassetteName = cassetteName
/host/spi-builder-workspace/Sources/DVR/Session.swift:43:51: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     // MARK: - URLSession
 42 |
 43 |     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.
 44 |         return addDataTask(URLRequest(url: url))
 45 |     }
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:43:24: error: method does not override any method from its superclass
 41 |     // MARK: - URLSession
 42 |
 43 |     open override func dataTask(with url: URL) -> URLSessionDataTask {
    |                        `- error: method does not override any method from its superclass
 44 |         return addDataTask(URLRequest(url: url))
 45 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:47:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     }
 46 |
 47 |     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.
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 49 |     }
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:47:132: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     }
 46 |
 47 |     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.
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 49 |     }
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:47:24: error: method does not override any method from its superclass
 45 |     }
 46 |
 47 |     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
 48 |         return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
 49 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:47: error: cannot find type 'URLRequest' in scope
 49 |     }
 50 |
 51 |     open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 52 |         return addDataTask(request)
 53 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:62: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |     }
 50 |
 51 |     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.
 52 |         return addDataTask(request)
 53 |     }
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:55:47: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
    |                                               `- error: cannot find type 'URLRequest' in scope
 56 |         return addDataTask(request, completionHandler: completionHandler)
 57 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:55:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     }
 54 |
 55 |     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.
 56 |         return addDataTask(request, completionHandler: completionHandler)
 57 |     }
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:55:143: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |     }
 54 |
 55 |     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.
 56 |         return addDataTask(request, completionHandler: completionHandler)
 57 |     }
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:59:51: error: cannot find type 'URLRequest' in scope
 57 |     }
 58 |
 59 |     open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 60 |         return addDownloadTask(request)
 61 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:59:66: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     }
 58 |
 59 |     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.
 60 |         return addDownloadTask(request)
 61 |     }
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:63:51: error: cannot find type 'URLRequest' in scope
 61 |     }
 62 |
 63 |     open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 64 |         return addDownloadTask(request, completionHandler: completionHandler)
 65 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:63:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     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.
 64 |         return addDownloadTask(request, completionHandler: completionHandler)
 65 |     }
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:63:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     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.
 64 |         return addDownloadTask(request, completionHandler: completionHandler)
 65 |     }
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:67:49: error: cannot find type 'URLRequest' in scope
 65 |     }
 66 |
 67 |     open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 68 |         return addUploadTask(request, fromData: bodyData)
 69 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:67:85: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     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.
 68 |         return addUploadTask(request, fromData: bodyData)
 69 |     }
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:71:50: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     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
 72 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 73 |     }
/host/spi-builder-workspace/Sources/DVR/Session.swift:71:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     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.
 72 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 73 |     }
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:71:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     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.
 72 |         return addUploadTask(request, fromData: bodyData, completionHandler: completionHandler)
 73 |     }
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:75:49: error: cannot find type 'URLRequest' in scope
 73 |     }
 74 |
 75 |     open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
    |                                                 `- error: cannot find type 'URLRequest' in scope
 76 |         let data = try! Data(contentsOf: fileURL)
 77 |         return addUploadTask(request, fromData: data)
/host/spi-builder-workspace/Sources/DVR/Session.swift:75:87: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     }
 74 |
 75 |     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.
 76 |         let data = try! Data(contentsOf: fileURL)
 77 |         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:80:49: error: cannot find type 'URLRequest' in scope
 78 |     }
 79 |
 80 |     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
 81 |         let data = try! Data(contentsOf: fileURL)
 82 |         return addUploadTask(request, fromData: data, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:80:132: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     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.
 81 |         let data = try! Data(contentsOf: fileURL)
 82 |         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:80:166: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     }
 79 |
 80 |     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.
 81 |         let data = try! Data(contentsOf: fileURL)
 82 |         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:85:24: error: method does not override any method from its superclass
 83 |     }
 84 |
 85 |     open override func invalidateAndCancel() {
    |                        `- error: method does not override any method from its superclass
 86 |         recording = false
 87 |         outstandingTasks.removeAll()
/host/spi-builder-workspace/Sources/DVR/Session.swift:136:29: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |     }
135 |
136 |     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.
137 |         needsPersistence = needsPersistence || !playback
138 |
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:161:41: error: cannot find type 'URLRequest' in scope
159 |     // MARK: - Private
160 |
161 |     private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
    |                                         `- error: cannot find type 'URLRequest' in scope
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:161:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     // MARK: - Private
160 |
161 |     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.
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, 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:161:136: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     // MARK: - Private
160 |
161 |     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.
162 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
163 |         let task = SessionDataTask(session: self, request: modifiedRequest, headersToCheck: headersToCheck, 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:168:45: error: cannot find type 'URLRequest' in scope
166 |     }
167 |
168 |     private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
    |                                             `- error: cannot find type 'URLRequest' in scope
169 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
170 |         let task = SessionDownloadTask(session: self, request: modifiedRequest, completion: completionHandler)
/host/spi-builder-workspace/Sources/DVR/Session.swift:168:118: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |     }
167 |
168 |     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.
169 |         let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
170 |         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:175:43: error: cannot find type 'URLRequest' in scope
173 |     }
174 |
175 |     private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
    |                                           `- error: cannot find type 'URLRequest' in scope
176 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
177 |         modifiedRequest = data.map(modifiedRequest.appending) ?? modifiedRequest
/host/spi-builder-workspace/Sources/DVR/Session.swift:175:136: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     }
174 |
175 |     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.
176 |         var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
177 |         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:183:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     private func addTask(_ task: URLSessionTask) {
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |         let shouldRecord = !recording
185 |         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 headersToCheck: [String]
15 |     let completion: Completion?
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:16:25: error: cannot find 'DispatchQueue' in scope
14 |     let headersToCheck: [String]
15 |     let completion: Completion?
16 |     private let queue = DispatchQueue(label: "com.venmo.DVR.sessionDataTaskQueue", attributes: [])
   |                         `- error: cannot find 'DispatchQueue' in scope
17 |     private var interaction: Interaction?
18 |
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:19:18: error: property does not override any property from its superclass
17 |     private var interaction: Interaction?
18 |
19 |     override var response: Foundation.URLResponse? {
   |                  `- error: property does not override any property from its superclass
20 |         return interaction?.response
21 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:19:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var interaction: Interaction?
18 |
19 |     override var response: Foundation.URLResponse? {
   |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         return interaction?.response
21 |     }
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:23:34: error: cannot find type 'URLRequest' in scope
21 |     }
22 |
23 |     override var currentRequest: URLRequest? {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         return request
25 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
28 |     // MARK: - Initializers
29 |
30 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
31 |         self.session = session
32 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:40:19: error: method does not override any method from its superclass
38 |     // MARK: - URLSessionTask
39 |
40 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
41 |         // Don't do anything
42 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:44:19: error: method does not override any method from its superclass
42 |     }
43 |
44 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
45 |         let cassette = session.cassette
46 |
/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 headersToCheck: [String]
14 |     let completion: Completion?
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
17 |     // MARK: - Initializers
18 |
19 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
20 |         self.session = session
21 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:28:19: error: method does not override any method from its superclass
26 |     // MARK: - URLSessionTask
27 |
28 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
29 |         // Don't do anything
30 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:32:19: error: method does not override any method from its superclass
30 |     }
31 |
32 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
33 |         let task = SessionDataTask(session: session, request: request, headersToCheck: headersToCheck) { data, response, error in
34 |             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 headersToCheck: [String]
14 |     let completion: Completion?
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
17 |     // MARK: - Initializers
18 |
19 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
20 |         self.session = session
21 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:29:19: error: method does not override any method from its superclass
27 |     // MARK: - URLSessionTask
28 |
29 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
30 |         // Don't do anything
31 |     }
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:33:19: error: method does not override any method from its superclass
31 |     }
32 |
33 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
34 |         dataTask.resume()
35 |     }
/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>
[9/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)
[10/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 headersToCheck: [String]
15 |     let completion: Completion?
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:16:25: error: cannot find 'DispatchQueue' in scope
14 |     let headersToCheck: [String]
15 |     let completion: Completion?
16 |     private let queue = DispatchQueue(label: "com.venmo.DVR.sessionDataTaskQueue", attributes: [])
   |                         `- error: cannot find 'DispatchQueue' in scope
17 |     private var interaction: Interaction?
18 |
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:19:18: error: property does not override any property from its superclass
17 |     private var interaction: Interaction?
18 |
19 |     override var response: Foundation.URLResponse? {
   |                  `- error: property does not override any property from its superclass
20 |         return interaction?.response
21 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:19:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var interaction: Interaction?
18 |
19 |     override var response: Foundation.URLResponse? {
   |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         return interaction?.response
21 |     }
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:23:34: error: cannot find type 'URLRequest' in scope
21 |     }
22 |
23 |     override var currentRequest: URLRequest? {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         return request
25 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
28 |     // MARK: - Initializers
29 |
30 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
31 |         self.session = session
32 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:40:19: error: method does not override any method from its superclass
38 |     // MARK: - URLSessionTask
39 |
40 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
41 |         // Don't do anything
42 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:44:19: error: method does not override any method from its superclass
42 |     }
43 |
44 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
45 |         let cassette = session.cassette
46 |
/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, headersToCheck: [String] = []) -> Interaction? {
   |                                           `- error: cannot find type 'URLRequest' in scope
22 |         var match: Interaction?
23 |         for interaction in interactions {
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
67 |         }
68 |
69 |         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'
70 |
71 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:100: error: cannot infer type of closure parameter 'data' without a type annotation
67 |         }
68 |
69 |         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
70 |
71 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:106: error: cannot infer type of closure parameter 'response' without a type annotation
67 |         }
68 |
69 |         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
70 |
71 |             //Ensure we have a response
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:116: error: cannot infer type of closure parameter 'error' without a type annotation
67 |         }
68 |
69 |         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
70 |
71 |             //Ensure we have a response
[11/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 headersToCheck: [String]
14 |     let completion: Completion?
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
17 |     // MARK: - Initializers
18 |
19 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
20 |         self.session = session
21 |         self.request = request
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:28:19: error: method does not override any method from its superclass
26 |     // MARK: - URLSessionTask
27 |
28 |     override func cancel() {
   |                   `- error: method does not override any method from its superclass
29 |         // Don't do anything
30 |     }
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:32:19: error: method does not override any method from its superclass
30 |     }
31 |
32 |     override func resume() {
   |                   `- error: method does not override any method from its superclass
33 |         let task = SessionDataTask(session: session, request: request, headersToCheck: headersToCheck) { data, response, error in
34 |             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:30:37: error: cannot find type 'URLRequest' in scope
28 |     // MARK: - Initializers
29 |
30 |     init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
   |                                     `- error: cannot find type 'URLRequest' in scope
31 |         self.session = session
32 |         self.request = request
[12/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>
BUILD FAILURE 6.3 wasm