The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StripeKit, reference 0.1.0 (1dc175), with Swift 6.4 for Android on 16 Sep 2026 02:37:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kyleishie/stripekit.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/kyleishie/stripekit
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 1dc1755 Initial Commit
Cloned https://github.com/kyleishie/stripekit.git
Revision (git rev-parse @):
1dc17554512d448a2495d6b1aab85020daa40375
SUCCESS checkout https://github.com/kyleishie/stripekit.git at 0.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/kyleishie/stripekit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Pre-planning 1 / 153]
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | private let headerKey = "Accept"
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |
15 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:26:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
24 | }
25 |
26 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
27 |
28 |     var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey: String = "Authorization"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
28 |
29 |     var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | private let headerKey = "Content-Type"
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:27:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
25 | }
26 |
27 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
28 |
29 |     var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift:20:11: error: cannot find type 'URLRequest' in scope
18 |
19 |
20 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
21 |
22 |     public var method : HTTPMethod? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
78 | }
79 |
80 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
81 |
82 |     public var status : HTTPStatus {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift:11:11: error: cannot find type 'URLRequest' in scope
 9 | import Foundation
10 |
11 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
12 |
13 |     mutating func setJSONBody<T : Encodable>(_ body: T, with encoder: CodableEncoder = JSONEncoder()) throws {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift:10:11: error: cannot find type 'URLRequest' in scope
 8 | import Foundation
 9 |
10 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
11 |
12 |     public init(_ baseURL: URL, pathItems: String?..., query: [URLQueryItem]? = nil) {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift:11:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 9 | import Foundation
10 |
11 | public extension URLSessionConfiguration {
   |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
12 |
13 |     public static var restJSONAPI : URLSessionConfiguration {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:13:172: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     //MARK: List --- GET
 12 |
 13 |     public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |         let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:23:196: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     //MARK: Retrieve --- GET
 22 |
 23 |     public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:33:144: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     //MARK: Create --- POST
 32 |
 33 |     public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:42:194: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     }
 41 |
 42 |     public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                  `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |
 44 |         var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:54:163: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |     //MARK: Update --- PATCH
 53 |
 54 |     public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |
 56 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:63:213: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     }
 62 |
 63 |     public func update<T : Resource & Updatable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                     `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:75:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     //MARK: Replace --- PUT
 74 |
 75 |     public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |
 77 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:84:216: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     }
 83 |
 84 |     public func replace<T : Resource & Replaceable & Encodable, R : Resource & Decodable>(_ instance: T, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> URLSessionDataTask {
    |                                                                                                                                                                                                                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:96:150: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     //MARK: Delete --- DELETE
 95 |
 96 |     public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |
 98 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:112:185: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |     /// Use this method in cases where to response is not the same as the request.
111 |     /// For example some APIs return just the id of the deleted resource.
112 |     public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> URLSessionDataTask {
    |                                                                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:69: error: cannot find type 'URLRequest' in scope
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:140: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 15 |      Note that this method requires a response body for successful requests.  If it is possible for the body to be nil use dataTask<T : Codable & ExpressibleByNilLiteral>(_:, with:, completionHandler:).
 16 |      */
 17 |     open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 18 |         return dataTask(T?.self, with: request, completionHandler: { result in
 19 |             switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:95: error: cannot find type 'URLRequest' in scope
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:166: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |                                                                                                                                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         var request = request
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 38 |      This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
 39 |      */
 40 |     open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 41 |
 42 |         var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: error: cannot find type 'URLRequest' in scope
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:5: warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
 97 |         Note that this method blocks until the task completes and calls it's completion handler at which time a value may be returned or an error may be thrown.
 98 |     */
 99 |     open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
    |     `- warning: non-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode
100 |
101 |         var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:13:14: warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 11 | open class RESTClient<Error> where Error : Swift.Error & Decodable {
 12 |
 13 |     open let baseURL : URL
    |              `- warning: 'let' properties are implicitly 'final'; use 'public' instead of 'open'
 14 |
 15 |     private(set) var session : URLSession
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:15:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     open let baseURL : URL
 14 |
 15 |     private(set) var session : URLSession
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: error: value of type '_' expected to be instance of class or class-constrained type
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: value of type '_' expected to be instance of class or class-constrained type
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 15 |     private(set) var session : URLSession
 16 |
 17 |     public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
    |                                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'
 18 |         self.baseURL = url
 19 |         self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: error: cannot find type 'URLRequest' in scope
 44 |     }
 45 |
 46 |     public func setJSONBody<T : Encodable>(_ body: T, for request: inout URLRequest) throws {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
 47 |
 48 |         guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: error: cannot find type 'URLRequest' in scope
108 | public protocol RequestTransformer {
109 |
110 |     func tranform(_ request: inout URLRequest)
    |                                    `- error: cannot find type 'URLRequest' in scope
111 |
112 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/RESTClient/Encoders/FormURLEncoder.swift /host/spi-builder-workspace/Sources/RESTClient/Encoders/JSONEncoder.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/Codable+DynamicCoder.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/Dictionary+URLQueryItem.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/EnumCollection.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift /host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift /host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift /host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift /host/spi-builder-workspace/Sources/RESTClient/RESTClient+Sync.swift /host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift /host/spi-builder-workspace/Sources/RESTClient/Resource.swift /host/spi-builder-workspace/Sources/RESTClient/Result.swift /host/spi-builder-workspace/Sources/RESTClient/_Context.swift /host/spi-builder-workspace/Sources/RESTClient/_CreationContext.swift /host/spi-builder-workspace/Sources/RESTClient/_EditingContext.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name RESTClient -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/RESTClient_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/Modules/RESTClient.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/Modules/RESTClient.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/RESTClient-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/RESTClient-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/RESTClient-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/StripeKit.build/Debug-android-aarch64/RESTClient-t.build/Objects-normal/aarch64/Modules/RESTClient.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android