Build Information
Failed to build URLSessionBackport, reference 0.2.0 (133026
), with Swift 6.0 for Linux on 2 Nov 2024 01:00:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:76:31: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | /// Some of the methods use a tiered approach, specifically those that require completion handlers, while others call all applicable delegates one after another.
75 | extension SessionDelegateProxy: URLSessionTaskDelegate {
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:99: error: cannot find type 'URLRequest' in scope
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:152: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:179: error: cannot find type 'URLRequest' in scope
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:78:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:88:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | }
87 |
88 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
90 | originalTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/URLSessionBackport/SessionDelegateProxy.swift:88:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | }
87 |
88 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
90 | originalTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/URLSessionBackport/SessionDelegateProxy.swift:93:140: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:93:182: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:93:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:93:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:93:103: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:103:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:103:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:103:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:103:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:113:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | }
112 |
113 | func urlSession(_ session: URLSession, task: URLSessionTask, needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:needNewBodyStream:) {
115 | taskDelegateMethod(session, task, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:113:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | }
112 |
113 | func urlSession(_ session: URLSession, task: URLSessionTask, needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:needNewBodyStream:) {
115 | taskDelegateMethod(session, task, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:123:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
125 | originalTaskDelegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
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/URLSessionBackport/SessionDelegateProxy.swift:123:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
125 | originalTaskDelegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
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/URLSessionBackport/SessionDelegateProxy.swift:131:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | // func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
130 |
131 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | let taskDelegate = taskMap[task.taskIdentifier]
133 | if let accumulator = taskDelegate?.dataAccumulator {
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/URLSessionBackport/SessionDelegateProxy.swift:131:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | // func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
130 |
131 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | let taskDelegate = taskMap[task.taskIdentifier]
133 | if let accumulator = taskDelegate?.dataAccumulator {
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/URLSessionBackport/SessionDelegateProxy.swift:152:33: error: cannot find type 'URLSessionDataDelegate' in scope
150 | }
151 |
152 | extension SessionDelegateProxy: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:153:31: error: cannot find type 'URLSessionDataDelegate' in scope
151 |
152 | extension SessionDelegateProxy: URLSessionDataDelegate {
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
| `- error: cannot find type 'URLSessionDataDelegate' in scope
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:155:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:155:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:155:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:155:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:177:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | }
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
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/URLSessionBackport/SessionDelegateProxy.swift:177:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | }
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
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/URLSessionBackport/SessionDelegateProxy.swift:177:98: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | }
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
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/URLSessionBackport/SessionDelegateProxy.swift:183:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:183:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:183:96: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:183:10: error: invalid redeclaration of 'urlSession(_:dataTask:didBecome:)'
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: invalid redeclaration of 'urlSession(_:dataTask:didBecome:)'
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:189:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | }
188 |
189 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
191 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:189:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | }
188 |
189 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
191 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:197:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:197:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, 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/URLSessionBackport/SessionDelegateProxy.swift:197:110: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:197:159: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:208:33: error: cannot find type 'URLSessionDownloadDelegate' in scope
206 | }
207 |
208 | extension SessionDelegateProxy: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
210 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:209:35: error: cannot find type 'URLSessionDownloadDelegate' in scope
207 |
208 | extension SessionDelegateProxy: URLSessionDownloadDelegate {
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
210 |
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:211:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
210 |
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | // Note that these methods are considered to be mandatory, which might cause issues?
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
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/URLSessionBackport/SessionDelegateProxy.swift:211:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
210 |
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | // Note that these methods are considered to be mandatory, which might cause issues?
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
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/URLSessionBackport/SessionDelegateProxy.swift:223:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | }
222 |
223 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
225 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/URLSessionBackport/SessionDelegateProxy.swift:223:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | }
222 |
223 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
225 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/URLSessionBackport/SessionDelegateProxy.swift:228:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | }
227 |
228 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
230 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/URLSessionBackport/SessionDelegateProxy.swift:228:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | }
227 |
228 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
230 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/URLSessionBackport/SessionDelegateProxy.swift:234:33: error: cannot find type 'URLSessionStreamDelegate' in scope
232 | }
233 |
234 | extension SessionDelegateProxy: URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
236 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:235:33: error: cannot find type 'URLSessionStreamDelegate' in scope
233 |
234 | extension SessionDelegateProxy: URLSessionStreamDelegate {
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:237:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, readClosedFor: streamTask)
239 | originalStreamDelegate?.urlSession?(session, readClosedFor: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:237:70: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, readClosedFor: streamTask)
239 | originalStreamDelegate?.urlSession?(session, readClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:242:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, writeClosedFor: streamTask)
244 | originalStreamDelegate?.urlSession?(session, writeClosedFor: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:242:71: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, writeClosedFor: streamTask)
244 | originalStreamDelegate?.urlSession?(session, writeClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:247:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | func urlSession(_ session: URLSession, betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
249 | originalStreamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:247:81: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | func urlSession(_ session: URLSession, betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
249 | originalStreamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:252:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | }
251 |
252 | func urlSession(_ session: URLSession, streamTask: URLSessionStreamTask, didBecome inputStream: InputStream, outputStream: OutputStream) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
254 | originalStreamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
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/URLSessionBackport/SessionDelegateProxy.swift:252:56: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | }
251 |
252 | func urlSession(_ session: URLSession, streamTask: URLSessionStreamTask, didBecome inputStream: InputStream, outputStream: OutputStream) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
254 | originalStreamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:258:33: error: cannot find type 'URLSessionWebSocketDelegate' in scope
256 | }
257 |
258 | extension SessionDelegateProxy: URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
260 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:259:36: error: cannot find type 'URLSessionWebSocketDelegate' in scope
257 |
258 | extension SessionDelegateProxy: URLSessionWebSocketDelegate {
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
260 |
261 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:261:59: error: cannot find type 'URLSessionWebSocketTask' in scope
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
260 |
261 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
262 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
263 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:261:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
260 |
261 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
262 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
263 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
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/URLSessionBackport/SessionDelegateProxy.swift:266:59: error: cannot find type 'URLSessionWebSocketTask' in scope
264 | }
265 |
266 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
268 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:266:108: error: cannot find type 'URLSessionWebSocketTask' in scope
264 | }
265 |
266 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
268 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:266:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
264 | }
265 |
266 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
268 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
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/URLSessionBackport/TaskDelegateHandler.swift:25:19: error: cannot find type 'URLSessionTaskDelegate' in scope
23 | }
24 | }
25 | var delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
26 | var dataAccumulator: DataAccumulator?
27 |
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:20:28: error: 'nil' requires a contextual type
18 | didSet { // Note: Not sure if this works when ARC sets the weak variable to nil…
19 | if task == nil {
20 | delegate = nil
| `- error: 'nil' requires a contextual type
21 | dataAccumulator = nil
22 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:17:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// Note that the handler should be discarded when no longer in use to clean up the task, delegate, and dataAccumulator.
16 | struct TaskDelegateHandler {
17 | weak var task: URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet { // Note: Not sure if this works when ARC sets the weak variable to nil…
19 | if task == nil {
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/URLSessionBackport/TaskDelegateHandler.swift:30:23: error: cannot find type 'URLSessionDataDelegate' in scope
28 | // MARK: - Convenience Casts
29 |
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
| `- error: cannot find type 'URLSessionDataDelegate' in scope
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:31:27: error: cannot find type 'URLSessionDownloadDelegate' in scope
29 |
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:32:25: error: cannot find type 'URLSessionStreamDelegate' in scope
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
34 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:33:28: error: cannot find type 'URLSessionWebSocketDelegate' in scope
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
34 | }
35 | #endif
/host/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
9 | import Foundation
10 |
11 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 |
13 | /// This is the namespace for backward compatible API.
/host/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:72:22: error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
70 | }
71 |
72 | extension URLSession.Backport {
| `- error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
73 | /// Resume a task, and schedule the delegate to receive callbacks through the backported proxy.
74 | /// - Parameters:
/host/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:93:22: error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
91 | }
92 |
93 | extension URLSession.Backport {
| `- error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
94 | /// Errors that can be thrown which are unique to the backporting effort
95 | public enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/Sources/URLSessionBackport/URLSessionBackport.swift:112:22: error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
110 | }
111 |
112 | extension URLSession.Backport {
| `- error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
113 |
114 | /// Backported convenience method to load data using an URLRequest, creates and resumes an URLSessionDataTask internally.
[5/8] Compiling URLSessionBackport SessionDelegateProxy.swift
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:19:28: error: cannot find type 'URLSessionDelegate' in scope
17 | var taskMap: [Int : TaskDelegateHandler] = [:]
18 |
19 | init(originalDelegate: URLSessionDelegate?) {
| `- error: cannot find type 'URLSessionDelegate' in scope
20 | self.originalDelegate = originalDelegate
21 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:16:27: error: cannot find type 'URLSessionDelegate' in scope
14 | /// This class forwards all delegate methods supported pre iOS15/macOS 12 to both the underlying session delegate and any assigned task delegates, consisting of the majority of the backporting work.
15 | class SessionDelegateProxy: NSObject {
16 | var originalDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
17 | var taskMap: [Int : TaskDelegateHandler] = [:]
18 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:27:58: error: cannot find type 'URLSessionTaskDelegate' in scope
25 | /// - task: The task to add.
26 | /// - delegate: The delegate for the task.
27 | func addTaskDelegate(task: URLSessionTask, delegate: URLSessionTaskDelegate?, dataAccumulator: DataAccumulator? = nil, onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)? = nil) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
28 | dataAccumulator?.onResponse = onResponse
29 | taskMap[task.taskIdentifier] = TaskDelegateHandler(task: task, delegate: delegate, dataAccumulator: dataAccumulator)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:27:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - task: The task to add.
26 | /// - delegate: The delegate for the task.
27 | func addTaskDelegate(task: URLSessionTask, delegate: URLSessionTaskDelegate?, dataAccumulator: DataAccumulator? = nil, onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)? = nil) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | dataAccumulator?.onResponse = onResponse
29 | taskMap[task.taskIdentifier] = TaskDelegateHandler(task: task, delegate: delegate, dataAccumulator: dataAccumulator)
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/URLSessionBackport/SessionDelegateProxy.swift:27:138: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - task: The task to add.
26 | /// - delegate: The delegate for the task.
27 | func addTaskDelegate(task: URLSessionTask, delegate: URLSessionTaskDelegate?, dataAccumulator: DataAccumulator? = nil, onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)? = nil) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | dataAccumulator?.onResponse = onResponse
29 | taskMap[task.taskIdentifier] = TaskDelegateHandler(task: task, delegate: delegate, dataAccumulator: dataAccumulator)
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/URLSessionBackport/SessionDelegateProxy.swift:27:182: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - task: The task to add.
26 | /// - delegate: The delegate for the task.
27 | func addTaskDelegate(task: URLSessionTask, delegate: URLSessionTaskDelegate?, dataAccumulator: DataAccumulator? = nil, onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | dataAccumulator?.onResponse = onResponse
29 | taskMap[task.taskIdentifier] = TaskDelegateHandler(task: task, delegate: delegate, dataAccumulator: dataAccumulator)
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/URLSessionBackport/SessionDelegateProxy.swift:34:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// Remove a task delegate when the task is finished.
33 | /// - Parameter task: the task to remove.
34 | func removeTaskDelegate(task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | taskMap.removeValue(forKey: task.taskIdentifier)
36 | }
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/URLSessionBackport/SessionDelegateProxy.swift:41:33: error: cannot find type 'URLSessionDelegate' in scope
39 | // MARK: - Delegate Proxies
40 |
41 | extension SessionDelegateProxy: URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
42 | func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
43 | originalDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:42:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 | extension SessionDelegateProxy: URLSessionDelegate {
42 | func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | originalDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
44 | }
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/URLSessionBackport/SessionDelegateProxy.swift:46:42: error: cannot find type 'Selector' in scope
44 | }
45 |
46 | override func responds(to aSelector: Selector!) -> Bool {
| `- error: cannot find type 'Selector' in scope
47 | switch aSelector {
48 | case #selector(urlSession(_:didReceive:completionHandler:)):
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:46:19: error: method does not override any method from its superclass
44 | }
45 |
46 | override func responds(to aSelector: Selector!) -> Bool {
| `- error: method does not override any method from its superclass
47 | switch aSelector {
48 | case #selector(urlSession(_:didReceive:completionHandler:)):
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:59:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
57 | }
58 |
59 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 | if let delegateMethod = originalDelegate?.urlSession(_:didReceive:completionHandler:) {
61 | delegateMethod(session, challenge, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:59:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | if let delegateMethod = originalDelegate?.urlSession(_:didReceive:completionHandler:) {
61 | delegateMethod(session, challenge, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:59:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | if let delegateMethod = originalDelegate?.urlSession(_:didReceive:completionHandler:) {
61 | delegateMethod(session, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:68:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 |
67 | @available(macOS 11.0, *)
68 | func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | originalDelegate?.urlSessionDidFinishEvents?(forBackgroundURLSession: session)
70 | }
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/URLSessionBackport/SessionDelegateProxy.swift:75:33: error: cannot find type 'URLSessionTaskDelegate' in scope
73 | /// Note that some of these delegate proxies may be misshandled. If you encounter bugs with some of the more esoteric task delegates, especially compared with how modern OSs handled tiering for task-based delegates, please file an issue or submit a fix to: https://github.com/mochidev/URLSessionBackport/issues
74 | /// Some of the methods use a tiered approach, specifically those that require completion handlers, while others call all applicable delegates one after another.
75 | extension SessionDelegateProxy: URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:76:31: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | /// Some of the methods use a tiered approach, specifically those that require completion handlers, while others call all applicable delegates one after another.
75 | extension SessionDelegateProxy: URLSessionTaskDelegate {
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:99: error: cannot find type 'URLRequest' in scope
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:152: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:179: error: cannot find type 'URLRequest' in scope
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:78:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:78:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | var originalTaskDelegate: URLSessionTaskDelegate? { originalDelegate as? URLSessionTaskDelegate }
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
80 | taskDelegateMethod(session, task, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:88:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | }
87 |
88 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
90 | originalTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/URLSessionBackport/SessionDelegateProxy.swift:88:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | }
87 |
88 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
90 | originalTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/URLSessionBackport/SessionDelegateProxy.swift:93:140: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:93:182: error: cannot find type 'URLRequest' in scope
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:93:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:93:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:93:103: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
91 | }
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
95 | taskDelegateMethod(session, task, response, request, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:103:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:103:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:103:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:103:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | }
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
105 | taskDelegateMethod(session, task, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:113:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | }
112 |
113 | func urlSession(_ session: URLSession, task: URLSessionTask, needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:needNewBodyStream:) {
115 | taskDelegateMethod(session, task, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:113:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | }
112 |
113 | func urlSession(_ session: URLSession, task: URLSessionTask, needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:needNewBodyStream:) {
115 | taskDelegateMethod(session, task, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:123:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
125 | originalTaskDelegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
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/URLSessionBackport/SessionDelegateProxy.swift:123:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
125 | originalTaskDelegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
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/URLSessionBackport/SessionDelegateProxy.swift:131:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | // func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
130 |
131 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | let taskDelegate = taskMap[task.taskIdentifier]
133 | if let accumulator = taskDelegate?.dataAccumulator {
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/URLSessionBackport/SessionDelegateProxy.swift:131:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | // func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)
130 |
131 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | let taskDelegate = taskMap[task.taskIdentifier]
133 | if let accumulator = taskDelegate?.dataAccumulator {
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/URLSessionBackport/SessionDelegateProxy.swift:152:33: error: cannot find type 'URLSessionDataDelegate' in scope
150 | }
151 |
152 | extension SessionDelegateProxy: URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:153:31: error: cannot find type 'URLSessionDataDelegate' in scope
151 |
152 | extension SessionDelegateProxy: URLSessionDataDelegate {
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
| `- error: cannot find type 'URLSessionDataDelegate' in scope
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:155:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:155:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:155:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:155:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | var originalDataDelegate: URLSessionDataDelegate? { originalDelegate as? URLSessionDataDelegate }
154 |
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:177:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | }
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
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/URLSessionBackport/SessionDelegateProxy.swift:177:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | }
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
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/URLSessionBackport/SessionDelegateProxy.swift:177:98: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | }
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
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/URLSessionBackport/SessionDelegateProxy.swift:183:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:183:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:183:96: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:183:10: error: invalid redeclaration of 'urlSession(_:dataTask:didBecome:)'
181 | }
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
| `- error: invalid redeclaration of 'urlSession(_:dataTask:didBecome:)'
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:189:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | }
188 |
189 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
191 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:189:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | }
188 |
189 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
191 | let taskDelegate = taskMap[dataTask.taskIdentifier]
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/URLSessionBackport/SessionDelegateProxy.swift:197:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
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/URLSessionBackport/SessionDelegateProxy.swift:197:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, 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/URLSessionBackport/SessionDelegateProxy.swift:197:110: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:197:159: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | }
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:208:33: error: cannot find type 'URLSessionDownloadDelegate' in scope
206 | }
207 |
208 | extension SessionDelegateProxy: URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
210 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:209:35: error: cannot find type 'URLSessionDownloadDelegate' in scope
207 |
208 | extension SessionDelegateProxy: URLSessionDownloadDelegate {
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
210 |
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:211:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
210 |
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | // Note that these methods are considered to be mandatory, which might cause issues?
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
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/URLSessionBackport/SessionDelegateProxy.swift:211:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | var originalDownloadDelegate: URLSessionDownloadDelegate? { originalDelegate as? URLSessionDownloadDelegate }
210 |
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | // Note that these methods are considered to be mandatory, which might cause issues?
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
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/URLSessionBackport/SessionDelegateProxy.swift:223:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | }
222 |
223 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
225 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/URLSessionBackport/SessionDelegateProxy.swift:223:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | }
222 |
223 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
225 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/URLSessionBackport/SessionDelegateProxy.swift:228:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | }
227 |
228 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
230 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/URLSessionBackport/SessionDelegateProxy.swift:228:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | }
227 |
228 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
230 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/URLSessionBackport/SessionDelegateProxy.swift:234:33: error: cannot find type 'URLSessionStreamDelegate' in scope
232 | }
233 |
234 | extension SessionDelegateProxy: URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
236 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:235:33: error: cannot find type 'URLSessionStreamDelegate' in scope
233 |
234 | extension SessionDelegateProxy: URLSessionStreamDelegate {
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:237:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, readClosedFor: streamTask)
239 | originalStreamDelegate?.urlSession?(session, readClosedFor: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:237:70: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | var originalStreamDelegate: URLSessionStreamDelegate? { originalDelegate as? URLSessionStreamDelegate }
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, readClosedFor: streamTask)
239 | originalStreamDelegate?.urlSession?(session, readClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:242:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, writeClosedFor: streamTask)
244 | originalStreamDelegate?.urlSession?(session, writeClosedFor: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:242:71: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 | }
241 |
242 | func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, writeClosedFor: streamTask)
244 | originalStreamDelegate?.urlSession?(session, writeClosedFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:247:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | func urlSession(_ session: URLSession, betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
249 | originalStreamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
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/URLSessionBackport/SessionDelegateProxy.swift:247:81: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | }
246 |
247 | func urlSession(_ session: URLSession, betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
249 | originalStreamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:252:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | }
251 |
252 | func urlSession(_ session: URLSession, streamTask: URLSessionStreamTask, didBecome inputStream: InputStream, outputStream: OutputStream) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
254 | originalStreamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
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/URLSessionBackport/SessionDelegateProxy.swift:252:56: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | }
251 |
252 | func urlSession(_ session: URLSession, streamTask: URLSessionStreamTask, didBecome inputStream: InputStream, outputStream: OutputStream) {
| `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
254 | originalStreamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionStreamTask = AnyObject
| `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:258:33: error: cannot find type 'URLSessionWebSocketDelegate' in scope
256 | }
257 |
258 | extension SessionDelegateProxy: URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
260 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:259:36: error: cannot find type 'URLSessionWebSocketDelegate' in scope
257 |
258 | extension SessionDelegateProxy: URLSessionWebSocketDelegate {
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
260 |
261 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:261:59: error: cannot find type 'URLSessionWebSocketTask' in scope
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
260 |
261 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
262 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
263 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:261:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
259 | var originalWebSocketDelegate: URLSessionWebSocketDelegate? { originalDelegate as? URLSessionWebSocketDelegate }
260 |
261 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
262 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
263 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
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/URLSessionBackport/SessionDelegateProxy.swift:266:59: error: cannot find type 'URLSessionWebSocketTask' in scope
264 | }
265 |
266 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
268 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:266:108: error: cannot find type 'URLSessionWebSocketTask' in scope
264 | }
265 |
266 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
268 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:266:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
264 | }
265 |
266 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | taskMap[webSocketTask.taskIdentifier]?.webSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
268 | originalWebSocketDelegate?.urlSession?(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
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/URLSessionBackport/TaskDelegateHandler.swift:25:19: error: cannot find type 'URLSessionTaskDelegate' in scope
23 | }
24 | }
25 | var delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
26 | var dataAccumulator: DataAccumulator?
27 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:29:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
27 | func addTaskDelegate(task: URLSessionTask, delegate: URLSessionTaskDelegate?, dataAccumulator: DataAccumulator? = nil, onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)? = nil) {
28 | dataAccumulator?.onResponse = onResponse
29 | taskMap[task.taskIdentifier] = TaskDelegateHandler(task: task, delegate: delegate, dataAccumulator: dataAccumulator)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
30 | }
31 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:29:59: error: argument passed to call that takes no arguments
27 | func addTaskDelegate(task: URLSessionTask, delegate: URLSessionTaskDelegate?, dataAccumulator: DataAccumulator? = nil, onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)? = nil) {
28 | dataAccumulator?.onResponse = onResponse
29 | taskMap[task.taskIdentifier] = TaskDelegateHandler(task: task, delegate: delegate, dataAccumulator: dataAccumulator)
| `- error: argument passed to call that takes no arguments
30 | }
31 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:35:42: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
33 | /// - Parameter task: the task to remove.
34 | func removeTaskDelegate(task: URLSessionTask) {
35 | taskMap.removeValue(forKey: task.taskIdentifier)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
36 | }
37 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:53:26: error: value of type 'NSObject' has no member 'responds'
51 | return false
52 | }
53 | return super.responds(to: aSelector)
| `- error: value of type 'NSObject' has no member 'responds'
54 | default:
55 | return super.responds(to: aSelector)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:55:26: error: value of type 'NSObject' has no member 'responds'
53 | return super.responds(to: aSelector)
54 | default:
55 | return super.responds(to: aSelector)
| `- error: value of type 'NSObject' has no member 'responds'
56 | }
57 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:63:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
61 | delegateMethod(session, challenge, completionHandler)
62 | } else {
63 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
64 | }
65 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:63:56: error: 'nil' requires a contextual type
61 | delegateMethod(session, challenge, completionHandler)
62 | } else {
63 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
64 | }
65 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:79:50: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
77 |
78 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
79 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
80 | taskDelegateMethod(session, task, request, completionHandler)
81 | } else if let delegateMethod = originalTaskDelegate?.urlSession(_:task:willBeginDelayedRequest:completionHandler:) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:84:32: error: cannot infer contextual base in reference to member 'continueLoading'
82 | delegateMethod(session, task, request, completionHandler)
83 | } else {
84 | completionHandler(.continueLoading, nil)
| `- error: cannot infer contextual base in reference to member 'continueLoading'
85 | }
86 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:84:49: error: 'nil' requires a contextual type
82 | delegateMethod(session, task, request, completionHandler)
83 | } else {
84 | completionHandler(.continueLoading, nil)
| `- error: 'nil' requires a contextual type
85 | }
86 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:89:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
87 |
88 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
89 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
90 | originalTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
91 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:94:50: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
92 |
93 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
94 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
95 | taskDelegateMethod(session, task, response, request, completionHandler)
96 | } else if let delegateMethod = originalTaskDelegate?.urlSession(_:task:willPerformHTTPRedirection:newRequest:completionHandler:) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:104:50: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
102 |
103 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
104 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:didReceive:completionHandler:) {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
105 | taskDelegateMethod(session, task, challenge, completionHandler)
106 | } else if let delegateMethod = originalTaskDelegate?.urlSession(_:task:didReceive:completionHandler:) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:109:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
107 | delegateMethod(session, task, challenge, completionHandler)
108 | } else {
109 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
110 | }
111 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:109:56: error: 'nil' requires a contextual type
107 | delegateMethod(session, task, challenge, completionHandler)
108 | } else {
109 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
110 | }
111 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:114:50: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
112 |
113 | func urlSession(_ session: URLSession, task: URLSessionTask, needNewBodyStream completionHandler: @escaping (InputStream?) -> Void) {
114 | if let taskDelegateMethod = taskMap[task.taskIdentifier]?.delegate?.urlSession(_:task:needNewBodyStream:) {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
115 | taskDelegateMethod(session, task, completionHandler)
116 | } else if let delegateMethod = originalTaskDelegate?.urlSession(_:task:needNewBodyStream:) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:124:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
122 |
123 | func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
124 | taskMap[task.taskIdentifier]?.delegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
125 | originalTaskDelegate?.urlSession?(session, task: task, didSendBodyData: bytesSent, totalBytesSent: totalBytesSent, totalBytesExpectedToSend: totalBytesExpectedToSend)
126 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:132:41: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
130 |
131 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
132 | let taskDelegate = taskMap[task.taskIdentifier]
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
133 | if let accumulator = taskDelegate?.dataAccumulator {
134 | if let error = error {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:136:84: error: cannot infer contextual base in reference to member 'failure'
134 | if let error = error {
135 | // An accumulator will only be set for data tasks, so we can assume this is the case if one is available.
136 | accumulator.onResponse?(task as! URLSessionDataTask, accumulator, .failure(error))
| `- error: cannot infer contextual base in reference to member 'failure'
137 | taskDelegate?.dataAccumulator?.result = .failure(error)
138 | } else {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:137:58: error: cannot infer contextual base in reference to member 'failure'
135 | // An accumulator will only be set for data tasks, so we can assume this is the case if one is available.
136 | accumulator.onResponse?(task as! URLSessionDataTask, accumulator, .failure(error))
137 | taskDelegate?.dataAccumulator?.result = .failure(error)
| `- error: cannot infer contextual base in reference to member 'failure'
138 | } else {
139 | taskDelegate?.dataAccumulator?.result = .success(())
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:139:58: error: cannot infer contextual base in reference to member 'success'
137 | taskDelegate?.dataAccumulator?.result = .failure(error)
138 | } else {
139 | taskDelegate?.dataAccumulator?.result = .success(())
| `- error: cannot infer contextual base in reference to member 'success'
140 | }
141 |
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:157:45: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
155 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
156 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
158 |
159 | func verifyDisposition(_ disposition: URLSession.ResponseDisposition) {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:159:58: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
157 | let taskDelegate = taskMap[dataTask.taskIdentifier]
158 |
159 | func verifyDisposition(_ disposition: URLSession.ResponseDisposition) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
160 | // If we have an accumulator, we are interested in the results of the disposition!
161 | if case .allow = disposition, let accumulator = taskDelegate?.dataAccumulator {
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:162:65: error: cannot infer contextual base in reference to member 'success'
160 | // If we have an accumulator, we are interested in the results of the disposition!
161 | if case .allow = disposition, let accumulator = taskDelegate?.dataAccumulator {
162 | accumulator.onResponse?(dataTask, accumulator, .success(response))
| `- error: cannot infer contextual base in reference to member 'success'
163 | accumulator.onResponse = nil
164 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:173:32: error: cannot infer contextual base in reference to member 'allow'
171 | delegateMethod(session, dataTask, response, verifyDisposition)
172 | } else {
173 | verifyDisposition(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
174 | }
175 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:30:23: error: cannot find type 'URLSessionDataDelegate' in scope
28 | // MARK: - Convenience Casts
29 |
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
| `- error: cannot find type 'URLSessionDataDelegate' in scope
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:178:26: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
176 |
177 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask) {
178 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
179 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: downloadTask)
180 | // Note: The continuation in an accumulator may leak at this point, and should be verified.
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:184:26: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
182 |
183 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask) {
184 | taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
185 | originalDataDelegate?.urlSession?(session, dataTask: dataTask, didBecome: streamTask)
186 | // Note: The continuation in an accumulator may leak at this point, and should be verified.
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:191:45: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
189 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
190 | // Note from AsyncBytes documentation: "Delegate will not be called for response and data delivery."
191 | let taskDelegate = taskMap[dataTask.taskIdentifier]
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
192 | taskDelegate?.dataAccumulator?.addBuffer(data)
193 | taskDelegate?.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: data)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:198:54: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
196 |
197 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
198 | if let taskDelegateMethod = taskMap[dataTask.taskIdentifier]?.dataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'taskIdentifier'
199 | taskDelegateMethod(session, dataTask, proposedResponse, completionHandler)
200 | } else if let delegateMethod = originalDataDelegate?.urlSession(_:dataTask:willCacheResponse:completionHandler:) {
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:31:27: error: cannot find type 'URLSessionDownloadDelegate' in scope
29 |
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:213:60: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
211 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
212 | // Note that these methods are considered to be mandatory, which might cause issues?
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
214 | taskDownloadDelegate.responds(to: #selector(urlSession(_:downloadTask:didFinishDownloadingTo:))) {
215 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location)
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:214:46: error: '#selector' can only be used with the Objective-C runtime
212 | // Note that these methods are considered to be mandatory, which might cause issues?
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
214 | taskDownloadDelegate.responds(to: #selector(urlSession(_:downloadTask:didFinishDownloadingTo:))) {
| `- error: '#selector' can only be used with the Objective-C runtime
215 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location)
216 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:215:34: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
213 | if let taskDownloadDelegate = taskMap[downloadTask.taskIdentifier]?.downloadDelegate,
214 | taskDownloadDelegate.responds(to: #selector(urlSession(_:downloadTask:didFinishDownloadingTo:))) {
215 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
216 | }
217 | if let originalDownloadDelegate = originalDownloadDelegate,
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:218:50: error: '#selector' can only be used with the Objective-C runtime
216 | }
217 | if let originalDownloadDelegate = originalDownloadDelegate,
218 | originalDownloadDelegate.responds(to: #selector(urlSession(_:downloadTask:didFinishDownloadingTo:))) {
| `- error: '#selector' can only be used with the Objective-C runtime
219 | originalDownloadDelegate.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: location)
220 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:224:30: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
222 |
223 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
224 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
225 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
226 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:229:30: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
227 |
228 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
229 | taskMap[downloadTask.taskIdentifier]?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'taskIdentifier'
230 | originalDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
231 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:32:25: error: cannot find type 'URLSessionStreamDelegate' in scope
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
34 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:238:28: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
236 |
237 | func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
238 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, readClosedFor: streamTask)
| `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
239 | originalStreamDelegate?.urlSession?(session, readClosedFor: streamTask)
240 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:243:28: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
241 |
242 | func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) {
243 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, writeClosedFor: streamTask)
| `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
244 | originalStreamDelegate?.urlSession?(session, writeClosedFor: streamTask)
245 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:248:28: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
246 |
247 | func urlSession(_ session: URLSession, betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
248 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
| `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
249 | originalStreamDelegate?.urlSession?(session, betterRouteDiscoveredFor: streamTask)
250 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/SessionDelegateProxy.swift:253:28: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
251 |
252 | func urlSession(_ session: URLSession, streamTask: URLSessionStreamTask, didBecome inputStream: InputStream, outputStream: OutputStream) {
253 | taskMap[streamTask.taskIdentifier]?.streamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
| `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'taskIdentifier'
254 | originalStreamDelegate?.urlSession?(session, streamTask: streamTask, didBecome: inputStream, outputStream: outputStream)
255 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:33:28: error: cannot find type 'URLSessionWebSocketDelegate' in scope
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
34 | }
35 | #endif
[6/8] Compiling URLSessionBackport AsyncBytes.swift
/host/spi-builder-workspace/Sources/URLSessionBackport/AsyncBytes.swift:19:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
17 |
18 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, *)
19 | extension URLSession.AsyncBytes.Iterator: BytesProvider {}
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
20 |
21 | extension URLSession.Backport {
/host/spi-builder-workspace/Sources/URLSessionBackport/AsyncBytes.swift:21:22: error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
19 | extension URLSession.AsyncBytes.Iterator: BytesProvider {}
20 |
21 | extension URLSession.Backport {
| `- error: 'Backport' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
22 |
23 | /// AsyncBytes conforms to AsyncSequence for data delivery. The sequence is single pass. Delegate will not be called for response and data delivery.
/host/spi-builder-workspace/Sources/URLSessionBackport/AsyncBytes.swift:47:39: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | /// - Parameter asyncBytes: The AsyncBytes to read from.
46 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, *)
47 | init(_ asyncBytes: URLSession.AsyncBytes) {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | self.task = asyncBytes.task
49 | self.bytesProvider = asyncBytes.makeAsyncIterator()
[7/8] Compiling URLSessionBackport TaskDelegateHandler.swift
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:25:19: error: cannot find type 'URLSessionTaskDelegate' in scope
23 | }
24 | }
25 | var delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
26 | var dataAccumulator: DataAccumulator?
27 |
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:20:28: error: 'nil' requires a contextual type
18 | didSet { // Note: Not sure if this works when ARC sets the weak variable to nil…
19 | if task == nil {
20 | delegate = nil
| `- error: 'nil' requires a contextual type
21 | dataAccumulator = nil
22 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:17:20: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// Note that the handler should be discarded when no longer in use to clean up the task, delegate, and dataAccumulator.
16 | struct TaskDelegateHandler {
17 | weak var task: URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet { // Note: Not sure if this works when ARC sets the weak variable to nil…
19 | if task == nil {
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/URLSessionBackport/TaskDelegateHandler.swift:30:23: error: cannot find type 'URLSessionDataDelegate' in scope
28 | // MARK: - Convenience Casts
29 |
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
| `- error: cannot find type 'URLSessionDataDelegate' in scope
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:31:27: error: cannot find type 'URLSessionDownloadDelegate' in scope
29 |
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:32:25: error: cannot find type 'URLSessionStreamDelegate' in scope
30 | var dataDelegate: URLSessionDataDelegate? { delegate as? URLSessionDataDelegate }
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
34 | }
/host/spi-builder-workspace/Sources/URLSessionBackport/TaskDelegateHandler.swift:33:28: error: cannot find type 'URLSessionWebSocketDelegate' in scope
31 | var downloadDelegate: URLSessionDownloadDelegate? { delegate as? URLSessionDownloadDelegate }
32 | var streamDelegate: URLSessionStreamDelegate? { delegate as? URLSessionStreamDelegate }
33 | var webSocketDelegate: URLSessionWebSocketDelegate? { delegate as? URLSessionWebSocketDelegate }
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
34 | }
35 | #endif
[8/8] Compiling URLSessionBackport DataAccumulator.swift
/host/spi-builder-workspace/Sources/URLSessionBackport/DataAccumulator.swift:41:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | /// The closure to call when the first response, or error, is encountered.
41 | var onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | init() {}
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/URLSessionBackport/DataAccumulator.swift:41:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | /// The closure to call when the first response, or error, is encountered.
41 | var onResponse: ((URLSessionDataTask, DataAccumulator, Result<URLResponse, Error>) -> Void)?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | init() {}
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
BUILD FAILURE 6.0 linux