The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleDownloader, reference master (9206df), with Swift 6.2 for Android on 17 Jun 2025 19:03:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/t-ae/simpledownloader.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/t-ae/simpledownloader
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9206dfb Update for swift4.2
Cloned https://github.com/t-ae/simpledownloader.git
Revision (git rev-parse @):
9206dfb63469bc596e51824c264e29676e8a536a
SUCCESS checkout https://github.com/t-ae/simpledownloader.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/t-ae/simpledownloader.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module SimpleDownloader
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:10:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |                 destination: URL,
 9 |                 headers: [String:String] = [:],
10 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |         self.destination = destination
12 |         super.init()
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/SimpleDownloader.swift:10:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 8 |                 destination: URL,
 9 |                 headers: [String:String] = [:],
10 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
11 |         self.destination = destination
12 |         super.init()
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:26:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |
26 |     public func urlSession(_ session: URLSession,
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |                            downloadTask: URLSessionDownloadTask,
28 |                            didFinishDownloadingTo location: URL) {
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/SimpleDownloader.swift:27:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |     public func urlSession(_ session: URLSession,
27 |                            downloadTask: URLSessionDownloadTask,
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |                            didFinishDownloadingTo location: URL) {
29 |
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/SimpleDownloader.swift:57:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |     }
56 |
57 |     public func urlSession(_ session: URLSession,
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |                            task: URLSessionTask,
59 |                            didCompleteWithError error: 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/SimpleDownloader.swift:58:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 |     public func urlSession(_ session: URLSession,
58 |                            task: URLSessionTask,
   |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |                            didCompleteWithError error: Error?) {
60 |
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/SimpleDownloader.swift:74:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |     }
73 |
74 |     public func urlSession(_ session: URLSession,
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |                            downloadTask: URLSessionDownloadTask,
76 |                            didWriteData bytesWritten: Int64,
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/SimpleDownloader.swift:75:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 |     public func urlSession(_ session: URLSession,
75 |                            downloadTask: URLSessionDownloadTask,
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 |                            didWriteData bytesWritten: Int64,
77 |                            totalBytesWritten: Int64,
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/SimpleDownloader.swift:3:56: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |                                                        `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     let destination: URL
/host/spi-builder-workspace/Sources/SimpleRequester.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                 headers: [String:String] = [:],
11 |                 parameters: [String:String] = [:],
12 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |         super.init()
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/SimpleRequester.swift:12:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
10 |                 headers: [String:String] = [:],
11 |                 parameters: [String:String] = [:],
12 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |
14 |         super.init()
/host/spi-builder-workspace/Sources/SimpleRequester.swift:7:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 | }
 6 |
 7 | public class SimpleRequester: URLSessionWrapper<(URLResponse, Data)> {
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     public init(method: HTTPMethod, url: URL,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     var cancelHandler: (()->Void)?
 8 |
 9 |     var session: URLSession!
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     var task: URLSessionTask!
11 | }
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/URLSessionWrapper.swift:10:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     var session: URLSession!
10 |     var task: URLSessionTask!
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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
[4/6] Compiling SimpleDownloader URLSessionWrapper.swift
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:9:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     var cancelHandler: (()->Void)?
 8 |
 9 |     var session: URLSession!
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     var task: URLSessionTask!
11 | }
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/URLSessionWrapper.swift:10:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     var session: URLSession!
10 |     var task: URLSessionTask!
   |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/URLSessionWrapper.swift:35:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
33 |
34 |     public func start() {
35 |         task.resume()
   |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'resume'
36 |     }
37 |
/host/spi-builder-workspace/Sources/URLSessionWrapper.swift:39:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
37 |
38 |     public func cancel() {
39 |         task.cancel()
   |              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
40 |     }
41 | }
[5/6] Compiling SimpleDownloader SimpleDownloader.swift
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:10:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |                 destination: URL,
 9 |                 headers: [String:String] = [:],
10 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |         self.destination = destination
12 |         super.init()
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/SimpleDownloader.swift:10:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 8 |                 destination: URL,
 9 |                 headers: [String:String] = [:],
10 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
11 |         self.destination = destination
12 |         super.init()
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:26:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |
26 |     public func urlSession(_ session: URLSession,
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |                            downloadTask: URLSessionDownloadTask,
28 |                            didFinishDownloadingTo location: URL) {
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/SimpleDownloader.swift:27:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |     public func urlSession(_ session: URLSession,
27 |                            downloadTask: URLSessionDownloadTask,
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |                            didFinishDownloadingTo location: URL) {
29 |
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/SimpleDownloader.swift:57:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |     }
56 |
57 |     public func urlSession(_ session: URLSession,
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |                            task: URLSessionTask,
59 |                            didCompleteWithError error: 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/SimpleDownloader.swift:58:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 |     public func urlSession(_ session: URLSession,
58 |                            task: URLSessionTask,
   |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |                            didCompleteWithError error: Error?) {
60 |
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/SimpleDownloader.swift:74:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |     }
73 |
74 |     public func urlSession(_ session: URLSession,
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |                            downloadTask: URLSessionDownloadTask,
76 |                            didWriteData bytesWritten: Int64,
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/SimpleDownloader.swift:75:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 |     public func urlSession(_ session: URLSession,
75 |                            downloadTask: URLSessionDownloadTask,
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 |                            didWriteData bytesWritten: Int64,
77 |                            totalBytesWritten: Int64,
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/SimpleDownloader.swift:3:56: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |                                                        `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     let destination: URL
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:14:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
12 |         super.init()
13 |
14 |         session = URLSession(configuration: config,
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 |                              delegate: self,
16 |                              delegateQueue: OperationQueue.main)
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:18:23: error: cannot find 'URLRequest' in scope
16 |                              delegateQueue: OperationQueue.main)
17 |
18 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
19 |         for (key,value) in headers {
20 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:22:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
20 |             request.addValue(value, forHTTPHeaderField: key)
21 |         }
22 |         task = session.downloadTask(with: request)
   |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
23 |     }
24 |
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:30:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
28 |                            didFinishDownloadingTo location: URL) {
29 |
30 |         let response = downloadTask.response as? HTTPURLResponse
   |                                     `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
31 |
32 |         guard response?.statusCode == 200 else {
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:47:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
45 |             DispatchQueue.main.async {
46 |                 self.completionHandler?(self.destination)
47 |                 self.session.finishTasksAndInvalidate()
   |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
48 |             }
49 |         } catch(let e) {
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:52:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
50 |             DispatchQueue.main.async {
51 |                 self.errorHandler?(e)
52 |                 self.session.finishTasksAndInvalidate()
   |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
53 |             }
54 |         }
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:70:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
68 |                 self.errorHandler?(error)
69 |             }
70 |             self.session.finishTasksAndInvalidate()
   |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
71 |         }
72 |     }
[6/6] Compiling SimpleDownloader SimpleRequester.swift
/host/spi-builder-workspace/Sources/SimpleRequester.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |                 headers: [String:String] = [:],
11 |                 parameters: [String:String] = [:],
12 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |         super.init()
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/SimpleRequester.swift:12:75: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
10 |                 headers: [String:String] = [:],
11 |                 parameters: [String:String] = [:],
12 |                 config: URLSessionConfiguration = URLSessionConfiguration.default) {
   |                                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |
14 |         super.init()
/host/spi-builder-workspace/Sources/SimpleRequester.swift:7:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 | }
 6 |
 7 | public class SimpleRequester: URLSessionWrapper<(URLResponse, Data)> {
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     public init(method: HTTPMethod, url: URL,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleRequester.swift:22:22: error: cannot find type 'URLRequest' in scope
20 |             .joined(separator: "&")
21 |
22 |         var request: URLRequest
   |                      `- error: cannot find type 'URLRequest' in scope
23 |         switch method {
24 |         case .post:
/host/spi-builder-workspace/Sources/SimpleRequester.swift:25:23: error: cannot find 'URLRequest' in scope
23 |         switch method {
24 |         case .post:
25 |             request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |             request.httpBody = query.data(using: .utf8)
27 |             break
/host/spi-builder-workspace/Sources/SimpleRequester.swift:30:23: error: cannot find 'URLRequest' in scope
28 |         default:
29 |             let queryUrl = URL(string: url.absoluteString + "?" + query)!
30 |             request = URLRequest(url: queryUrl)
   |                       `- error: cannot find 'URLRequest' in scope
31 |             break
32 |         }
/host/spi-builder-workspace/Sources/SimpleRequester.swift:39:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
37 |         }
38 |
39 |         session = URLSession(configuration: config)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
40 |
41 |         task = session.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/SimpleRequester.swift:41:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
39 |         session = URLSession(configuration: config)
40 |
41 |         task = session.dataTask(with: request) { data, response, error in
   |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
42 |             DispatchQueue.main.async {
43 |                 if let error = error {
/host/spi-builder-workspace/Sources/SimpleRequester.swift:48:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
46 |                     self.completionHandler?((response!, data!))
47 |                 }
48 |                 self.session.finishTasksAndInvalidate()
   |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
49 |             }
50 |         }
BUILD FAILURE 6.2 android