The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build RequestKit, reference main (e4d905), with Swift 6.1 for Wasm on 28 May 2025 17:18:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/nerdishbynature/RequestKit.git
Reference: main
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/nerdishbynature/RequestKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e4d905f Merge pull request #97 from 417-72KI/only-decodable
Cloned https://github.com/nerdishbynature/RequestKit.git
Revision (git rev-parse @):
e4d905fed938807e36d87f28375f88b7c1c26840
SUCCESS checkout https://github.com/nerdishbynature/RequestKit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nerdishbynature/RequestKit.git
https://github.com/nerdishbynature/RequestKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RequestKit",
  "name" : "RequestKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RequestKit",
      "targets" : [
        "RequestKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "3.0",
    "4.0",
    "4.1",
    "4.2"
  ],
  "targets" : [
    {
      "c99name" : "RequestKitTests",
      "module_type" : "SwiftTarget",
      "name" : "RequestKitTests",
      "path" : "Tests/RequestKitTests",
      "sources" : [
        "ConfigurationTests.swift",
        "JSONPostRouterTests.swift",
        "RequestKitURLTestSession.swift",
        "RouterTests.swift",
        "TestHelper.swift",
        "TestInterface.swift"
      ],
      "target_dependencies" : [
        "RequestKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RequestKit",
      "module_type" : "SwiftTarget",
      "name" : "RequestKit",
      "path" : "Sources/RequestKit",
      "product_memberships" : [
        "RequestKit"
      ],
      "sources" : [
        "JSONPostRouter.swift",
        "RequestKitSession.swift",
        "Router.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
[3/6] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/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/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
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/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     #endif
17 | }
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/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:26:40: error: cannot find type 'URLRequest' in scope
24 |
25 | extension URLSession: RequestKitURLSession {
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
28 |     }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:30:42: error: cannot find type 'URLRequest' in scope
28 |     }
29 |
30 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
31 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
32 |     }
[4/6] Compiling RequestKit Router.swift
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 60 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 61 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 62 |     func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
 65 |         -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |
 68 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
 77 |
 78 | public extension Router {
 79 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 80 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 81 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 |     }
132 |
133 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
134 |         var urlComponents = urlComponents
135 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 |     @available(*, deprecated, message: "Plase use `load` method instead")
154 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
    |                                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |                                 completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |     }
159 |
160 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 |     }
169 |
170 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |     }
206 |
207 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 |         guard let request = request() else {
209 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 |         guard let request = request() else {
237 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     }
254 |
255 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 |         let decoder = JSONDecoder()
257 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |     }
262 |
263 |     func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 |         guard let request = request() else {
265 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 |     var wasSuccessful: Bool {
296 |         let successRange = 200 ..< 300
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:139:37: error: cannot find 'URLRequest' in scope
137 |         switch encoding {
138 |         case .url, .json:
139 |             var mutableURLRequest = URLRequest(url: url)
    |                                     `- error: cannot find 'URLRequest' in scope
140 |             mutableURLRequest.httpMethod = method.rawValue
141 |             return mutableURLRequest
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:145:37: error: cannot find 'URLRequest' in scope
143 |             let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
144 |             urlComponents.queryItems = nil // clear the query items as they go into the body
145 |             var mutableURLRequest = URLRequest(url: urlComponents.url!)
    |                                     `- error: cannot find 'URLRequest' in scope
146 |             mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
147 |             mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:179:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
177 |         let task = session.dataTask(with: request) { data, response, err in
178 |             if let response = response as? HTTPURLResponse {
179 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
180 |                     var userInfo = [String: Any]()
181 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:214:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
212 |         let task = session.dataTask(with: request) { data, response, err in
213 |             if let response = response as? HTTPURLResponse {
214 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
215 |                     var userInfo = [String: Any]()
216 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:240:76: error: 'nil' requires a contextual type
238 |         }
239 |
240 |         let responseTuple = try await session.data(for: request, delegate: nil)
    |                                                                            `- error: 'nil' requires a contextual type
241 |
242 |         if let response = responseTuple.1 as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:268:76: error: 'nil' requires a contextual type
266 |         }
267 |
268 |         let responseTuple = try await session.data(for: request, delegate: nil)
    |                                                                            `- error: 'nil' requires a contextual type
269 |         if let response = responseTuple.1 as? HTTPURLResponse {
270 |             if response.wasSuccessful == false {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module RequestKit
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |
 24 | public extension JSONPostRouter {
 25 |     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'
 26 |         guard let request = request() else {
 27 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
 71 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
 72 |     func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |         guard let request = request() else {
 74 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 93 |     #endif
 94 |
 95 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 96 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 97 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |     }
104 |
105 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
151 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 |         let decoder = JSONDecoder()
154 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
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/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     #endif
17 | }
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/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 60 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 61 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 62 |     func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
 65 |         -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |
 68 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
 77 |
 78 | public extension Router {
 79 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 80 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 81 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 |     }
132 |
133 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
134 |         var urlComponents = urlComponents
135 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 |     @available(*, deprecated, message: "Plase use `load` method instead")
154 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
    |                                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |                                 completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |     }
159 |
160 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 |     }
169 |
170 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |     }
206 |
207 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 |         guard let request = request() else {
209 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 |         guard let request = request() else {
237 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     }
254 |
255 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 |         let decoder = JSONDecoder()
257 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |     }
262 |
263 |     func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 |         guard let request = request() else {
265 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 |     var wasSuccessful: Bool {
296 |         let successRange = 200 ..< 300
[6/6] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |
 24 | public extension JSONPostRouter {
 25 |     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'
 26 |         guard let request = request() else {
 27 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
 71 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
 72 |     func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |         guard let request = request() else {
 74 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 93 |     #endif
 94 |
 95 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 96 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 97 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |     }
104 |
105 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
151 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 |         let decoder = JSONDecoder()
154 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 60 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 61 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 62 |     func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 |     }
132 |
133 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
134 |         var urlComponents = urlComponents
135 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
 65 |         -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |
 68 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
 77 |
 78 | public extension Router {
 79 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 80 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 81 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 38 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
 39 |             if let response = response as? HTTPURLResponse {
 40 |                 if !response.wasSuccessful {
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 41 |                     var userInfo = [String: Any]()
 42 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
 76 |
 77 |         let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
 78 |         let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 79 |         if let response = responseTuple.1 as? HTTPURLResponse {
 80 |             if !response.wasSuccessful {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:121:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
119 |
120 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
121 |             if let response = response as? HTTPURLResponse, !response.wasSuccessful {
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
122 |                 var userInfo = [String: Any]()
123 |                 if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:167:90: error: 'nil' requires a contextual type
165 |
166 |         let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
167 |         let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
168 |         if let response = responseTuple.1 as? HTTPURLResponse, response.wasSuccessful == false {
169 |             var userInfo = [String: Any]()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Emitting module RequestKit
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |
 24 | public extension JSONPostRouter {
 25 |     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'
 26 |         guard let request = request() else {
 27 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
 71 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
 72 |     func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |         guard let request = request() else {
 74 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 93 |     #endif
 94 |
 95 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 96 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 97 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |     }
104 |
105 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
151 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 |         let decoder = JSONDecoder()
154 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
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/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     #endif
17 | }
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/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 60 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 61 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 62 |     func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
 65 |         -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |
 68 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
 77 |
 78 | public extension Router {
 79 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 80 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 81 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 |     }
132 |
133 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
134 |         var urlComponents = urlComponents
135 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 |     @available(*, deprecated, message: "Plase use `load` method instead")
154 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
    |                                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |                                 completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |     }
159 |
160 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 |     }
169 |
170 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |     }
206 |
207 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 |         guard let request = request() else {
209 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 |         guard let request = request() else {
237 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     }
254 |
255 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 |         let decoder = JSONDecoder()
257 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |     }
262 |
263 |     func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 |         guard let request = request() else {
265 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 |     var wasSuccessful: Bool {
296 |         let successRange = 200 ..< 300
[3/5] Compiling RequestKit Router.swift
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 60 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 61 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 62 |     func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
 65 |         -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |
 68 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
 77 |
 78 | public extension Router {
 79 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 80 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 81 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 |     }
132 |
133 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
134 |         var urlComponents = urlComponents
135 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 |     @available(*, deprecated, message: "Plase use `load` method instead")
154 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
    |                                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |                                 completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |     }
159 |
160 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 |     }
169 |
170 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 |     {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 |     }
206 |
207 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 |         guard let request = request() else {
209 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 |         guard let request = request() else {
237 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     }
254 |
255 |     func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 |         let decoder = JSONDecoder()
257 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 |     }
262 |
263 |     func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 |         guard let request = request() else {
265 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 |     var wasSuccessful: Bool {
296 |         let successRange = 200 ..< 300
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:139:37: error: cannot find 'URLRequest' in scope
137 |         switch encoding {
138 |         case .url, .json:
139 |             var mutableURLRequest = URLRequest(url: url)
    |                                     `- error: cannot find 'URLRequest' in scope
140 |             mutableURLRequest.httpMethod = method.rawValue
141 |             return mutableURLRequest
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:145:37: error: cannot find 'URLRequest' in scope
143 |             let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
144 |             urlComponents.queryItems = nil // clear the query items as they go into the body
145 |             var mutableURLRequest = URLRequest(url: urlComponents.url!)
    |                                     `- error: cannot find 'URLRequest' in scope
146 |             mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
147 |             mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:179:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
177 |         let task = session.dataTask(with: request) { data, response, err in
178 |             if let response = response as? HTTPURLResponse {
179 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
180 |                     var userInfo = [String: Any]()
181 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:214:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
212 |         let task = session.dataTask(with: request) { data, response, err in
213 |             if let response = response as? HTTPURLResponse {
214 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
215 |                     var userInfo = [String: Any]()
216 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:240:76: error: 'nil' requires a contextual type
238 |         }
239 |
240 |         let responseTuple = try await session.data(for: request, delegate: nil)
    |                                                                            `- error: 'nil' requires a contextual type
241 |
242 |         if let response = responseTuple.1 as? HTTPURLResponse {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:268:76: error: 'nil' requires a contextual type
266 |         }
267 |
268 |         let responseTuple = try await session.data(for: request, delegate: nil)
    |                                                                            `- error: 'nil' requires a contextual type
269 |         if let response = responseTuple.1 as? HTTPURLResponse {
270 |             if response.wasSuccessful == false {
[4/5] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/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/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
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/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
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/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     #endif
17 | }
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/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:26:40: error: cannot find type 'URLRequest' in scope
24 |
25 | extension URLSession: RequestKitURLSession {
26 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
27 |         return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
28 |     }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:30:42: error: cannot find type 'URLRequest' in scope
28 |     }
29 |
30 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
31 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
32 |     }
[5/5] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/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/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 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
11 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 |     func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                              `- error: cannot find type 'URLRequest' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 |     func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
   |                                                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 |     #endif
17 | }
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 23 |
 24 | public extension JSONPostRouter {
 25 |     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'
 26 |         guard let request = request() else {
 27 |             return nil
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 70 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
 71 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
 72 |     func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |         guard let request = request() else {
 74 |             throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 93 |     #endif
 94 |
 95 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 96 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 97 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 |     }
104 |
105 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |                             completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 |     {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
151 |     @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 |     func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 |         let decoder = JSONDecoder()
154 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
 58 |
 59 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 60 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 61 |     func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 62 |     func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 |     }
132 |
133 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
134 |         var urlComponents = urlComponents
135 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
 65 |         -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 |
 68 |     #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
 77 |
 78 | public extension Router {
 79 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 80 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 81 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 38 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
 39 |             if let response = response as? HTTPURLResponse {
 40 |                 if !response.wasSuccessful {
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
 41 |                     var userInfo = [String: Any]()
 42 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
 76 |
 77 |         let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
 78 |         let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 79 |         if let response = responseTuple.1 as? HTTPURLResponse {
 80 |             if !response.wasSuccessful {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:121:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
119 |
120 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
121 |             if let response = response as? HTTPURLResponse, !response.wasSuccessful {
    |                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
122 |                 var userInfo = [String: Any]()
123 |                 if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/Sources/RequestKit/JSONPostRouter.swift:167:90: error: 'nil' requires a contextual type
165 |
166 |         let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
167 |         let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
168 |         if let response = responseTuple.1 as? HTTPURLResponse, response.wasSuccessful == false {
169 |             var userInfo = [String: Any]()
BUILD FAILURE 6.1 wasm