The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UCLKit, reference main (823da0), with Swift 6.1 for Android on 27 May 2025 11:21:32 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tiferrei/UCLKit.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/tiferrei/UCLKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 823da01 Update LICENSE
Cloned https://github.com/tiferrei/UCLKit.git
Revision (git rev-parse @):
823da018a17d77852cf92841bef600bf7dc89657
SUCCESS checkout https://github.com/tiferrei/UCLKit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tiferrei/UCLKit.git
https://github.com/tiferrei/UCLKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "requestkit",
      "requirement" : {
        "branch" : [
          "xcode-10.2"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nerdishbynature/RequestKit.git"
    }
  ],
  "manifest_display_name" : "UCLKit",
  "name" : "UCLKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UCLKit",
      "targets" : [
        "UCLKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UCLKitTests",
      "module_type" : "SwiftTarget",
      "name" : "UCLKitTests",
      "path" : "Tests/UCLKitTests",
      "sources" : [
        "BookingTests.swift",
        "EquipmentTests.swift",
        "FreeRoomsTests.swift",
        "HelperToolsTests.swift",
        "ResourcesManager.swift",
        "RoomTests.swift",
        "SearchTests.swift",
        "TestHelper.swift",
        "TestURLSession.swift",
        "UCLKitTests.swift"
      ],
      "target_dependencies" : [
        "UCLKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UCLKit",
      "module_type" : "SwiftTarget",
      "name" : "UCLKit",
      "path" : "Source/UCLKit",
      "product_dependencies" : [
        "RequestKit"
      ],
      "product_memberships" : [
        "UCLKit"
      ],
      "sources" : [
        "Configuration.swift",
        "DecodableToDictionary.swift",
        "ErrorHandling.swift",
        "RoomBookings.swift",
        "Search.swift",
        "Time.swift",
        "UCLKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1554] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.35s)
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at xcode-10.2 (eb41e20)
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:9:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |
 8 | public extension JSONPostRouter {
 9 |     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'
10 |         guard let request = request() else {
11 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:54:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 |     }
53 |
54 |     func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         guard let request = request() else {
56 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     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.
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     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.
 6 | }
 7 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 | }
11 |
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
13 |
14 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
13 |
14 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:23: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:80: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 |     @available(*, deprecated, message: "Plase use `load` method instead")
145 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |         return load(session, expectedResultType: expectedResultType, completion: completion)
147 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:149:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |     }
148 |
149 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |         let decoder = JSONDecoder()
151 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:157:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     }
156 |
157 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |         guard let request = request() else {
159 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:192:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     }
191 |
192 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |         guard let request = request() else {
194 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:230:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
228 | }
229 |
230 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
231 |     var wasSuccessful: Bool {
232 |         let successRange = 200..<300
[5/7] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:9:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |
 8 | public extension JSONPostRouter {
 9 |     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'
10 |         guard let request = request() else {
11 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:54:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 |     }
53 |
54 |     func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         guard let request = request() else {
56 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:80: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:23: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:24:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
22 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
23 |             if let response = response as? HTTPURLResponse {
24 |                 if !response.wasSuccessful {
   |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
25 |                     var userInfo = [String: Any]()
26 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:69:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
67 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
68 |             if let response = response as? HTTPURLResponse {
69 |                 if !response.wasSuccessful {
   |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
70 |                     var userInfo = [String: Any]()
71 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
[6/7] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:23: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:80: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 |     @available(*, deprecated, message: "Plase use `load` method instead")
145 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |         return load(session, expectedResultType: expectedResultType, completion: completion)
147 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:149:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |     }
148 |
149 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |         let decoder = JSONDecoder()
151 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:157:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     }
156 |
157 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |         guard let request = request() else {
159 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:192:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     }
191 |
192 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |         guard let request = request() else {
194 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:230:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
228 | }
229 |
230 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
231 |     var wasSuccessful: Bool {
232 |         let successRange = 200..<300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:130:37: error: cannot find 'URLRequest' in scope
128 |         switch encoding {
129 |         case .url, .json:
130 |             var mutableURLRequest = URLRequest(url: url)
    |                                     `- error: cannot find 'URLRequest' in scope
131 |             mutableURLRequest.httpMethod = method.rawValue
132 |             return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:136:37: error: cannot find 'URLRequest' in scope
134 |             let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
135 |             urlComponents.queryItems = nil // clear the query items as they go into the body
136 |             var mutableURLRequest = URLRequest(url: urlComponents.url!)
    |                                     `- error: cannot find 'URLRequest' in scope
137 |             mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
138 |             mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:164:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
162 |         let task = session.dataTask(with: request) { data, response, err in
163 |             if let response = response as? HTTPURLResponse {
164 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
165 |                     var userInfo = [String: Any]()
166 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:199:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
197 |         let task = session.dataTask(with: request) { data, response, err in
198 |             if let response = response as? HTTPURLResponse {
199 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
200 |                     var userInfo = [String: Any]()
201 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
[7/7] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     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.
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     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.
 6 | }
 7 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 | }
11 |
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
13 |
14 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
13 |
14 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:40: error: cannot find type 'URLRequest' in scope
13 |
14 | extension URLSession: RequestKitURLSession {
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
17 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
21 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:9:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |
 8 | public extension JSONPostRouter {
 9 |     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'
10 |         guard let request = request() else {
11 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:54:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 |     }
53 |
54 |     func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         guard let request = request() else {
56 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:80: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:23: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:24:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
22 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
23 |             if let response = response as? HTTPURLResponse {
24 |                 if !response.wasSuccessful {
   |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
25 |                     var userInfo = [String: Any]()
26 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:69:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
67 |         let task = session.uploadTask(with: request, fromData: data) { data, response, error in
68 |             if let response = response as? HTTPURLResponse {
69 |                 if !response.wasSuccessful {
   |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
70 |                     var userInfo = [String: Any]()
71 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:9:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |
 8 | public extension JSONPostRouter {
 9 |     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'
10 |         guard let request = request() else {
11 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:54:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
52 |     }
53 |
54 |     func post<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder:JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         guard let request = request() else {
56 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     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.
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     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.
 6 | }
 7 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 | }
11 |
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
13 |
14 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
13 |
14 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:23: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:80: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 |     @available(*, deprecated, message: "Plase use `load` method instead")
145 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |         return load(session, expectedResultType: expectedResultType, completion: completion)
147 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:149:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |     }
148 |
149 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |         let decoder = JSONDecoder()
151 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:157:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     }
156 |
157 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |         guard let request = request() else {
159 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:192:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     }
191 |
192 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |         guard let request = request() else {
194 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:230:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
228 | }
229 |
230 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
231 |     var wasSuccessful: Bool {
232 |         let successRange = 200..<300
[4/5] Compiling RequestKit RequestKitSession.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     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.
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     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.
 6 | }
 7 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 | }
11 |
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
13 |
14 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | extension URLSessionDataTask: URLSessionDataTaskProtocol { }
13 |
14 | extension URLSession: RequestKitURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:40: error: cannot find type 'URLRequest' in scope
13 |
14 | extension URLSession: RequestKitURLSession {
15 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
   |                                        `- error: cannot find type 'URLRequest' in scope
16 |         return (dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask)
17 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |         return uploadTask(with: request, from: bodyData, completionHandler: completionHandler)
21 |     }
[5/5] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:62:80: error: cannot find type 'URLRequest' in scope
 60 |
 61 |     func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
 62 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 63 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:4:33: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
 6 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:5:35: error: cannot find type 'URLRequest' in scope
 3 | public protocol RequestKitURLSession {
 4 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
 5 |     func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
   |                                   `- error: cannot find type 'URLRequest' in scope
 6 | }
 7 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
 64 |     func load<T: Codable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 65 |     func load<T: Codable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
 66 |     func request() -> URLRequest?
    |                       `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:70:23: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public extension Router {
 70 |     func request() -> URLRequest? {
    |                       `- error: cannot find type 'URLRequest' in scope
 71 |         let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
 72 |         var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:124:80: error: cannot find type 'URLRequest' in scope
122 |     }
123 |
124 |     func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
125 |         var urlComponents = urlComponents
126 |         urlComponents.percentEncodedQuery = urlQuery(parameters)?.map({ [$0.name, $0.value ?? ""].joined(separator: "=") }).joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:76: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
143 |
144 |     @available(*, deprecated, message: "Plase use `load` method instead")
145 |     func loadJSON<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
146 |         return load(session, expectedResultType: expectedResultType, completion: completion)
147 |     }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:149:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |     }
148 |
149 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |         let decoder = JSONDecoder()
151 |         if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:157:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 |     }
156 |
157 |     func load<T: Codable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 |         guard let request = request() else {
159 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:192:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
190 |     }
191 |
192 |     func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
    |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
193 |         guard let request = request() else {
194 |             return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:230:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
228 | }
229 |
230 | public extension HTTPURLResponse {
    |        `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
231 |     var wasSuccessful: Bool {
232 |         let successRange = 200..<300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:130:37: error: cannot find 'URLRequest' in scope
128 |         switch encoding {
129 |         case .url, .json:
130 |             var mutableURLRequest = URLRequest(url: url)
    |                                     `- error: cannot find 'URLRequest' in scope
131 |             mutableURLRequest.httpMethod = method.rawValue
132 |             return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:136:37: error: cannot find 'URLRequest' in scope
134 |             let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
135 |             urlComponents.queryItems = nil // clear the query items as they go into the body
136 |             var mutableURLRequest = URLRequest(url: urlComponents.url!)
    |                                     `- error: cannot find 'URLRequest' in scope
137 |             mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
138 |             mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:164:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
162 |         let task = session.dataTask(with: request) { data, response, err in
163 |             if let response = response as? HTTPURLResponse {
164 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
165 |                     var userInfo = [String: Any]()
166 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:199:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
197 |         let task = session.dataTask(with: request) { data, response, err in
198 |             if let response = response as? HTTPURLResponse {
199 |                 if response.wasSuccessful == false {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
200 |                     var userInfo = [String: Any]()
201 |                     if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
BUILD FAILURE 6.1 android