This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 WebRequest with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.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:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/quickthyme/webrequest.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
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/17] 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:22:24: error: method does not override any method from its superclass
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                        `- error: method does not override any method from its superclass
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/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:6:23: warning: static property 'timeout' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  4 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
  5 |
  6 |     public static var timeout: TimeInterval = 60.0
    |                       |- warning: static property 'timeout' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'timeout' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'timeout' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     public var timeoutInterval: TimeInterval {
/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
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:50:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebRequestManager' may have shared mutable state; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
 49 |
 50 |     public static let shared = WebRequestManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebRequestManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |     private init() { /**/ }
/host/spi-builder-workspace/Sources/WebRequest/WebRequest.swift:30:23: warning: static property 'isDisabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |     }
 29 |
 30 |     public static var isDisabled: Bool = false
    |                       |- warning: static property 'isDisabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'isDisabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'isDisabled' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     public func execute() throws {
[4/17] 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:22:24: error: method does not override any method from its superclass
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                        `- error: method does not override any method from its superclass
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/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:6:23: warning: static property 'timeout' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  4 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
  5 |
  6 |     public static var timeout: TimeInterval = 60.0
    |                       |- warning: static property 'timeout' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'timeout' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'timeout' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     public var timeoutInterval: TimeInterval {
/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 |     }
[5/17] 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:22:24: error: method does not override any method from its superclass
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                        `- error: method does not override any method from its superclass
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/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:6:23: warning: static property 'timeout' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  4 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
  5 |
  6 |     public static var timeout: TimeInterval = 60.0
    |                       |- warning: static property 'timeout' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'timeout' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'timeout' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     public var timeoutInterval: TimeInterval {
/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 |     }
[6/17] 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()
[7/17] 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()
[8/18] Compiling WebRequest WebRequestManager.swift
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:50:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebRequestManager' may have shared mutable state; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
 49 |
 50 |     public static let shared = WebRequestManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebRequestManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |     private init() { /**/ }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:144:26: warning: capture of 'wrapper' with non-sendable type 'WebRequestManager.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |                 wrapper.modifiedRequest = applySession(wrapper.modifiedRequest, session)
143 |                 execQueue.async {
144 |                     try? wrapper.execute()
    |                          `- warning: capture of 'wrapper' with non-sendable type 'WebRequestManager.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |                 }
146 |             }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager+State.swift:13:11: note: class 'Wrapper' does not conform to the 'Sendable' protocol
11 |     }
12 |
13 |     class Wrapper: Hashable {
   |           `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
14 |
15 |         public typealias OnStateChange = (Wrapper) -> ()
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:164:17: warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
    |                 `- warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
165 |             }
166 |         }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:178:13: warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
176 |         isRefreshing = true
177 |         execQueue.async {
178 |             self.sessionProvider.refresh()
    |             `- warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
179 |         }
180 |     }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:164:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
165 |             }
166 |         }
[9/18] Compiling WebRequest WebRequestManaging.swift
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:50:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebRequestManager' may have shared mutable state; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
 49 |
 50 |     public static let shared = WebRequestManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WebRequestManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |
 52 |     private init() { /**/ }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:144:26: warning: capture of 'wrapper' with non-sendable type 'WebRequestManager.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |                 wrapper.modifiedRequest = applySession(wrapper.modifiedRequest, session)
143 |                 execQueue.async {
144 |                     try? wrapper.execute()
    |                          `- warning: capture of 'wrapper' with non-sendable type 'WebRequestManager.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 |                 }
146 |             }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager+State.swift:13:11: note: class 'Wrapper' does not conform to the 'Sendable' protocol
11 |     }
12 |
13 |     class Wrapper: Hashable {
   |           `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
14 |
15 |         public typealias OnStateChange = (Wrapper) -> ()
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:164:17: warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
    |                 `- warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
165 |             }
166 |         }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:178:13: warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
    |              `- note: class 'WebRequestManager' does not conform to the 'Sendable' protocol
  9 |
 10 |     public typealias ErrorCode = WebRequest.Result.ErrorCode
    :
176 |         isRefreshing = true
177 |         execQueue.async {
178 |             self.sessionProvider.refresh()
    |             `- warning: capture of 'self' with non-sendable type 'WebRequestManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
179 |         }
180 |     }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:164:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
165 |             }
166 |         }
[10/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 |     }
[11/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 |     }
[12/18] Compiling WebRequest BasicHTTPResultValidator.swift
[13/18] Compiling WebRequest WebRequest+Result.swift
[14/18] Compiling WebRequest WebRequest+URLEncoder.swift
/host/spi-builder-workspace/Sources/WebRequest/WebRequest.swift:30:23: warning: static property 'isDisabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |     }
 29 |
 30 |     public static var isDisabled: Bool = false
    |                       |- warning: static property 'isDisabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'isDisabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'isDisabled' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     public func execute() throws {
[15/18] Compiling WebRequest WebRequest.swift
/host/spi-builder-workspace/Sources/WebRequest/WebRequest.swift:30:23: warning: static property 'isDisabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |     }
 29 |
 30 |     public static var isDisabled: Bool = false
    |                       |- warning: static property 'isDisabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'isDisabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'isDisabled' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     public func execute() throws {
[16/18] Compiling WebRequest WebRequestSession.swift
[17/18] Compiling WebRequest WebRequestSessionProviding.swift
[18/18] Compiling WebRequest WebRequestEndpoint.swift
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.