Build Information
Failed to build WebRequest, reference master (4d8277
), with Swift 6.2 (beta) for Android on 19 Jun 2025 01:51:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/quickthyme/webrequest.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/quickthyme/webrequest
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4d82778 Merge pull request #11 from matteozajac/feature/error-handler-for-data-task
Cloned https://github.com/quickthyme/webrequest.git
Revision (git rev-parse @):
4d82778042cfde758c371c7b4754fbaa1bf3e908
SUCCESS checkout https://github.com/quickthyme/webrequest.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/quickthyme/webrequest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/17] Compiling WebRequest WebRequest+URLEncoder.swift
[4/17] Compiling WebRequest WebRequest.swift
[5/18] Compiling WebRequest WebRequestSession.swift
[6/18] Compiling WebRequest WebRequestSessionProviding.swift
[7/18] Compiling WebRequest BasicHTTPResultValidator.swift
[8/18] Compiling WebRequest WebRequest+Result.swift
[9/18] Compiling WebRequest WebRequestManager.swift
[10/18] Compiling WebRequest WebRequestManaging.swift
[11/18] Compiling WebRequest FileDownloadWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 | return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 | return session
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | }
21 |
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | open 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.
30 | let downloadURL = location
31 | doFileManagement(target: downloadURL, destination: targetURL)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | open 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.
30 | let downloadURL = location
31 | doFileManagement(target: downloadURL, destination: targetURL)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
35 | func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let request = self.webRequest!
37 | let response = downloadTask.response as? HTTPURLResponse
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | open 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.
56 | if let error = error { print("\(#function) - \(error)") }
57 | self.webRequest = nil
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | open 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.
61 | guard let error = error,
62 | let errorCode = self.parseError(error),
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | open 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.
61 | guard let error = error,
62 | let errorCode = self.parseError(error),
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
1 | import Foundation
2 |
3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
4 |
5 | open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | return session
20 | }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:95: error: 'nil' requires a contextual type
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
19 | return session
20 | }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:24:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
25 | task.resume()
26 | urlSession.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:26:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
24 | let task = urlSession.downloadTask(with: urlRequest)
25 | task.resume()
26 | urlSession.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
27 | }
28 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:37:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
35 | func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
36 | let request = self.webRequest!
37 | let response = downloadTask.response as? HTTPURLResponse
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
38 | let status : Int = response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
39 | let headers = response?.allHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:63:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
63 | open func getURLSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return URLSessionConfiguration.default
65 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | return URLSession(configuration: configuration)
69 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:72: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | return URLSession(configuration: configuration)
69 | }
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | open func getURLRequest(url:URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | return URLRequest(url: url,
73 | cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
101 | urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 | let group = DispatchGroup()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:100:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 |
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | urlRequest: URLRequest) throws {
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:22:20: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
20 |
21 | if let headers = self.getHeaders(request: request) {
22 | config.httpAdditionalHeaders = headers
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
23 | }
24 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:64:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
62 |
63 | open func getURLSessionConfiguration() -> URLSessionConfiguration {
64 | return URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
65 | }
66 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:68:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
68 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | }
70 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:105:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | let group = DispatchGroup()
104 | var taskData: Data?
105 | var taskResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | var errorCode: ErrorCode?
107 |
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:110:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
108 | group.enter()
109 | queue.async {
110 | let task = urlSession.dataTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
111 | with: urlRequest,
112 | completionHandler: ({ (data, response, error) in
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:133:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 | }
132 |
133 | let taskStatus: Int = taskResponse?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 | ?? ErrorCode.MalformedResponse.rawValue
135 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:138:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
136 | try complete(request: request,
137 | status: taskStatus,
138 | headers: taskResponse?.allHeaderFields,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
139 | data: taskData)
140 | }
[12/18] Compiling WebRequest HTTPWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 | return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 | return session
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | }
21 |
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | open 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.
30 | let downloadURL = location
31 | doFileManagement(target: downloadURL, destination: targetURL)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | open 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.
30 | let downloadURL = location
31 | doFileManagement(target: downloadURL, destination: targetURL)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
35 | func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let request = self.webRequest!
37 | let response = downloadTask.response as? HTTPURLResponse
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | open 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.
56 | if let error = error { print("\(#function) - \(error)") }
57 | self.webRequest = nil
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | open 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.
61 | guard let error = error,
62 | let errorCode = self.parseError(error),
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | open 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.
61 | guard let error = error,
62 | let errorCode = self.parseError(error),
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
1 | import Foundation
2 |
3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
4 |
5 | open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | return session
20 | }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:95: error: 'nil' requires a contextual type
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
19 | return session
20 | }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:24:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
25 | task.resume()
26 | urlSession.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:26:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
24 | let task = urlSession.downloadTask(with: urlRequest)
25 | task.resume()
26 | urlSession.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
27 | }
28 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:37:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
35 | func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
36 | let request = self.webRequest!
37 | let response = downloadTask.response as? HTTPURLResponse
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
38 | let status : Int = response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
39 | let headers = response?.allHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:63:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
63 | open func getURLSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return URLSessionConfiguration.default
65 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | return URLSession(configuration: configuration)
69 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:72: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | return URLSession(configuration: configuration)
69 | }
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | open func getURLRequest(url:URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | return URLRequest(url: url,
73 | cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
101 | urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 | let group = DispatchGroup()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:100:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 |
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | urlRequest: URLRequest) throws {
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:22:20: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
20 |
21 | if let headers = self.getHeaders(request: request) {
22 | config.httpAdditionalHeaders = headers
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
23 | }
24 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:64:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
62 |
63 | open func getURLSessionConfiguration() -> URLSessionConfiguration {
64 | return URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
65 | }
66 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:68:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
68 | return URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | }
70 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:105:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | let group = DispatchGroup()
104 | var taskData: Data?
105 | var taskResponse: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | var errorCode: ErrorCode?
107 |
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:110:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
108 | group.enter()
109 | queue.async {
110 | let task = urlSession.dataTask(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
111 | with: urlRequest,
112 | completionHandler: ({ (data, response, error) in
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:133:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 | }
132 |
133 | let taskStatus: Int = taskResponse?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 | ?? ErrorCode.MalformedResponse.rawValue
135 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:138:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
136 | try complete(request: request,
137 | status: taskStatus,
138 | headers: taskResponse?.allHeaderFields,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
139 | data: taskData)
140 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/18] Compiling WebRequest ProgressFileDownloadWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | let ZERO_PERCENT = 0
8 |
9 | public 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.
10 | if(totalBytesWritten < totalBytesExpectedToWrite) {
11 | let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:65: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | let ZERO_PERCENT = 0
8 |
9 | public 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.
10 | if(totalBytesWritten < totalBytesExpectedToWrite) {
11 | let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:46: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override 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.
18 | let status = getStatus(downloadTask: downloadTask)
19 |
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:72: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override 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.
18 | let status = getStatus(downloadTask: downloadTask)
19 |
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:37:34: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func getStatus(downloadTask: URLSessionDownloadTask) -> Int {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let response = downloadTask.response as? HTTPURLResponse
39 | return response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:38:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
36 |
37 | func getStatus(downloadTask: URLSessionDownloadTask) -> Int {
38 | let response = downloadTask.response as? HTTPURLResponse
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
39 | return response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
40 | }
[14/18] Compiling WebRequest WebRequestManager+State.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | let ZERO_PERCENT = 0
8 |
9 | public 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.
10 | if(totalBytesWritten < totalBytesExpectedToWrite) {
11 | let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:65: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | let ZERO_PERCENT = 0
8 |
9 | public 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.
10 | if(totalBytesWritten < totalBytesExpectedToWrite) {
11 | let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:46: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override 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.
18 | let status = getStatus(downloadTask: downloadTask)
19 |
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:72: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override 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.
18 | let status = getStatus(downloadTask: downloadTask)
19 |
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:37:34: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func getStatus(downloadTask: URLSessionDownloadTask) -> Int {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let response = downloadTask.response as? HTTPURLResponse
39 | return response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:38:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
36 |
37 | func getStatus(downloadTask: URLSessionDownloadTask) -> Int {
38 | let response = downloadTask.response as? HTTPURLResponse
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
39 | return response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
40 | }
[15/18] Emitting module WebRequest
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 | return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 | return session
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | }
21 |
22 | open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | self.webRequest = request
24 | let task = urlSession.downloadTask(with: urlRequest)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | open 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.
30 | let downloadURL = location
31 | doFileManagement(target: downloadURL, destination: targetURL)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | open 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.
30 | let downloadURL = location
31 | doFileManagement(target: downloadURL, destination: targetURL)
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | }
34 |
35 | func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | let request = self.webRequest!
37 | let response = downloadTask.response as? HTTPURLResponse
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | open 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.
56 | if let error = error { print("\(#function) - \(error)") }
57 | self.webRequest = nil
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | open 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.
61 | guard let error = error,
62 | let errorCode = self.parseError(error),
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | open 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.
61 | guard let error = error,
62 | let errorCode = self.parseError(error),
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/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
1 | import Foundation
2 |
3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
4 |
5 | open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:63:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | }
62 |
63 | open func getURLSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return URLSessionConfiguration.default
65 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | return URLSession(configuration: configuration)
69 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:72: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | }
66 |
67 | open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | return URLSession(configuration: configuration)
69 | }
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/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | open func getURLRequest(url:URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | return URLRequest(url: url,
73 | cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
101 | urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 | let group = DispatchGroup()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:100:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 |
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | urlRequest: URLRequest) throws {
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | let ZERO_PERCENT = 0
8 |
9 | public 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.
10 | if(totalBytesWritten < totalBytesExpectedToWrite) {
11 | let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:65: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | let ZERO_PERCENT = 0
8 |
9 | public 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.
10 | if(totalBytesWritten < totalBytesExpectedToWrite) {
11 | let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:46: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override 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.
18 | let status = getStatus(downloadTask: downloadTask)
19 |
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:72: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | open override 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.
18 | let status = getStatus(downloadTask: downloadTask)
19 |
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/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:37:34: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
37 | func getStatus(downloadTask: URLSessionDownloadTask) -> Int {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let response = downloadTask.response as? HTTPURLResponse
39 | return response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
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
[16/18] Compiling WebRequest JSONWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | open func getURLRequest(url:URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | return URLRequest(url: url,
73 | cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
101 | urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 | let group = DispatchGroup()
[17/18] Compiling WebRequest MultipartFormUploadWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | open func getURLRequest(url:URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
72 | return URLRequest(url: url,
73 | cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
99 | open func executeDelivery(request: WebRequest,
100 | urlSession: URLSession,
101 | urlRequest: URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
102 | let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 | let group = DispatchGroup()
[18/18] Compiling WebRequest WebRequestEndpoint.swift
BUILD FAILURE 6.2 android