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

The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build IBMWatsonRestKit with Swift 6.0 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/watson-developer-cloud/restkit.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/watson-developer-cloud/restkit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7245729 Merge pull request #26 from watson-developer-cloud/ci/automated-release
Cloned https://github.com/watson-developer-cloud/restkit.git
Revision (git rev-parse @):
7245729a223b69e813a1fa9fa2de87053b2f5ea6
SUCCESS checkout https://github.com/watson-developer-cloud/restkit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/watson-developer-cloud/restkit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Compiling RestKit CodableExtensions.swift
[4/10] Emitting module RestKit
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:39: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
 53 |         completionHandler(request, nil)
 54 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:81: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 53 |         completionHandler(request, nil)
 54 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:39: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
 83 |         var request = request
 84 |         getToken {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:81: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 83 |         var request = request
 84 |         getToken {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:143:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |      - parameter data: raw body data from the token url response
142 |      */
143 |     private func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         // default error description
145 |         let code = response.statusCode
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/RestKit/Authentication.swift:188:39: error: cannot find type 'URLRequest' in scope
186 |
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
189 |         completionHandler(request, nil)
190 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:81: error: cannot find type 'URLRequest' in scope
186 |
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
189 |         completionHandler(request, nil)
190 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:39: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:81: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
219 |     private let url: String
220 |     private var token: IAMToken?
221 |     private let session = URLSession(configuration: URLSessionConfiguration.default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
222 |
223 |     public init(apiKey: String, url: String? = nil) {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
219 |     private let url: String
220 |     private var token: IAMToken?
221 |     private let session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
222 |
223 |     public init(apiKey: String, url: String? = nil) {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:233:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |     }
232 |
233 |     internal func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
    |                                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |         var errorMessage: String?
235 |         var metadata = [String: Any]()
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/RestKit/Authentication.swift:265:39: error: cannot find type 'URLRequest' in scope
263 |     }
264 |
265 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
266 |         var request = request
267 |         getToken { token, error in
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:81: error: cannot find type 'URLRequest' in scope
263 |     }
264 |
265 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
266 |         var request = request
267 |         getToken { token, error in
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:199:16: warning: static property 'customNoFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
197 |
198 | extension Formatter {
199 |     static let customNoFS: DateFormatter = {
    |                `- warning: static property 'customNoFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
200 |         let formatter = DateFormatter()
201 |         formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class DateFormatter : Formatter {
   |            `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 2 |     override public init()
 3 |     required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 15 |  **/
 16 |
 17 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 18 |
 19 | /// A JSON value (one of string, number, object, array, true, false, or null).
    :
197 |
198 | extension Formatter {
199 |     static let customNoFS: DateFormatter = {
    |                |- note: annotate 'customNoFS' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |         let formatter = DateFormatter()
201 |         formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:206:16: warning: static property 'customFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
204 |         return formatter
205 |     }()
206 |     static let customFS: DateFormatter = {
    |                |- warning: static property 'customFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'customFS' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 |         let formatter = DateFormatter()
208 |         formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class DateFormatter : Formatter {
   |            `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 2 |     override public init()
 3 |     required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:216:16: warning: static property 'customDate' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
214 |
215 | extension JSONDecoder.DateDecodingStrategy {
216 |     static let customDate = custom {
    |                |- warning: static property 'customDate' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'customDate' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
217 |         let container = try $0.singleValueContainer()
218 |         let string = try container.decode(String.self)
Foundation.JSONDecoder:2:17: note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
 2 |     public enum DateDecodingStrategy {
   |                 `- note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
 3 |         case deferredToDate
 4 |         case secondsSince1970
/host/spi-builder-workspace/Sources/RestKit/RestError.swift:46:10: warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
44 |
45 |     /// Generic HTTP error with a status code and description.
46 |     case http(statusCode: Int?, message: String?, metadata: [String: Any]?)
   |          `- warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 |
48 |     /// Error that does not fall under any other `RestError` category
/host/spi-builder-workspace/Sources/RestKit/RestError.swift:49:10: warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 |
48 |     /// Error that does not fall under any other `RestError` category
49 |     case other(message: String?, metadata: [String: Any]?)
   |          `- warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 | }
51 |
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:25:23: warning: static property 'userAgent' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |     /// The "User-Agent" header that will be sent with every network request
 24 |     /// This can include information such as the operating system and the SDK/framework calling this API
 25 |     public static var userAgent: String?
    |                       |- warning: static property 'userAgent' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |
 27 |     private let session: URLSession
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     public static var userAgent: String?
 26 |
 27 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     internal var authMethod: AuthenticationMethod
 29 |     internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
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/RestKit/RestRequest.swift:29:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private let session: URLSession
 28 |     internal var authMethod: AuthenticationMethod
 29 |     internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     internal var method: String
 31 |     internal var url: String
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/RestKit/RestRequest.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     public init(
 37 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         authMethod: AuthenticationMethod,
 39 |         errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
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/RestKit/RestRequest.swift:39:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         session: URLSession,
 38 |         authMethod: AuthenticationMethod,
 39 |         errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         method: String,
 41 |         url: String,
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/RestKit/RestRequest.swift:56:29: error: cannot find type 'URLRequest' in scope
 54 |     }
 55 |
 56 |     private var urlRequest: URLRequest? {
    |                             `- error: cannot find type 'URLRequest' in scope
 57 |         guard var components = URLComponents(string: url) else {
 58 |             return nil
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:87:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |      */
 86 |     internal func execute(
 87 |         completionHandler: @escaping (Data?, HTTPURLResponse?, RestError?) -> Void)
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     {
 89 |         // add authentication credentials to the request
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/RestKit/RestRequest.swift:288:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |     public func download(
287 |         to destination: URL,
288 |         completionHandler: @escaping (HTTPURLResponse?, RestError?) -> Void)
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |     {
290 |         // add authentication credentials to the request
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/RestKit/RestResponse.swift:47:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     }
46 |
47 |     internal init(response: HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         var headers: [String: String] = [:]
49 |         for (key, value) in response.allHeaderFields {
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
[5/10] Compiling RestKit Authentication.swift
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:39: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
 53 |         completionHandler(request, nil)
 54 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:52:81: error: cannot find type 'URLRequest' in scope
 50 |     }
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 53 |         completionHandler(request, nil)
 54 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:39: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
 83 |         var request = request
 84 |         getToken {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:82:81: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
 83 |         var request = request
 84 |         getToken {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:143:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 |      - parameter data: raw body data from the token url response
142 |      */
143 |     private func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         // default error description
145 |         let code = response.statusCode
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/RestKit/Authentication.swift:188:39: error: cannot find type 'URLRequest' in scope
186 |
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
189 |         completionHandler(request, nil)
190 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:188:81: error: cannot find type 'URLRequest' in scope
186 |
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
189 |         completionHandler(request, nil)
190 |     }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:39: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:208:81: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
219 |     private let url: String
220 |     private var token: IAMToken?
221 |     private let session = URLSession(configuration: URLSessionConfiguration.default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
222 |
223 |     public init(apiKey: String, url: String? = nil) {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:221:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
219 |     private let url: String
220 |     private var token: IAMToken?
221 |     private let session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                             `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
222 |
223 |     public init(apiKey: String, url: String? = nil) {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:233:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |     }
232 |
233 |     internal func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
    |                                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |         var errorMessage: String?
235 |         var metadata = [String: Any]()
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/RestKit/Authentication.swift:265:39: error: cannot find type 'URLRequest' in scope
263 |     }
264 |
265 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                       `- error: cannot find type 'URLRequest' in scope
266 |         var request = request
267 |         getToken { token, error in
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:265:81: error: cannot find type 'URLRequest' in scope
263 |     }
264 |
265 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
    |                                                                                 `- error: cannot find type 'URLRequest' in scope
266 |         var request = request
267 |         getToken { token, error in
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:53:36: error: 'nil' requires a contextual type
 51 |
 52 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
 53 |         completionHandler(request, nil)
    |                                    `- error: 'nil' requires a contextual type
 54 |     }
 55 | }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:113:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
111 |         }
112 |
113 |         let session = URLSession(configuration: URLSessionConfiguration.default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
114 |         let request = RestRequest(
115 |             session: session,
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:113:73: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
111 |         }
112 |
113 |         let session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
114 |         let request = RestRequest(
115 |             session: session,
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:145:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 |     private func errorResponseDecoder(data: Data, response: HTTPURLResponse) -> RestError {
144 |         // default error description
145 |         let code = response.statusCode
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
146 |         var message = "Token authentication failed."
147 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:189:36: error: 'nil' requires a contextual type
187 |     // Dummy method
188 |     public func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void) {
189 |         completionHandler(request, nil)
    |                                    `- error: 'nil' requires a contextual type
190 |     }
191 | }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:211:36: error: 'nil' requires a contextual type
209 |         var request = request
210 |         request.addValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
211 |         completionHandler(request, nil)
    |                                    `- error: 'nil' requires a contextual type
212 |     }
213 | }
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:243:48: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
241 |                 errorMessage = message
242 |             } else {
243 |                 errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                                                `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
244 |             }
245 |         } catch {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:243:88: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
241 |                 errorMessage = message
242 |             } else {
243 |                 errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
244 |             }
245 |         } catch {
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:247:44: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
245 |         } catch {
246 |             metadata["response"] = data
247 |             errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                                            `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
248 |         }
249 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:247:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
245 |         } catch {
246 |             metadata["response"] = data
247 |             errorMessage = HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
    |                                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |         }
249 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:250:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
248 |         }
249 |
250 |         return RestError.http(statusCode: response.statusCode, message: errorMessage, metadata: metadata)
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |     }
252 |
[6/10] Compiling RestKit RestResponse.swift
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:47:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     }
46 |
47 |     internal init(response: HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         var headers: [String: String] = [:]
49 |         for (key, value) in response.allHeaderFields {
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/RestKit/RestResponse.swift:49:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
47 |     internal init(response: HTTPURLResponse) {
48 |         var headers: [String: String] = [:]
49 |         for (key, value) in response.allHeaderFields {
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 |             if let key = key as? String,
51 |                 let value = value as? String {
/host/spi-builder-workspace/Sources/RestKit/RestResponse.swift:55:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 |             }
54 |         }
55 |         self.init(statusCode: response.statusCode, headers: headers)
   |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 |     }
57 | }
[7/10] Compiling RestKit JSON.swift
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:199:16: warning: static property 'customNoFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
197 |
198 | extension Formatter {
199 |     static let customNoFS: DateFormatter = {
    |                `- warning: static property 'customNoFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
200 |         let formatter = DateFormatter()
201 |         formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class DateFormatter : Formatter {
   |            `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 2 |     override public init()
 3 |     required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 15 |  **/
 16 |
 17 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 18 |
 19 | /// A JSON value (one of string, number, object, array, true, false, or null).
    :
197 |
198 | extension Formatter {
199 |     static let customNoFS: DateFormatter = {
    |                |- note: annotate 'customNoFS' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 |         let formatter = DateFormatter()
201 |         formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:206:16: warning: static property 'customFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
204 |         return formatter
205 |     }()
206 |     static let customFS: DateFormatter = {
    |                |- warning: static property 'customFS' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'customFS' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 |         let formatter = DateFormatter()
208 |         formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZZZZ"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class DateFormatter : Formatter {
   |            `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
 2 |     override public init()
 3 |     required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/RestKit/JSON.swift:216:16: warning: static property 'customDate' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
214 |
215 | extension JSONDecoder.DateDecodingStrategy {
216 |     static let customDate = custom {
    |                |- warning: static property 'customDate' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.DateDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'customDate' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
217 |         let container = try $0.singleValueContainer()
218 |         let string = try container.decode(String.self)
Foundation.JSONDecoder:2:17: note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
 2 |     public enum DateDecodingStrategy {
   |                 `- note: enum 'DateDecodingStrategy' does not conform to the 'Sendable' protocol
 3 |         case deferredToDate
 4 |         case secondsSince1970
[8/10] Compiling RestKit MultipartFormData.swift
[9/10] Compiling RestKit RestError.swift
/host/spi-builder-workspace/Sources/RestKit/RestError.swift:46:10: warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
44 |
45 |     /// Generic HTTP error with a status code and description.
46 |     case http(statusCode: Int?, message: String?, metadata: [String: Any]?)
   |          `- warning: associated value 'http(statusCode:message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 |
48 |     /// Error that does not fall under any other `RestError` category
/host/spi-builder-workspace/Sources/RestKit/RestError.swift:49:10: warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 |
48 |     /// Error that does not fall under any other `RestError` category
49 |     case other(message: String?, metadata: [String: Any]?)
   |          `- warning: associated value 'other(message:metadata:)' of 'Sendable'-conforming enum 'RestError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 | }
51 |
[10/10] Compiling RestKit RestRequest.swift
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:25:23: warning: static property 'userAgent' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 23 |     /// The "User-Agent" header that will be sent with every network request
 24 |     /// This can include information such as the operating system and the SDK/framework calling this API
 25 |     public static var userAgent: String?
    |                       |- warning: static property 'userAgent' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'userAgent' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'userAgent' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |
 27 |     private let session: URLSession
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     public static var userAgent: String?
 26 |
 27 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     internal var authMethod: AuthenticationMethod
 29 |     internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
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/RestKit/Authentication.swift:43:32: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/Authentication.swift:43:74: error: cannot find type 'URLRequest' in scope
 41 |      - parameter completionHandler: The completion handler to execute with the authenticated `URLRequest`.
 42 |      */
 43 |     func authenticate(request: URLRequest, completionHandler: @escaping (URLRequest?, RestError?) -> Void)
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 44 | }
 45 |
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:29:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     private let session: URLSession
 28 |     internal var authMethod: AuthenticationMethod
 29 |     internal var errorResponseDecoder: ((Data, HTTPURLResponse) -> RestError)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     internal var method: String
 31 |     internal var url: String
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/RestKit/RestRequest.swift:37:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     public init(
 37 |         session: URLSession,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |         authMethod: AuthenticationMethod,
 39 |         errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
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/RestKit/RestRequest.swift:39:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         session: URLSession,
 38 |         authMethod: AuthenticationMethod,
 39 |         errorResponseDecoder: @escaping ((Data, HTTPURLResponse) -> RestError),
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         method: String,
 41 |         url: String,
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/RestKit/RestRequest.swift:56:29: error: cannot find type 'URLRequest' in scope
 54 |     }
 55 |
 56 |     private var urlRequest: URLRequest? {
    |                             `- error: cannot find type 'URLRequest' in scope
 57 |         guard var components = URLComponents(string: url) else {
 58 |             return nil
/host/spi-builder-workspace/Sources/RestKit/RestRequest.swift:87:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |      */
 86 |     internal func execute(
 87 |         completionHandler: @escaping (Data?, HTTPURLResponse?, RestError?) -> Void)
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |     {
 89 |         // add authentication credentials to the request
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/RestKit/RestRequest.swift:288:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |     public func download(
287 |         to destination: URL,
288 |         completionHandler: @escaping (HTTPURLResponse?, RestError?) -> Void)
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |     {
290 |         // add authentication credentials to the request
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/RestKit/RestRequest.swift:66:23: error: cannot find 'URLRequest' in scope
 64 |             return nil
 65 |         }
 66 |         var request = URLRequest(url: urlWithQuery)
    |                       `- error: cannot find 'URLRequest' in scope
 67 |         request.httpMethod = method
 68 |         request.httpBody = messageBody
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.