The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IBMWatsonRestKit, reference master (724572), with Swift 6.3 for Wasm on 11 Apr 2026 08:36:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/watson-developer-cloud/restkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling RestKit RestError.swift
[4/10] 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/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 | }
[6/10] Compiling RestKit JSON.swift
[7/10] Compiling RestKit MultipartFormData.swift
[8/10] Compiling RestKit CodableExtensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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/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 |
BUILD FAILURE 6.3 wasm