Build Information
Failed to build DVR with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/venmo/DVR.git
Reference: master
Cloned https://github.com/venmo/DVR.git into spi-builder-workspace
SUCCESS checkout https://github.com/venmo/DVR.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/9] 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.
typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:13:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:19:18: error: property does not override any property from its superclass
override var response: Foundation.URLResponse? {
~~~~~~~~ ^
/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.
override var response: Foundation.URLResponse? {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:23:34: error: cannot find type 'URLRequest' in scope
override var currentRequest: URLRequest? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:23:18: error: property does not override any property from its superclass
override var currentRequest: URLRequest? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:40:19: error: method does not override any method from its superclass
override func cancel() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:44:19: error: method does not override any method from its superclass
override func resume() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:3:13: error: only protocols can inherit from 'AnyObject'
final class SessionDataTask: URLSessionDataTask {
^
/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.
final class SessionDataTask: URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
func interactionForRequest(_ request: URLRequest, headersToCheck: [String] = []) -> Interaction? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:100: error: unable to infer type of a closure parameter 'data' in the current context
let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:106: error: unable to infer type of a closure parameter 'response' in the current context
let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:69:116: error: unable to infer type of a closure parameter 'error' in the current context
let task = session.backingSession.dataTask(with: request, completionHandler: { [weak self] data, response, error in
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:82:34: error: cannot convert value of type '_' to expected argument type 'Data?'
this.completion?(data, response, nil)
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:82:40: error: argument type '_' expected to be an instance of a class or class-constrained type
this.completion?(data, response, nil)
^
[2/10] Compiling DVR URLResponse.swift
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:18:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
extension Foundation.URLResponse {
^ ~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:6:18: error: property does not override any property from its superclass
override var url: Foundation.URL? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:4:7: error: only protocols can inherit from 'AnyObject'
class URLResponse: Foundation.URLResponse {
^
/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.
class URLResponse: Foundation.URLResponse {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:8:28: error: 'super' members cannot be referenced in a root class
return _URL ?? super.url
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Emitting module DVR
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:63:19: error: cannot find type 'URLRequest' in scope
private extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
func interactionForRequest(_ request: URLRequest, headersToCheck: [String] = []) -> Interaction? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:9:18: error: property does not override any property from its superclass
override var url: URL? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:20:18: error: property does not override any property from its superclass
override var statusCode: Int {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:31:18: error: property does not override any property from its superclass
override var allHeaderFields: [AnyHashable: Any] {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:4:7: error: only protocols can inherit from 'AnyObject'
class HTTPURLResponse: Foundation.HTTPURLResponse {
^
/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.
class HTTPURLResponse: Foundation.HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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.
let response: Foundation.URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
^~~~~~~~~~
/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.
init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public let backingSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
private var outstandingTasks = [URLSessionTask]()
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:25:33: error: cannot find type 'URLSessionDelegate' in scope
override open var delegate: URLSessionDelegate? {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:25:23: error: property does not override any property from its superclass
override open var delegate: URLSessionDelegate? {
~~~~~~~~ ^
/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.
public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:31:172: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
~~~~~~~~~~ ^~~~~~
/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.
open override func dataTask(with url: URL) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:43:24: error: method does not override any method from its superclass
open override func dataTask(with url: URL) -> URLSessionDataTask {
~~~~~~~~ ^
/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.
open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:47:24: error: method does not override any method from its superclass
open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:47: error: cannot find type 'URLRequest' in scope
open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
^~~~~~~~~~
/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.
open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:24: error: method does not override any method from its superclass
open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:55:47: error: cannot find type 'URLRequest' in scope
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~
/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.
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:55:24: error: method does not override any method from its superclass
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:59:51: error: cannot find type 'URLRequest' in scope
open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
^~~~~~~~~~
/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.
open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:59:24: error: method does not override any method from its superclass
open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:63:51: error: cannot find type 'URLRequest' in scope
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
^~~~~~~~~~
/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.
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:63:24: error: method does not override any method from its superclass
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:67:49: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:67:24: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:71:50: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:71:25: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:75:49: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:75:24: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:80:49: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:80:24: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:85:24: error: method does not override any method from its superclass
open override func invalidateAndCancel() {
~~~~~~~~ ^
/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.
func finishTask(_ task: URLSessionTask, interaction: Interaction, playback: Bool) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:161:41: error: cannot find type 'URLRequest' in scope
private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
^~~~~~~~~~
/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.
private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:168:45: error: cannot find type 'URLRequest' in scope
private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
^~~~~~~~~~
/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.
private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:175:43: error: cannot find type 'URLRequest' in scope
private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/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.
private func addTask(_ task: URLSessionTask) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:3:12: error: only protocols can inherit from 'AnyObject'
open class Session: URLSession {
^
/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.
open class Session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:13:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:19:18: error: property does not override any property from its superclass
override var response: Foundation.URLResponse? {
~~~~~~~~ ^
/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.
override var response: Foundation.URLResponse? {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:23:34: error: cannot find type 'URLRequest' in scope
override var currentRequest: URLRequest? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:23:18: error: property does not override any property from its superclass
override var currentRequest: URLRequest? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:40:19: error: method does not override any method from its superclass
override func cancel() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:44:19: error: method does not override any method from its superclass
override func resume() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:3:13: error: only protocols can inherit from 'AnyObject'
final class SessionDataTask: URLSessionDataTask {
^
/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.
final class SessionDataTask: URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/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.
typealias Completion = (URL?, Foundation.URLResponse?, NSError?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:28:19: error: method does not override any method from its superclass
override func cancel() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:32:19: error: method does not override any method from its superclass
override func resume() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:3:13: error: only protocols can inherit from 'AnyObject'
final class SessionDownloadTask: URLSessionDownloadTask {
^
/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.
final class SessionDownloadTask: URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/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.
typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:29:19: error: method does not override any method from its superclass
override func cancel() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:33:19: error: method does not override any method from its superclass
override func resume() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:3:13: error: only protocols can inherit from 'AnyObject'
final class SessionUploadTask: URLSessionUploadTask {
^
/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.
final class SessionUploadTask: URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:49:11: error: cannot find type 'NSMutableURLRequest' in scope
extension NSMutableURLRequest {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:72:11: error: cannot find type 'NSMutableURLRequest' in scope
extension NSMutableURLRequest {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:18:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
extension Foundation.URLResponse {
^ ~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:6:18: error: property does not override any property from its superclass
override var url: Foundation.URL? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/URLResponse.swift:4:7: error: only protocols can inherit from 'AnyObject'
class URLResponse: Foundation.URLResponse {
^
/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.
class URLResponse: Foundation.URLResponse {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[4/10] Compiling DVR Interaction.swift
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/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.
let response: Foundation.URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
^~~~~~~~~~
/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.
init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:84:48: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'dictionary'
var responseDictionary = self.response.dictionary
~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:86:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
if let httpResponse = response as? Foundation.HTTPURLResponse {
^
/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.
if let httpResponse = response as? Foundation.HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:87:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
responseDictionary["headers"] = httpResponse.allHeaderFields
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:88:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
responseDictionary["status"] = httpResponse.statusCode
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:105:24: error: cannot find 'NSMutableURLRequest' in scope
self.request = NSMutableURLRequest(dictionary: request) as URLRequest
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:105:68: error: cannot find type 'URLRequest' in scope
self.request = NSMutableURLRequest(dictionary: request) as URLRequest
^~~~~~~~~~
[5/10] Compiling DVR Cassette.swift
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:63:19: error: cannot find type 'URLRequest' in scope
private extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
func interactionForRequest(_ request: URLRequest, headersToCheck: [String] = []) -> Interaction? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:9:18: error: property does not override any property from its superclass
override var url: URL? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:20:18: error: property does not override any property from its superclass
override var statusCode: Int {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:31:18: error: property does not override any property from its superclass
override var allHeaderFields: [AnyHashable: Any] {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:4:7: error: only protocols can inherit from 'AnyObject'
class HTTPURLResponse: Foundation.HTTPURLResponse {
^
/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.
class HTTPURLResponse: Foundation.HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:11:28: error: 'super' members cannot be referenced in a root class
return _url ?? super.url
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:22:35: error: 'super' members cannot be referenced in a root class
return _statusCode ?? super.statusCode
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:33:40: error: 'super' members cannot be referenced in a root class
return _allHeaderFields ?? super.allHeaderFields
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:18: error: argument passed to call that takes no arguments
self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:39: error: 'nil' requires a contextual type
self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:88: error: 'nil' requires a contextual type
self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
^
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:64:53: error: cannot find type 'URLRequest' in scope
func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:76:52: error: cannot find type 'URLRequest' in scope
func hasHeadersEqualToThatOfRequest(_ request: URLRequest, headersToCheck: [String]) -> Bool {
^~~~~~~~~~
[6/10] Compiling DVR HTTPURLResponse.swift
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:63:19: error: cannot find type 'URLRequest' in scope
private extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:21:43: error: cannot find type 'URLRequest' in scope
func interactionForRequest(_ request: URLRequest, headersToCheck: [String] = []) -> Interaction? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:7:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Interaction.swift:15:19: error: cannot find type 'URLRequest' in scope
init(request: URLRequest, response: Foundation.URLResponse, responseData: Data? = nil, recordedAt: Date = Date()) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:9:18: error: property does not override any property from its superclass
override var url: URL? {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:20:18: error: property does not override any property from its superclass
override var statusCode: Int {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:31:18: error: property does not override any property from its superclass
override var allHeaderFields: [AnyHashable: Any] {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:4:7: error: only protocols can inherit from 'AnyObject'
class HTTPURLResponse: Foundation.HTTPURLResponse {
^
/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.
class HTTPURLResponse: Foundation.HTTPURLResponse {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:11:28: error: 'super' members cannot be referenced in a root class
return _url ?? super.url
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:22:35: error: 'super' members cannot be referenced in a root class
return _statusCode ?? super.statusCode
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:33:40: error: 'super' members cannot be referenced in a root class
return _allHeaderFields ?? super.allHeaderFields
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:18: error: argument passed to call that takes no arguments
self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:39: error: 'nil' requires a contextual type
self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
^
/host/spi-builder-workspace/Sources/DVR/HTTPURLResponse.swift:47:88: error: 'nil' requires a contextual type
self.init(url: url, mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
^
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:64:53: error: cannot find type 'URLRequest' in scope
func hasHTTPBodyEqualToThatOfRequest(_ request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Cassette.swift:76:52: error: cannot find type 'URLRequest' in scope
func hasHeadersEqualToThatOfRequest(_ request: URLRequest, headersToCheck: [String]) -> Bool {
^~~~~~~~~~
[7/10] 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.
public let backingSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
private var outstandingTasks = [URLSessionTask]()
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:25:33: error: cannot find type 'URLSessionDelegate' in scope
override open var delegate: URLSessionDelegate? {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:25:23: error: property does not override any property from its superclass
override open var delegate: URLSessionDelegate? {
~~~~~~~~ ^
/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.
public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:31:172: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(outputDirectory: String = "~/Desktop/DVR/", cassetteName: String, testBundle: Bundle = Session.defaultTestBundle!, backingSession: URLSession = URLSession.shared, headersToCheck: [String] = []) {
~~~~~~~~~~ ^~~~~~
/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.
open override func dataTask(with url: URL) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:43:24: error: method does not override any method from its superclass
open override func dataTask(with url: URL) -> URLSessionDataTask {
~~~~~~~~ ^
/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.
open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:47:24: error: method does not override any method from its superclass
open override func dataTask(with url: URL, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:47: error: cannot find type 'URLRequest' in scope
open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
^~~~~~~~~~
/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.
open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:51:24: error: method does not override any method from its superclass
open override func dataTask(with request: URLRequest) -> URLSessionDataTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:55:47: error: cannot find type 'URLRequest' in scope
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~
/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.
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:55:24: error: method does not override any method from its superclass
open override func dataTask(with request: URLRequest, completionHandler: @escaping ((Data?, Foundation.URLResponse?, Error?) -> Void)) -> URLSessionDataTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:59:51: error: cannot find type 'URLRequest' in scope
open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
^~~~~~~~~~
/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.
open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:59:24: error: method does not override any method from its superclass
open override func downloadTask(with request: URLRequest) -> URLSessionDownloadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:63:51: error: cannot find type 'URLRequest' in scope
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
^~~~~~~~~~
/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.
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:63:24: error: method does not override any method from its superclass
open override func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:67:49: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:67:24: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:71:50: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:71:25: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:75:49: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:75:24: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:80:49: error: cannot find type 'URLRequest' in scope
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:80:24: error: method does not override any method from its superclass
open override func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping (Data?, Foundation.URLResponse?, Error?) -> Void) -> URLSessionUploadTask {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/Session.swift:85:24: error: method does not override any method from its superclass
open override func invalidateAndCancel() {
~~~~~~~~ ^
/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.
func finishTask(_ task: URLSessionTask, interaction: Interaction, playback: Bool) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:161:41: error: cannot find type 'URLRequest' in scope
private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
^~~~~~~~~~
/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.
private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
private func addDataTask(_ request: URLRequest, completionHandler: ((Data?, Foundation.URLResponse?, NSError?) -> Void)? = nil) -> URLSessionDataTask {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:168:45: error: cannot find type 'URLRequest' in scope
private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
^~~~~~~~~~
/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.
private func addDownloadTask(_ request: URLRequest, completionHandler: SessionDownloadTask.Completion? = nil) -> URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:175:43: error: cannot find type 'URLRequest' in scope
private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
^~~~~~~~~~
/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.
private func addUploadTask(_ request: URLRequest, fromData data: Data?, completionHandler: SessionUploadTask.Completion? = nil) -> URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/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.
private func addTask(_ task: URLSessionTask) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:3:12: error: only protocols can inherit from 'AnyObject'
open class Session: URLSession {
^
/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.
open class Session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:37:9: error: 'super' members cannot be referenced in a root class
super.init()
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:44:28: error: cannot find 'URLRequest' in scope
return addDataTask(URLRequest(url: url))
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:48:28: error: cannot find 'URLRequest' in scope
return addDataTask(URLRequest(url: url), completionHandler: completionHandler)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:88:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
backingSession.invalidateAndCancel()
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/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
if let index = outstandingTasks.firstIndex(of: task) {
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:149:40: error: cannot find type 'URLSessionDataDelegate' in scope
if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:149:80: warning: conditional cast from 'URLSessionTask' (aka 'AnyObject') to 'URLSessionDataTask' (aka 'AnyObject') always succeeds
if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
^
/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.
if let delegate = delegate as? URLSessionDataDelegate, let task = task as? URLSessionDataTask, let data = interaction.responseData {
^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:153:40: error: cannot find type 'URLSessionTaskDelegate' in scope
if let delegate = delegate as? URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:154:74: error: 'nil' requires a contextual type
delegate.urlSession?(self, task: task, didCompleteWithError: nil)
^
/host/spi-builder-workspace/Sources/DVR/Session.swift:162:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:169:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
let modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/Session.swift:176:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
var modifiedRequest = backingSession.configuration.httpAdditionalHeaders.map(request.appending) ?? request
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
^~~~~~~~~~
[8/10] Compiling DVR URLRequest.swift
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:3:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:28:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:49:11: error: cannot find type 'NSMutableURLRequest' in scope
extension NSMutableURLRequest {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:72:11: error: cannot find type 'NSMutableURLRequest' in scope
extension NSMutableURLRequest {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:29:52: error: cannot find type 'URLRequest' in scope
func appending(headers: [AnyHashable: Any]) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/URLRequest.swift:41:36: error: cannot find type 'URLRequest' in scope
func appending(body: Data?) -> URLRequest {
^~~~~~~~~~
[9/10] 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.
typealias Completion = (Data?, Foundation.URLResponse?, NSError?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:29:19: error: method does not override any method from its superclass
override func cancel() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:33:19: error: method does not override any method from its superclass
override func resume() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionUploadTask.swift:3:13: error: only protocols can inherit from 'AnyObject'
final class SessionUploadTask: URLSessionUploadTask {
^
/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.
final class SessionUploadTask: URLSessionUploadTask {
^~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
public typealias URLSessionUploadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
^~~~~~~~~~
[10/10] 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.
typealias Completion = (URL?, Foundation.URLResponse?, NSError?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:12:18: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:19:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: Completion? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:28:19: error: method does not override any method from its superclass
override func cancel() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:32:19: error: method does not override any method from its superclass
override func resume() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:3:13: error: only protocols can inherit from 'AnyObject'
final class SessionDownloadTask: URLSessionDownloadTask {
^
/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.
final class SessionDownloadTask: URLSessionDownloadTask {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/DVR/SessionDataTask.swift:30:37: error: cannot find type 'URLRequest' in scope
init(session: Session, request: URLRequest, headersToCheck: [String] = [], completion: (Completion)? = nil) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DVR/SessionDownloadTask.swift:38:57: error: reference to member 'atomic' cannot be resolved without a contextual type
try? data.write(to: tempURL, options: [.atomic])
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1