The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build WebRequest, reference master (4d8277), with Swift 6.1 for Wasm on 28 May 2025 01:05:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

 31 |
 32 |     public func execute() throws {
[8/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'isDisabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     public func execute() throws {
[9/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 |     }
[10/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 |     }
[11/18] Compiling WebRequest WebRequestManager.swift
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:6:11: error: cannot find type 'NotificationCenter' in scope
  4 |     func post(_ notification: Notification)
  5 | }
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
    |           `- error: cannot find type 'NotificationCenter' in scope
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:16:30: error: cannot find type 'DispatchQueue' in scope
 14 |     }
 15 |
 16 |     private let accessQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.accessQueue",
    |                              `- error: cannot find type 'DispatchQueue' in scope
 17 |                                                            qos: .background,
 18 |                                                            attributes: [],
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:22:28: error: cannot find type 'DispatchQueue' in scope
 20 |                                                            target: nil)
 21 |
 22 |     private let execQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.performQueue",
    |                            `- error: cannot find type 'DispatchQueue' in scope
 23 |                                                          qos: .background,
 24 |                                                          attributes: .concurrent,
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:48:75: error: cannot find 'NotificationCenter' in scope
 46 |     public var applySession: SessionApplier!
 47 |
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
    |                                                                           `- error: cannot find 'NotificationCenter' in scope
 49 |
 50 |     public static let shared = WebRequestManager()
/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- 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:89:37: error: cannot find type 'DispatchGroup' in scope
 87 | private extension WebRequestManager {
 88 |
 89 |     func getOnStateChange(in group: DispatchGroup) -> Wrapper.OnStateChange {
    |                                     `- error: cannot find type 'DispatchGroup' in scope
 90 |         return { wrapper in
 91 |             switch wrapper.state {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:150:51: error: cannot find type 'DispatchTimeoutResult' in scope
148 |     }
149 |
150 |     func end(_ wrapper: Wrapper, _ timeoutResult: DispatchTimeoutResult) throws {
    |                                                   `- error: cannot find type 'DispatchTimeoutResult' in scope
151 |         self.remove(wrapper)
152 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:75:21: error: cannot find 'DispatchGroup' in scope
 73 |
 74 |     public func begin(request: WebRequest) throws {
 75 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
 76 |         group.enter()
 77 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:82:50: error: cannot call value of non-function type 'Date'
 80 |         stage(wrapper)
 81 |         begin()
 82 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
 83 |         try end(wrapper, timeoutResult)
 84 |     }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:155:34: error: cannot infer contextual base in reference to member 'timedOut'
153 |         guard (wrapper.state != .cancelled) else { return }
154 |
155 |         guard (timeoutResult != .timedOut),
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
156 |             let actualResult = wrapper.result else {
157 |                 let timeoutResult = WebRequest.Result(status: ErrorCode.TimedOut.rawValue)
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:163:13: error: cannot find 'DispatchQueue' in scope
161 |
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
165 |             }
[12/18] Compiling WebRequest WebRequestManaging.swift
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:6:11: error: cannot find type 'NotificationCenter' in scope
  4 |     func post(_ notification: Notification)
  5 | }
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
    |           `- error: cannot find type 'NotificationCenter' in scope
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:16:30: error: cannot find type 'DispatchQueue' in scope
 14 |     }
 15 |
 16 |     private let accessQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.accessQueue",
    |                              `- error: cannot find type 'DispatchQueue' in scope
 17 |                                                            qos: .background,
 18 |                                                            attributes: [],
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:22:28: error: cannot find type 'DispatchQueue' in scope
 20 |                                                            target: nil)
 21 |
 22 |     private let execQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.performQueue",
    |                            `- error: cannot find type 'DispatchQueue' in scope
 23 |                                                          qos: .background,
 24 |                                                          attributes: .concurrent,
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:48:75: error: cannot find 'NotificationCenter' in scope
 46 |     public var applySession: SessionApplier!
 47 |
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
    |                                                                           `- error: cannot find 'NotificationCenter' in scope
 49 |
 50 |     public static let shared = WebRequestManager()
/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- 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:89:37: error: cannot find type 'DispatchGroup' in scope
 87 | private extension WebRequestManager {
 88 |
 89 |     func getOnStateChange(in group: DispatchGroup) -> Wrapper.OnStateChange {
    |                                     `- error: cannot find type 'DispatchGroup' in scope
 90 |         return { wrapper in
 91 |             switch wrapper.state {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:150:51: error: cannot find type 'DispatchTimeoutResult' in scope
148 |     }
149 |
150 |     func end(_ wrapper: Wrapper, _ timeoutResult: DispatchTimeoutResult) throws {
    |                                                   `- error: cannot find type 'DispatchTimeoutResult' in scope
151 |         self.remove(wrapper)
152 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:75:21: error: cannot find 'DispatchGroup' in scope
 73 |
 74 |     public func begin(request: WebRequest) throws {
 75 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
 76 |         group.enter()
 77 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:82:50: error: cannot call value of non-function type 'Date'
 80 |         stage(wrapper)
 81 |         begin()
 82 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
 83 |         try end(wrapper, timeoutResult)
 84 |     }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:155:34: error: cannot infer contextual base in reference to member 'timedOut'
153 |         guard (wrapper.state != .cancelled) else { return }
154 |
155 |         guard (timeoutResult != .timedOut),
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
156 |             let actualResult = wrapper.result else {
157 |                 let timeoutResult = WebRequest.Result(status: ErrorCode.TimedOut.rawValue)
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:163:13: error: cannot find 'DispatchQueue' in scope
161 |
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
165 |             }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/18] Emitting module WebRequest
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                               `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     }
34 |
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     }
54 |
55 |     open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         if let error = error { print("\(#function) - \(error)") }
57 |         self.webRequest = nil
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
   |                                                                     `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:6:23: warning: static property 'timeout' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'timeout' part of global actor 'MainActor'
    |                       `- 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:6:11: error: cannot find type 'NotificationCenter' in scope
  4 |     func post(_ notification: Notification)
  5 | }
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
    |           `- error: cannot find type 'NotificationCenter' in scope
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:16:30: error: cannot find type 'DispatchQueue' in scope
 14 |     }
 15 |
 16 |     private let accessQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.accessQueue",
    |                              `- error: cannot find type 'DispatchQueue' in scope
 17 |                                                            qos: .background,
 18 |                                                            attributes: [],
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:22:28: error: cannot find type 'DispatchQueue' in scope
 20 |                                                            target: nil)
 21 |
 22 |     private let execQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.performQueue",
    |                            `- error: cannot find type 'DispatchQueue' in scope
 23 |                                                          qos: .background,
 24 |                                                          attributes: .concurrent,
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:48:75: error: cannot find 'NotificationCenter' in scope
 46 |     public var applySession: SessionApplier!
 47 |
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
    |                                                                           `- error: cannot find 'NotificationCenter' in scope
 49 |
 50 |     public static let shared = WebRequestManager()
/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- 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:89:37: error: cannot find type 'DispatchGroup' in scope
 87 | private extension WebRequestManager {
 88 |
 89 |     func getOnStateChange(in group: DispatchGroup) -> Wrapper.OnStateChange {
    |                                     `- error: cannot find type 'DispatchGroup' in scope
 90 |         return { wrapper in
 91 |             switch wrapper.state {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:150:51: error: cannot find type 'DispatchTimeoutResult' in scope
148 |     }
149 |
150 |     func end(_ wrapper: Wrapper, _ timeoutResult: DispatchTimeoutResult) throws {
    |                                                   `- error: cannot find type 'DispatchTimeoutResult' in scope
151 |         self.remove(wrapper)
152 |
/host/spi-builder-workspace/Sources/WebRequest/WebRequest.swift:30:23: warning: static property 'isDisabled' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'isDisabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     public func execute() throws {
[14/18] Compiling WebRequest FileDownloadWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                               `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     }
34 |
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     }
54 |
55 |     open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         if let error = error { print("\(#function) - \(error)") }
57 |         self.webRequest = nil
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
   |                                                                     `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:95: error: 'nil' requires a contextual type
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                                                                                               `- error: 'nil' requires a contextual type
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:24:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
   |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:26:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
24 |         let task = urlSession.downloadTask(with: urlRequest)
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
27 |     }
28 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:37:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
   |                                     `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
38 |         let status : Int = response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
39 |         let headers = response?.allHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:6:23: warning: static property 'timeout' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'timeout' part of global actor 'MainActor'
    |                       `- 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:102:21: error: cannot find 'DispatchQueue' in scope
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
    |                     `- error: cannot find 'DispatchQueue' in scope
103 |         let group = DispatchGroup()
104 |         var taskData: Data?
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:103:21: error: cannot find 'DispatchGroup' in scope
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
104 |         var taskData: Data?
105 |         var taskResponse: HTTPURLResponse?
/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:121:50: error: cannot call value of non-function type 'Date'
119 |         }
120 |
121 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
122 |
123 |         if let errorCode = errorCode {
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:128:34: error: cannot infer contextual base in reference to member 'timedOut'
126 |         }
127 |
128 |         guard (timeoutResult != .timedOut) else {
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
129 |             try complete(request: request, errorCode: .TimedOut)
130 |             return
/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 |     }
[15/18] Compiling WebRequest HTTPWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                               `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     }
34 |
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     }
54 |
55 |     open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         if let error = error { print("\(#function) - \(error)") }
57 |         self.webRequest = nil
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
   |                                                                     `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:95: error: 'nil' requires a contextual type
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                                                                                               `- error: 'nil' requires a contextual type
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:24:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
   |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:26:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
24 |         let task = urlSession.downloadTask(with: urlRequest)
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
27 |     }
28 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:37:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
   |                                     `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
38 |         let status : Int = response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
39 |         let headers = response?.allHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:6:23: warning: static property 'timeout' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'timeout' part of global actor 'MainActor'
    |                       `- 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:102:21: error: cannot find 'DispatchQueue' in scope
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
    |                     `- error: cannot find 'DispatchQueue' in scope
103 |         let group = DispatchGroup()
104 |         var taskData: Data?
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:103:21: error: cannot find 'DispatchGroup' in scope
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
104 |         var taskData: Data?
105 |         var taskResponse: HTTPURLResponse?
/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:121:50: error: cannot call value of non-function type 'Date'
119 |         }
120 |
121 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
122 |
123 |         if let errorCode = errorCode {
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:128:34: error: cannot infer contextual base in reference to member 'timedOut'
126 |         }
127 |
128 |         guard (timeoutResult != .timedOut) else {
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
129 |             try complete(request: request, errorCode: .TimedOut)
130 |             return
/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 |     }
[16/18] Compiling WebRequest JSONWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     open func getURLRequest(url:URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
 72 |         return URLRequest(url: url,
 73 |                           cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
    |                                           `- error: cannot find type 'URLRequest' in scope
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
[17/18] Compiling WebRequest MultipartFormUploadWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     open func getURLRequest(url:URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
 72 |         return URLRequest(url: url,
 73 |                           cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
    |                                           `- error: cannot find type 'URLRequest' in scope
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
[18/18] Compiling WebRequest WebRequestEndpoint.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] Compiling WebRequest FileDownloadWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                               `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     }
34 |
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     }
54 |
55 |     open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         if let error = error { print("\(#function) - \(error)") }
57 |         self.webRequest = nil
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
   |                                                                     `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:95: error: 'nil' requires a contextual type
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                                                                                               `- error: 'nil' requires a contextual type
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:24:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
   |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:26:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
24 |         let task = urlSession.downloadTask(with: urlRequest)
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
27 |     }
28 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:37:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
   |                                     `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
38 |         let status : Int = response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
39 |         let headers = response?.allHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:63:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     open func getURLSessionConfiguration() -> URLSessionConfiguration {
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         return URLSessionConfiguration.default
 65 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         return URLSession(configuration: configuration)
 69 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:72: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         return URLSession(configuration: configuration)
 69 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     open func getURLRequest(url:URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
 72 |         return URLRequest(url: url,
 73 |                           cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
    |                                           `- error: cannot find type 'URLRequest' in scope
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:100:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:22:20: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
 20 |
 21 |         if let headers = self.getHeaders(request: request) {
 22 |             config.httpAdditionalHeaders = headers
    |                    `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
 23 |         }
 24 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:64:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |
 63 |     open func getURLSessionConfiguration() -> URLSessionConfiguration {
 64 |         return URLSessionConfiguration.default
    |                                        `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:68:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
 68 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 69 |     }
 70 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:102:21: error: cannot find 'DispatchQueue' in scope
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
    |                     `- error: cannot find 'DispatchQueue' in scope
103 |         let group = DispatchGroup()
104 |         var taskData: Data?
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:103:21: error: cannot find 'DispatchGroup' in scope
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
104 |         var taskData: Data?
105 |         var taskResponse: HTTPURLResponse?
/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:121:50: error: cannot call value of non-function type 'Date'
119 |         }
120 |
121 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
122 |
123 |         if let errorCode = errorCode {
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:128:34: error: cannot infer contextual base in reference to member 'timedOut'
126 |         }
127 |
128 |         guard (timeoutResult != .timedOut) else {
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
129 |             try complete(request: request, errorCode: .TimedOut)
130 |             return
/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 |     }
[3/16] Compiling WebRequest HTTPWebRequestDelivery.swift
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                     `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:17:81: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
   |                                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
19 |         return session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:97: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                                                 `- error: cannot find type 'URLRequest' in scope
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:22:73: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     }
21 |
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
   |                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                               `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     }
34 |
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     }
54 |
55 |     open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         if let error = error { print("\(#function) - \(error)") }
57 |         self.webRequest = nil
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
   |                                                                     `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:18:95: error: 'nil' requires a contextual type
16 |
17 |     open override func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
18 |         let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                                                                                               `- error: 'nil' requires a contextual type
19 |         return session
20 |     }
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:24:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
22 |     open override func executeDelivery(request: WebRequest, urlSession: URLSession, urlRequest: URLRequest) throws {
23 |         self.webRequest = request
24 |         let task = urlSession.downloadTask(with: urlRequest)
   |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:26:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
24 |         let task = urlSession.downloadTask(with: urlRequest)
25 |         task.resume()
26 |         urlSession.finishTasksAndInvalidate()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
27 |     }
28 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:37:37: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
   |                                     `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
38 |         let status : Int = response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
39 |         let headers = response?.allHeaderFields ?? [:]
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:63:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     open func getURLSessionConfiguration() -> URLSessionConfiguration {
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         return URLSessionConfiguration.default
 65 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         return URLSession(configuration: configuration)
 69 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:72: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         return URLSession(configuration: configuration)
 69 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     open func getURLRequest(url:URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
 72 |         return URLRequest(url: url,
 73 |                           cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
    |                                           `- error: cannot find type 'URLRequest' in scope
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:100:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:22:20: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
 20 |
 21 |         if let headers = self.getHeaders(request: request) {
 22 |             config.httpAdditionalHeaders = headers
    |                    `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpAdditionalHeaders'
 23 |         }
 24 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:64:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |
 63 |     open func getURLSessionConfiguration() -> URLSessionConfiguration {
 64 |         return URLSessionConfiguration.default
    |                                        `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:68:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
 68 |         return URLSession(configuration: configuration)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 69 |     }
 70 |
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:102:21: error: cannot find 'DispatchQueue' in scope
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
    |                     `- error: cannot find 'DispatchQueue' in scope
103 |         let group = DispatchGroup()
104 |         var taskData: Data?
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:103:21: error: cannot find 'DispatchGroup' in scope
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
104 |         var taskData: Data?
105 |         var taskResponse: HTTPURLResponse?
/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:121:50: error: cannot call value of non-function type 'Date'
119 |         }
120 |
121 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
122 |
123 |         if let errorCode = errorCode {
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:128:34: error: cannot infer contextual base in reference to member 'timedOut'
126 |         }
127 |
128 |         guard (timeoutResult != .timedOut) else {
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
129 |             try complete(request: request, errorCode: .TimedOut)
130 |             return
/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 |     }
[4/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()
[5/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()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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:29:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:29:63: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     }
28 |
29 |     open func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                               `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         let downloadURL = location
31 |         doFileManagement(target: downloadURL, destination: targetURL)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:35:42: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     }
34 |
35 |     func fulfillCompletion(downloadTask: URLSessionDownloadTask) {
   |                                          `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         let request = self.webRequest!
37 |         let response = downloadTask.response as? HTTPURLResponse
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:55:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     }
54 |
55 |     open func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         if let error = error { print("\(#function) - \(error)") }
57 |         self.webRequest = nil
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:60:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     open func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
   |                                                       `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard let error = error,
62 |               let errorCode = self.parseError(error),
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/FileDownloadWebRequestDelivery.swift:3:69: error: cannot find type 'URLSessionDownloadDelegate' in scope
 1 | import Foundation
 2 |
 3 | open class FileDownloadWebRequestDelivery : HTTPWebRequestDelivery, URLSessionDownloadDelegate {
   |                                                                     `- error: cannot find type 'URLSessionDownloadDelegate' in scope
 4 |
 5 |     open var targetURL : URL
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:63:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     open func getURLSessionConfiguration() -> URLSessionConfiguration {
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |         return URLSessionConfiguration.default
 65 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:44: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         return URLSession(configuration: configuration)
 69 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:67:72: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     }
 66 |
 67 |     open func getURLSession(configuration: URLSessionConfiguration) -> URLSession {
    |                                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         return URLSession(configuration: configuration)
 69 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:71:41: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     open func getURLRequest(url:URL) -> URLRequest {
    |                                         `- error: cannot find type 'URLRequest' in scope
 72 |         return URLRequest(url: url,
 73 |                           cachePolicy: .reloadIgnoringCacheData,
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:101:43: error: cannot find type 'URLRequest' in scope
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
101 |                               urlRequest: URLRequest) throws {
    |                                           `- error: cannot find type 'URLRequest' in scope
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
103 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/WebRequest/Delivery/HTTPWebRequestDelivery.swift:100:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |
 99 |     open func executeDelivery(request: WebRequest,
100 |                               urlSession: URLSession,
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |                               urlRequest: URLRequest) throws {
102 |         let queue = DispatchQueue(label: "\(urlRequest.url?.absoluteString ?? "") queue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     let ZERO_PERCENT = 0
 8 |
 9 |     public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |         if(totalBytesWritten < totalBytesExpectedToWrite) {
11 |             let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:9:65: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     let ZERO_PERCENT = 0
 8 |
 9 |     public func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
   |                                                                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |         if(totalBytesWritten < totalBytesExpectedToWrite) {
11 |             let percentageComplete = Int((((Double(Float(totalBytesWritten) / Float(totalBytesExpectedToWrite))) * divisor).rounded(.down) / divisor) * 100);
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:46: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let status = getStatus(downloadTask: downloadTask)
19 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:17:72: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     }
16 |
17 |     open override func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
   |                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         let status = getStatus(downloadTask: downloadTask)
19 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Delivery/ProgressFileDownloadWebRequestDelivery.swift:37:34: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |     }
36 |
37 |     func getStatus(downloadTask: URLSessionDownloadTask) -> Int {
   |                                  `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         let response = downloadTask.response as? HTTPURLResponse
39 |         return response?.statusCode ?? WebRequest.Result.ErrorCode.MalformedResponse.rawValue
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:6:11: error: cannot find type 'NotificationCenter' in scope
  4 |     func post(_ notification: Notification)
  5 | }
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
    |           `- error: cannot find type 'NotificationCenter' in scope
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:16:30: error: cannot find type 'DispatchQueue' in scope
 14 |     }
 15 |
 16 |     private let accessQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.accessQueue",
    |                              `- error: cannot find type 'DispatchQueue' in scope
 17 |                                                            qos: .background,
 18 |                                                            attributes: [],
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:22:28: error: cannot find type 'DispatchQueue' in scope
 20 |                                                            target: nil)
 21 |
 22 |     private let execQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.performQueue",
    |                            `- error: cannot find type 'DispatchQueue' in scope
 23 |                                                          qos: .background,
 24 |                                                          attributes: .concurrent,
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:48:75: error: cannot find 'NotificationCenter' in scope
 46 |     public var applySession: SessionApplier!
 47 |
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
    |                                                                           `- error: cannot find 'NotificationCenter' in scope
 49 |
 50 |     public static let shared = WebRequestManager()
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:89:37: error: cannot find type 'DispatchGroup' in scope
 87 | private extension WebRequestManager {
 88 |
 89 |     func getOnStateChange(in group: DispatchGroup) -> Wrapper.OnStateChange {
    |                                     `- error: cannot find type 'DispatchGroup' in scope
 90 |         return { wrapper in
 91 |             switch wrapper.state {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:150:51: error: cannot find type 'DispatchTimeoutResult' in scope
148 |     }
149 |
150 |     func end(_ wrapper: Wrapper, _ timeoutResult: DispatchTimeoutResult) throws {
    |                                                   `- error: cannot find type 'DispatchTimeoutResult' in scope
151 |         self.remove(wrapper)
152 |
[7/17] Compiling WebRequest WebRequestEndpoint.swift
[8/17] Compiling WebRequest BasicHTTPResultValidator.swift
[9/17] Compiling WebRequest WebRequest+Result.swift
[10/17] Compiling WebRequest WebRequestSession.swift
[11/17] Compiling WebRequest WebRequestSessionProviding.swift
[12/17] Compiling WebRequest WebRequestManager.swift
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:6:11: error: cannot find type 'NotificationCenter' in scope
  4 |     func post(_ notification: Notification)
  5 | }
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
    |           `- error: cannot find type 'NotificationCenter' in scope
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:16:30: error: cannot find type 'DispatchQueue' in scope
 14 |     }
 15 |
 16 |     private let accessQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.accessQueue",
    |                              `- error: cannot find type 'DispatchQueue' in scope
 17 |                                                            qos: .background,
 18 |                                                            attributes: [],
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:22:28: error: cannot find type 'DispatchQueue' in scope
 20 |                                                            target: nil)
 21 |
 22 |     private let execQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.performQueue",
    |                            `- error: cannot find type 'DispatchQueue' in scope
 23 |                                                          qos: .background,
 24 |                                                          attributes: .concurrent,
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:48:75: error: cannot find 'NotificationCenter' in scope
 46 |     public var applySession: SessionApplier!
 47 |
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
    |                                                                           `- error: cannot find 'NotificationCenter' in scope
 49 |
 50 |     public static let shared = WebRequestManager()
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:89:37: error: cannot find type 'DispatchGroup' in scope
 87 | private extension WebRequestManager {
 88 |
 89 |     func getOnStateChange(in group: DispatchGroup) -> Wrapper.OnStateChange {
    |                                     `- error: cannot find type 'DispatchGroup' in scope
 90 |         return { wrapper in
 91 |             switch wrapper.state {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:150:51: error: cannot find type 'DispatchTimeoutResult' in scope
148 |     }
149 |
150 |     func end(_ wrapper: Wrapper, _ timeoutResult: DispatchTimeoutResult) throws {
    |                                                   `- error: cannot find type 'DispatchTimeoutResult' in scope
151 |         self.remove(wrapper)
152 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:75:21: error: cannot find 'DispatchGroup' in scope
 73 |
 74 |     public func begin(request: WebRequest) throws {
 75 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
 76 |         group.enter()
 77 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:82:50: error: cannot call value of non-function type 'Date'
 80 |         stage(wrapper)
 81 |         begin()
 82 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
 83 |         try end(wrapper, timeoutResult)
 84 |     }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:155:34: error: cannot infer contextual base in reference to member 'timedOut'
153 |         guard (wrapper.state != .cancelled) else { return }
154 |
155 |         guard (timeoutResult != .timedOut),
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
156 |             let actualResult = wrapper.result else {
157 |                 let timeoutResult = WebRequest.Result(status: ErrorCode.TimedOut.rawValue)
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:163:13: error: cannot find 'DispatchQueue' in scope
161 |
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
165 |             }
[13/17] Compiling WebRequest WebRequestManaging.swift
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:6:11: error: cannot find type 'NotificationCenter' in scope
  4 |     func post(_ notification: Notification)
  5 | }
  6 | extension NotificationCenter: WRNotificationCenterInterface {}
    |           `- error: cannot find type 'NotificationCenter' in scope
  7 |
  8 | public class WebRequestManager: WebRequestManaging {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:16:30: error: cannot find type 'DispatchQueue' in scope
 14 |     }
 15 |
 16 |     private let accessQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.accessQueue",
    |                              `- error: cannot find type 'DispatchQueue' in scope
 17 |                                                            qos: .background,
 18 |                                                            attributes: [],
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:22:28: error: cannot find type 'DispatchQueue' in scope
 20 |                                                            target: nil)
 21 |
 22 |     private let execQueue: DispatchQueue = DispatchQueue(label: "WebRequestQueue.performQueue",
    |                            `- error: cannot find type 'DispatchQueue' in scope
 23 |                                                          qos: .background,
 24 |                                                          attributes: .concurrent,
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:48:75: error: cannot find 'NotificationCenter' in scope
 46 |     public var applySession: SessionApplier!
 47 |
 48 |     internal lazy var notificationCenter: WRNotificationCenterInterface = NotificationCenter.default
    |                                                                           `- error: cannot find 'NotificationCenter' in scope
 49 |
 50 |     public static let shared = WebRequestManager()
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:89:37: error: cannot find type 'DispatchGroup' in scope
 87 | private extension WebRequestManager {
 88 |
 89 |     func getOnStateChange(in group: DispatchGroup) -> Wrapper.OnStateChange {
    |                                     `- error: cannot find type 'DispatchGroup' in scope
 90 |         return { wrapper in
 91 |             switch wrapper.state {
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:150:51: error: cannot find type 'DispatchTimeoutResult' in scope
148 |     }
149 |
150 |     func end(_ wrapper: Wrapper, _ timeoutResult: DispatchTimeoutResult) throws {
    |                                                   `- error: cannot find type 'DispatchTimeoutResult' in scope
151 |         self.remove(wrapper)
152 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:75:21: error: cannot find 'DispatchGroup' in scope
 73 |
 74 |     public func begin(request: WebRequest) throws {
 75 |         let group = DispatchGroup()
    |                     `- error: cannot find 'DispatchGroup' in scope
 76 |         group.enter()
 77 |
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:82:50: error: cannot call value of non-function type 'Date'
 80 |         stage(wrapper)
 81 |         begin()
 82 |         let timeoutResult = group.wait(timeout: .now() + timeoutInterval)
    |                                                  `- error: cannot call value of non-function type 'Date'
 83 |         try end(wrapper, timeoutResult)
 84 |     }
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:155:34: error: cannot infer contextual base in reference to member 'timedOut'
153 |         guard (wrapper.state != .cancelled) else { return }
154 |
155 |         guard (timeoutResult != .timedOut),
    |                                  `- error: cannot infer contextual base in reference to member 'timedOut'
156 |             let actualResult = wrapper.result else {
157 |                 let timeoutResult = WebRequest.Result(status: ErrorCode.TimedOut.rawValue)
/host/spi-builder-workspace/Sources/WebRequest/Manager/WebRequestManager.swift:163:13: error: cannot find 'DispatchQueue' in scope
161 |
162 |         if wrapper.state == .unauthorized {
163 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
164 |                 self.notificationCenter.post(self.UnauthorizedResponseNotification)
165 |             }
[14/17] Compiling WebRequest WebRequest+URLEncoder.swift
[15/17] Compiling WebRequest WebRequest.swift
[16/17] 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 |     }
[17/17] 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 |     }
BUILD FAILURE 6.1 wasm