The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IBMWatsonRestKit, reference 3.0.3 (c4fa7c), with Swift 6.1 for Wasm on 27 May 2025 15:52:08 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/watson-developer-cloud/restkit.git
Reference: 3.0.3
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
 * tag               3.0.3      -> FETCH_HEAD
HEAD is now at c4fa7c1 Merge pull request #23 from watson-developer-cloud/develop
Cloned https://github.com/watson-developer-cloud/restkit.git
Revision (git rev-parse @):
c4fa7c1ff757e261c9acae463f3ecb71e7d8ae93
SUCCESS checkout https://github.com/watson-developer-cloud/restkit.git at 3.0.3
========================================
Build
========================================
Selected platform:         wasm
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-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
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] 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
[4/10] Compiling RestKit CodableExtensions.swift
[5/10] Compiling RestKit JSON.swift
[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 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
[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 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-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/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 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
[5/9] Compiling RestKit CodableExtensions.swift
[6/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/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
[8/9] Compiling RestKit JSON.swift
[9/9] Compiling RestKit MultipartFormData.swift
BUILD FAILURE 6.1 wasm