The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SimpleDownloader, reference 2.0.0 (9206df), with Swift 6.0 for Linux on 31 Oct 2024 04:31:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/t-ae/simpledownloader.git
Reference: 2.0.0
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
 * tag               2.0.0      -> FETCH_HEAD
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 2.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.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 |     }
/host/spi-builder-workspace/Sources/SimpleDownloader.swift:82:13: warning: capture of 'self' with non-sendable type 'SimpleDownloader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |              `- note: class 'SimpleDownloader' does not conform to the 'Sendable' protocol
 4 |
 5 |     let destination: URL
   :
80 |         let progress = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite)
81 |         DispatchQueue.main.async {
82 |             self.progressHandler?(progress)
   |             `- warning: capture of 'self' with non-sendable type 'SimpleDownloader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 |         }
84 |     }
[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 {
BUILD FAILURE 6.0 linux