The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BaseAPI, reference master (f861b9), with Swift 6.1 for Android on 29 May 2025 22:52:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/serhii-londar/BaseAPI.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/serhii-londar/BaseAPI
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f861b98 Update watchos deployment target
Cloned https://github.com/serhii-londar/BaseAPI.git
Revision (git rev-parse @):
f861b982abc38b75e2c5332e2e333a9da06bcf6a
SUCCESS checkout https://github.com/serhii-londar/BaseAPI.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/serhii-londar/BaseAPI.git
https://github.com/serhii-londar/BaseAPI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BaseAPI",
  "name" : "BaseAPI",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "BaseAPI",
      "targets" : [
        "BaseAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BaseAPI",
      "module_type" : "SwiftTarget",
      "name" : "BaseAPI",
      "path" : "BaseAPI/Classes",
      "product_memberships" : [
        "BaseAPI"
      ],
      "sources" : [
        "BaseAPI.swift",
        "Extensions/CharacterSet.swift",
        "Extensions/URLSession.swift",
        "Request.swift",
        "RequestHeaderFields.swift",
        "RequestMethod.swift",
        "ResponsetHeaderFields.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling BaseAPI URLSession.swift
/host/spi-builder-workspace/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
   |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 |     public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 |         var data: Data?
/host/spi-builder-workspace/BaseAPI/Classes/Extensions/URLSession.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |
18 | extension URLSession {
19 |     public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         var data: Data?
21 |         var response: URLResponse?
[4/10] Compiling BaseAPI ResponsetHeaderFields.swift
[5/10] Compiling BaseAPI RequestMethod.swift
[6/10] Compiling BaseAPI RequestHeaderFields.swift
[7/10] Compiling BaseAPI Request.swift
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func request() -> (request: URLRequest?, error: Error?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
30 |         // First encode just the base URL
31 |         if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:35:31: error: cannot find 'URLRequest' in scope
33 |             let finalUrl = appendParametersToUrl(encodedBaseUrl)
34 |             if let url = URL(string: finalUrl) {
35 |                 var request = URLRequest(url: url)
   |                               `- error: cannot find 'URLRequest' in scope
36 |                 if let headers = headers {
37 |                     for (key, value) in headers {
[8/10] Compiling BaseAPI CharacterSet.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Emitting module BaseAPI
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 | #endif
 13 |
 14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 | public typealias BaseAPIResult = SynchronousDataTaskResult
 16 |
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/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 | open class BaseAPI {
 18 |     var session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
 20 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     }
 24 |
 25 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |         self.session = session
 27 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
 27 |     }
 28 |
 29 |     public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
    |                               `- error: cannot find type 'URLRequest' in scope
 30 |         session.dataTask(with: request, completionHandler: completion).resume()
 31 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func send(request: URLRequest) -> BaseAPIResult {
    |                               `- error: cannot find type 'URLRequest' in scope
 34 |         return session.synchronousDataTask(request: request)
 35 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     /// MARK - private
 77 |
 78 |     private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         if let data = data {
 80 |             do {
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/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     }
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
 95 |             callbackQueue.async { success() }
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/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
   |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 |     public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 |         var data: Data?
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func request() -> (request: URLRequest?, error: Error?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
30 |         // First encode just the base URL
31 |         if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
[10/10] Compiling BaseAPI BaseAPI.swift
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 | #endif
 13 |
 14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 | public typealias BaseAPIResult = SynchronousDataTaskResult
 16 |
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/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 | open class BaseAPI {
 18 |     var session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
 20 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     }
 24 |
 25 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |         self.session = session
 27 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
 27 |     }
 28 |
 29 |     public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
    |                               `- error: cannot find type 'URLRequest' in scope
 30 |         session.dataTask(with: request, completionHandler: completion).resume()
 31 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func send(request: URLRequest) -> BaseAPIResult {
    |                               `- error: cannot find type 'URLRequest' in scope
 34 |         return session.synchronousDataTask(request: request)
 35 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     /// MARK - private
 77 |
 78 |     private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         if let data = data {
 80 |             do {
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/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     }
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
 95 |             callbackQueue.async { success() }
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/BaseAPI/Classes/BaseAPI.swift:22:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |
 21 |     public init() {
 22 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     }
 24 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:22:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 20 |
 21 |     public init() {
 22 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 23 |     }
 24 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:30:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 28 |
 29 |     public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
 30 |         session.dataTask(with: request, completionHandler: completion).resume()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 31 |     }
 32 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:34:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 32 |
 33 |     public func send(request: URLRequest) -> BaseAPIResult {
 34 |         return session.synchronousDataTask(request: request)
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 35 |     }
 36 |
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func request() -> (request: URLRequest?, error: Error?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
30 |         // First encode just the base URL
31 |         if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:43:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 41 |         let buildRequest = request.request()
 42 |         if let urlRequest = buildRequest.request {
 43 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 44 |                 callbackQueue.async { completion(data, response, error) }
 45 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:56:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 54 |         let buildRequest = request.request()
 55 |         if let urlRequest = buildRequest.request {
 56 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 57 |         } else {
 58 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:89:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
 87 |             callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
 88 |         } else if let response = response {
 89 |             callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
    |                                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
 90 |         }
 91 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:94:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
    |                                `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 95 |             callbackQueue.async { success() }
 96 |         } else if let error = error {
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:94:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |             callbackQueue.async { success() }
 96 |         } else if let error = error {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |             callbackQueue.async { success() }
 96 |         } else if let error = error {
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:99:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
 97 |             callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
 98 |         } else if let response = response {
 99 |             callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
    |                                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
100 |         }
101 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:95:35: warning: capture of 'success' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
 95 |             callbackQueue.async { success() }
    |                                   |- warning: capture of 'success' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 96 |         } else if let error = error {
 97 |             callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:104:31: warning: capture of 'success' with non-sendable type '(T) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
102 |
103 |     private func callSuccess<T: Decodable>(with model: T, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void) {
104 |         callbackQueue.async { success(model) }
    |                               |- warning: capture of 'success' with non-sendable type '(T) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
105 |     }
106 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:104:39: warning: capture of 'model' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
101 |     }
102 |
103 |     private func callSuccess<T: Decodable>(with model: T, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void) {
    |                              `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
104 |         callbackQueue.async { success(model) }
    |                                       `- warning: capture of 'model' with non-sendable type 'T' in a '@Sendable' closure; this is an error in the Swift 6 language mode
105 |     }
106 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:108:31: warning: capture of 'failure' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
106 |
107 |     private func callFailure(with error: Error, callbackQueue: DispatchQueue = .main, failure: @escaping (Error) -> Void) {
108 |         callbackQueue.async { failure(error) }
    |                               |- warning: capture of 'failure' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
109 |     }
110 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:117:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
115 |         let buildRequest = request.request()
116 |         if let urlRequest = buildRequest.request {
117 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
118 |                 callbackQueue.async { completion(data, response, error) }
119 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:130:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
128 |         let buildRequest = request.request()
129 |         if let urlRequest = buildRequest.request {
130 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
131 |         } else {
132 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:149:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
147 |         let buildRequest = request.request()
148 |         if let urlRequest = buildRequest.request {
149 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
150 |                 callbackQueue.async { completion(data, response, error) }
151 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:162:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
160 |         let buildRequest = request.request()
161 |         if let urlRequest = buildRequest.request {
162 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
163 |         } else {
164 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:188:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
186 |         let buildRequest = request.request()
187 |         if let urlRequest = buildRequest.request {
188 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
189 |                 callbackQueue.async { completion(data, response, error) }
190 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:201:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
199 |         let buildRequest = request.request()
200 |         if let urlRequest = buildRequest.request {
201 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
202 |         } else {
203 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:227:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
225 |         let buildRequest = request.request()
226 |         if let urlRequest = buildRequest.request {
227 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
228 |                 callbackQueue.async { completion(data, response, error) }
229 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:240:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
238 |         let buildRequest = request.request()
239 |         if let urlRequest = buildRequest.request {
240 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
241 |         } else {
242 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:266:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
264 |         let buildRequest = request.request()
265 |         if let urlRequest = buildRequest.request {
266 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
267 |                 callbackQueue.async { completion(data, response, error) }
268 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:279:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
277 |         let buildRequest = request.request()
278 |         if let urlRequest = buildRequest.request {
279 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
280 |         } else {
281 |             return (nil, nil, buildRequest.error)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
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/9] Compiling BaseAPI CharacterSet.swift
[3/9] Compiling BaseAPI ResponsetHeaderFields.swift
[4/9] Compiling BaseAPI URLSession.swift
/host/spi-builder-workspace/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
   |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 |     public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 |         var data: Data?
/host/spi-builder-workspace/BaseAPI/Classes/Extensions/URLSession.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |
18 | extension URLSession {
19 |     public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         var data: Data?
21 |         var response: URLResponse?
[5/9] Compiling BaseAPI BaseAPI.swift
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 | #endif
 13 |
 14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 | public typealias BaseAPIResult = SynchronousDataTaskResult
 16 |
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/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 | open class BaseAPI {
 18 |     var session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
 20 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     }
 24 |
 25 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |         self.session = session
 27 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
 27 |     }
 28 |
 29 |     public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
    |                               `- error: cannot find type 'URLRequest' in scope
 30 |         session.dataTask(with: request, completionHandler: completion).resume()
 31 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func send(request: URLRequest) -> BaseAPIResult {
    |                               `- error: cannot find type 'URLRequest' in scope
 34 |         return session.synchronousDataTask(request: request)
 35 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     /// MARK - private
 77 |
 78 |     private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         if let data = data {
 80 |             do {
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/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     }
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
 95 |             callbackQueue.async { success() }
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/BaseAPI/Classes/BaseAPI.swift:22:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |
 21 |     public init() {
 22 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     }
 24 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:22:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 20 |
 21 |     public init() {
 22 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 23 |     }
 24 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:30:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 28 |
 29 |     public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
 30 |         session.dataTask(with: request, completionHandler: completion).resume()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 31 |     }
 32 |
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:34:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 32 |
 33 |     public func send(request: URLRequest) -> BaseAPIResult {
 34 |         return session.synchronousDataTask(request: request)
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 35 |     }
 36 |
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func request() -> (request: URLRequest?, error: Error?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
30 |         // First encode just the base URL
31 |         if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:43:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 41 |         let buildRequest = request.request()
 42 |         if let urlRequest = buildRequest.request {
 43 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 44 |                 callbackQueue.async { completion(data, response, error) }
 45 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:56:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 54 |         let buildRequest = request.request()
 55 |         if let urlRequest = buildRequest.request {
 56 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
 57 |         } else {
 58 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:89:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
 87 |             callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
 88 |         } else if let response = response {
 89 |             callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
    |                                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
 90 |         }
 91 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:94:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
    |                                `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 95 |             callbackQueue.async { success() }
 96 |         } else if let error = error {
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:94:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |             callbackQueue.async { success() }
 96 |         } else if let error = error {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:94:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |             callbackQueue.async { success() }
 96 |         } else if let error = error {
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:99:56: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
 97 |             callFailure(with: error, callbackQueue: callbackQueue, failure: failure)
 98 |         } else if let response = response {
 99 |             callFailure(with: NSError(domain: response.description, code: -9999, userInfo: ["response": response]), callbackQueue: callbackQueue, failure: failure)
    |                                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'description'
100 |         }
101 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:117:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
115 |         let buildRequest = request.request()
116 |         if let urlRequest = buildRequest.request {
117 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
118 |                 callbackQueue.async { completion(data, response, error) }
119 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:130:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
128 |         let buildRequest = request.request()
129 |         if let urlRequest = buildRequest.request {
130 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
131 |         } else {
132 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:149:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
147 |         let buildRequest = request.request()
148 |         if let urlRequest = buildRequest.request {
149 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
150 |                 callbackQueue.async { completion(data, response, error) }
151 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:162:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
160 |         let buildRequest = request.request()
161 |         if let urlRequest = buildRequest.request {
162 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
163 |         } else {
164 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:188:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
186 |         let buildRequest = request.request()
187 |         if let urlRequest = buildRequest.request {
188 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
189 |                 callbackQueue.async { completion(data, response, error) }
190 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:201:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
199 |         let buildRequest = request.request()
200 |         if let urlRequest = buildRequest.request {
201 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
202 |         } else {
203 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:227:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
225 |         let buildRequest = request.request()
226 |         if let urlRequest = buildRequest.request {
227 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
228 |                 callbackQueue.async { completion(data, response, error) }
229 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:240:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
238 |         let buildRequest = request.request()
239 |         if let urlRequest = buildRequest.request {
240 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
241 |         } else {
242 |             return (nil, nil, buildRequest.error)
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:266:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
264 |         let buildRequest = request.request()
265 |         if let urlRequest = buildRequest.request {
266 |             let task = session.dataTask(with: urlRequest) { (data, response, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
267 |                 callbackQueue.async { completion(data, response, error) }
268 |             }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:279:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
277 |         let buildRequest = request.request()
278 |         if let urlRequest = buildRequest.request {
279 |             return session.synchronousDataTask(request: urlRequest)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'synchronousDataTask'
280 |         } else {
281 |             return (nil, nil, buildRequest.error)
[6/9] Compiling BaseAPI RequestHeaderFields.swift
[7/9] Compiling BaseAPI RequestMethod.swift
[8/9] Compiling BaseAPI Request.swift
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func request() -> (request: URLRequest?, error: Error?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
30 |         // First encode just the base URL
31 |         if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:35:31: error: cannot find 'URLRequest' in scope
33 |             let finalUrl = appendParametersToUrl(encodedBaseUrl)
34 |             if let url = URL(string: finalUrl) {
35 |                 var request = URLRequest(url: url)
   |                               `- error: cannot find 'URLRequest' in scope
36 |                 if let headers = headers {
37 |                     for (key, value) in headers {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/9] Emitting module BaseAPI
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:14:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 | #endif
 13 |
 14 | public typealias BaseAPICompletion = (Data?, URLResponse?, Error?) -> Swift.Void
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 | public typealias BaseAPIResult = SynchronousDataTaskResult
 16 |
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/BaseAPI/Classes/BaseAPI.swift:18:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 | open class BaseAPI {
 18 |     var session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let parsingQueue = DispatchQueue(label: "BaseAPI-parsing-queue")
 20 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     }
 24 |
 25 |     public init(session: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |         self.session = session
 27 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:29:31: error: cannot find type 'URLRequest' in scope
 27 |     }
 28 |
 29 |     public func send(request: URLRequest, completion: @escaping BaseAPICompletion) {
    |                               `- error: cannot find type 'URLRequest' in scope
 30 |         session.dataTask(with: request, completionHandler: completion).resume()
 31 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:33:31: error: cannot find type 'URLRequest' in scope
 31 |     }
 32 |
 33 |     public func send(request: URLRequest) -> BaseAPIResult {
    |                               `- error: cannot find type 'URLRequest' in scope
 34 |         return session.synchronousDataTask(request: request)
 35 |     }
/host/spi-builder-workspace/BaseAPI/Classes/BaseAPI.swift:78:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |     /// MARK - private
 77 |
 78 |     private func handle<T: Decodable>(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping (T) -> Void, failure: @escaping (Error) -> Void) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |         if let data = data {
 80 |             do {
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/BaseAPI/Classes/BaseAPI.swift:93:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     }
 92 |
 93 |     private func handle(data: Data?, response: URLResponse?, error: Error?, callbackQueue: DispatchQueue = .main, success: @escaping () -> Void, failure: @escaping (Error) -> Void) {
    |                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |         if let resp = response as? HTTPURLResponse, resp.statusCode == 200 {
 95 |             callbackQueue.async { success() }
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/BaseAPI/Classes/Extensions/URLSession.swift:16:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #endif
15 |
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
   |                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | extension URLSession {
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/BaseAPI/Classes/Extensions/URLSession.swift:18:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 | public typealias SynchronousDataTaskResult = (data: Data?, response: URLResponse?, error: Error?)
17 |
18 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
19 |     public func synchronousDataTask(request: URLRequest) -> SynchronousDataTaskResult {
20 |         var data: Data?
/host/spi-builder-workspace/BaseAPI/Classes/Request.swift:29:40: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func request() -> (request: URLRequest?, error: Error?) {
   |                                        `- error: cannot find type 'URLRequest' in scope
30 |         // First encode just the base URL
31 |         if let encodedBaseUrl = url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) {
BUILD FAILURE 6.1 android