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, reference master (724572), with Swift 6.1 for Linux on 25 Apr 2025 16:33:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/watson-developer-cloud/restkit.git
https://github.com/watson-developer-cloud/restkit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IBMWatsonRestKit",
  "name" : "IBMWatsonRestKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RestKit",
      "targets" : [
        "RestKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RestKitTests",
      "module_type" : "SwiftTarget",
      "name" : "RestKitTests",
      "path" : "Tests/RestKitTests",
      "sources" : [
        "AuthenticationTests.swift",
        "CodableExtensionsTests.swift",
        "JSONTests.swift",
        "MockURLProtocol.swift",
        "MultiPartFormDataTests.swift",
        "ResponseTests.swift",
        "RestErrorTests.swift"
      ],
      "target_dependencies" : [
        "RestKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RestKit",
      "module_type" : "SwiftTarget",
      "name" : "RestKit",
      "path" : "Sources/RestKit",
      "product_memberships" : [
        "RestKit"
      ],
      "sources" : [
        "Authentication.swift",
        "CodableExtensions.swift",
        "JSON.swift",
        "MultipartFormData.swift",
        "RestError.swift",
        "RestRequest.swift",
        "RestResponse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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 |
[4/10] Compiling RestKit MultipartFormData.swift
[5/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
    |                       `- 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
[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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling RestKit CodableExtensions.swift
[8/10] Compiling RestKit JSON.swift
[9/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/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'userAgent' part of global actor 'MainActor'
    |                       `- 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
[10/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 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] 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 | }
[3/9] Compiling RestKit RestError.swift
[4/9] Compiling RestKit MultipartFormData.swift
[5/9] Compiling RestKit RestRequest.swift
/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] 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/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
[7/9] Compiling RestKit CodableExtensions.swift
[8/9] Compiling RestKit JSON.swift
[9/9] 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 |
BUILD FAILURE 6.1 linux