The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OctoKit, reference 0.11.0 (9521cd), with Swift 6.3 for Wasm on 14 Apr 2026 04:07:04 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/WeTransfer/octokit.swift.git
Reference: 0.11.0
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/WeTransfer/octokit.swift
 * tag               0.11.0     -> FETCH_HEAD
HEAD is now at 9521cdf Merge pull request #121 from nerdishbynature/fix-tests-and-decoding-issues
Cloned https://github.com/WeTransfer/octokit.swift.git
Revision (git rev-parse @):
9521cdff919053868ab13cd08a228f7bc1bde2a9
SUCCESS checkout https://github.com/WeTransfer/octokit.swift.git at 0.11.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/WeTransfer/octokit.swift.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
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1554] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.38s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 2.4.0 (2.55s)
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 2.4.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
 5 |
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 9 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 9 | }
10 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:12:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |
 11 | public extension JSONPostRouter {
 12 |     func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |         guard let request = request() else {
 14 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:57:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 55 |     }
 56 |
 57 |     func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |         guard let request = request() else {
 59 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 9 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 | }
10 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 |
17 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
16 |
17 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
19 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:65:80: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 65 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 66 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 67 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:69:23: error: cannot find type 'URLRequest' in scope
 67 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 68 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 69 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 70 | }
 71 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:73:23: error: cannot find type 'URLRequest' in scope
 71 |
 72 | public extension Router {
 73 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 74 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 75 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:127:80: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
128 |         var urlComponents = urlComponents
129 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:148:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |
147 |     @available(*, deprecated, message: "Plase use `load` method instead")
148 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
149 |         return load(session, expectedResultType: expectedResultType, completion: completion)
150 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:152:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |     }
151 |
152 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 |         let decoder = JSONDecoder()
154 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |     }
159 |
160 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |         guard let request = request() else {
162 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:195:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |     }
194 |
195 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 |         guard let request = request() else {
197 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:233:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
231 | }
232 |
233 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
234 |     var wasSuccessful: Bool {
235 |         let successRange = 200..<300
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[5/7] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
 5 |
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 9 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 9 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 9 | }
10 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 | }
10 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 |
17 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
16 |
17 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
19 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:18:40: error: cannot find type 'URLRequest' in scope
16 |
17 | extension URLSession: RequestKitURLSession {
18 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
19 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
20 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:22:42: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
23 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
24 |     }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/7] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
 5 |
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 9 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 9 | }
10 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:12:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |
 11 | public extension JSONPostRouter {
 12 |     func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 13 |         guard let request = request() else {
 14 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:57:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 55 |     }
 56 |
 57 |     func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |         guard let request = request() else {
 59 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:65:80: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 65 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 66 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 67 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:127:80: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
128 |         var urlComponents = urlComponents
129 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:69:23: error: cannot find type 'URLRequest' in scope
 67 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 68 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 69 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 70 | }
 71 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:73:23: error: cannot find type 'URLRequest' in scope
 71 |
 72 | public extension Router {
 73 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 74 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 75 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:27:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 25 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
 26 |             if let response = response as? HTTPURLResponse {
 27 |                 if !response.wasSuccessful {
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 28 |                     var userInfo = [String: Any]()
 29 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 70 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
 71 |             if let response = response as? HTTPURLResponse {
 72 |                 if !response.wasSuccessful {
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 73 |                     var userInfo = [String: Any]()
 74 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
[7/7] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:65:80: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 65 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 66 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 67 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
 5 |
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 9 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
 6 | public protocol RequestKitURLSession {
 7 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 8 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 9 | }
10 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:69:23: error: cannot find type 'URLRequest' in scope
 67 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 68 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 69 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 70 | }
 71 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:73:23: error: cannot find type 'URLRequest' in scope
 71 |
 72 | public extension Router {
 73 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 74 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 75 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:127:80: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
128 |         var urlComponents = urlComponents
129 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:148:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |
147 |     @available(*, deprecated, message: "Plase use `load` method instead")
148 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
149 |         return load(session, expectedResultType: expectedResultType, completion: completion)
150 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:152:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |     }
151 |
152 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 |         let decoder = JSONDecoder()
154 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |     }
159 |
160 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |         guard let request = request() else {
162 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:195:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |     }
194 |
195 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 |         guard let request = request() else {
197 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:233:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
231 | }
232 |
233 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
234 |     var wasSuccessful: Bool {
235 |         let successRange = 200..<300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:37: error: cannot find 'URLRequest' in scope
131 |         switch encoding {
132 |         case .url, .json:
133 |             var mutableURLRequest = URLRequest(url: url)
    |                                     `- error: cannot find 'URLRequest' in scope
134 |             mutableURLRequest.httpMethod = method.rawValue
135 |             return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:139:37: error: cannot find 'URLRequest' in scope
137 |             let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
138 |             urlComponents.queryItems = nil // clear the query items as they go into the body
139 |             var mutableURLRequest = URLRequest(url: urlComponents.url!)
    |                                     `- error: cannot find 'URLRequest' in scope
140 |             mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
141 |             mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:143:41: error: cannot find type 'URLRequest' in scope
141 |             mutableURLRequest.httpBody = queryData
142 |             mutableURLRequest.httpMethod = method.rawValue
143 |             return mutableURLRequest as URLRequest
    |                                         `- error: cannot find type 'URLRequest' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:167:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
165 |         let task = session.dataTask(with: request) { data, response, err in
166 |             if let response = response as? HTTPURLResponse {
167 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
168 |                     var userInfo = [String: Any]()
169 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:202:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
200 |         let task = session.dataTask(with: request) { data, response, err in
201 |             if let response = response as? HTTPURLResponse {
202 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
203 |                     var userInfo = [String: Any]()
204 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm