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>&1Build 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: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m11 |[0;0m private let headerKey = "Accept"
[0;36m12 |[0;0m
[0;36m13 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/Accept.swift:26:1: [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m24 |[0;0m }
[0;36m25 |[0;0m
[0;36m26 |[0;0m extension [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m27 |[0;0m
[0;36m28 |[0;0m var accept: Accept? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:14:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m private let headerKey: String = "Authorization"
[0;36m13 |[0;0m
[0;36m14 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/AuthorizationHeader.swift:27:1: [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m25 |[0;0m }
[0;36m26 |[0;0m
[0;36m27 |[0;0m extension [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m28 |[0;0m
[0;36m29 |[0;0m var authorization: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:14:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m private let headerKey = "Content-Type"
[0;36m13 |[0;0m
[0;36m14 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/ContentType.swift:27:1: [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m25 |[0;0m }
[0;36m26 |[0;0m
[0;36m27 |[0;0m extension [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m28 |[0;0m
[0;36m29 |[0;0m var contentType: ContentType? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPMethod.swift:20:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m18 |[0;0m
[0;36m19 |[0;0m
[0;36m20 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m21 |[0;0m
[0;36m22 |[0;0m public var method : HTTPMethod? {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/HTTPStatus.swift:80:1: [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m78 |[0;0m }
[0;36m79 |[0;0m
[0;36m80 |[0;0m extension [4;39mHTTPURLResponse[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m81 |[0;0m
[0;36m82 |[0;0m public var status : HTTPStatus {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+CodableBody.swift:11:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m9 |[0;0m import Foundation
[0;36m10 |[0;0m
[0;36m11 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m
[0;36m13 |[0;0m mutating func setJSONBody<T : Encodable>(_ body: T, with encoder: CodableEncoder = JSONEncoder()) throws {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLRequest+Convenience.swift:10:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m
[0;36m10 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m public init(_ baseURL: URL, pathItems: String?..., query: [URLQueryItem]? = nil) {
/host/spi-builder-workspace/Sources/RESTClient/Extensions/URLSessionConfiguration.swift:11:8: [1;31merror: [1;39mnon-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m9 |[0;0m import Foundation
[0;36m10 |[0;0m
[0;36m11 |[0;0m public extension [4;39mURLSessionConfiguration[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m12 |[0;0m
[0;36m13 |[0;0m public static var restJSONAPI : URLSessionConfiguration {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:13:172: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m //MARK: List --- GET
[0;36m12 |[0;0m
[0;36m13 |[0;0m public func list<T : Resource & Listable & Decodable>(_ type: T.Type, query: [String : String]? = nil, completionHandler: @escaping ((Result<[T], Error>) -> Void)) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m let request = URLRequest(baseURL, pathItems: T.path, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:23:196: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m //MARK: Retrieve --- GET
[0;36m22 |[0;0m
[0;36m23 |[0;0m public func retrieve<T : Resource & Retrievable & Decodable>(_ type: T.Type, id: String? = nil, query: [String : String]? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m let request = URLRequest(baseURL, pathItems: T.path, id, query: query?.asQueryItems)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:33:144: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m //MARK: Create --- POST
[0;36m32 |[0;0m
[0;36m33 |[0;0m public func create<T : Resource & Creatable & Codable>(_ instance: T, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m
[0;36m35 |[0;0m var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:42:194: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m40 |[0;0m }
[0;36m41 |[0;0m
[0;36m42 |[0;0m public func create<T : Resource & Creatable & Encodable, R : Resource & Decodable>(_ instance: T, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) throws -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m43 |[0;0m
[0;36m44 |[0;0m var request = URLRequest(url: baseURL.appendingPathComponent(T.path))
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:54:163: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m52 |[0;0m //MARK: Update --- PATCH
[0;36m53 |[0;0m
[0;36m54 |[0;0m public func update<T : Resource & Updatable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m55 |[0;0m
[0;36m56 |[0;0m var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:63:213: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m61 |[0;0m }
[0;36m62 |[0;0m
[0;36m63 |[0;0m 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 -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m64 |[0;0m
[0;36m65 |[0;0m var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:75:166: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m73 |[0;0m //MARK: Replace --- PUT
[0;36m74 |[0;0m
[0;36m75 |[0;0m public func replace<T : Resource & Replaceable & Codable>(_ instance: T, id: String? = nil, completionHandler: @escaping ((Result<T, Error>) -> Void)) throws -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m76 |[0;0m
[0;36m77 |[0;0m var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:84:216: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m82 |[0;0m }
[0;36m83 |[0;0m
[0;36m84 |[0;0m 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 -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m85 |[0;0m
[0;36m86 |[0;0m var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:96:150: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m94 |[0;0m //MARK: Delete --- DELETE
[0;36m95 |[0;0m
[0;36m96 |[0;0m public func delete<T : Resource & Deleteable & Decodable>(_ type: T.Type, id: String? = nil, completionHandler: @escaping ((Error?) -> Void)) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m97 |[0;0m
[0;36m98 |[0;0m var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+Async.swift:112:185: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m110 |[0;0m /// Use this method in cases where to response is not the same as the request.
[0;36m111 |[0;0m /// For example some APIs return just the id of the deleted resource.
[0;36m112 |[0;0m public func delete<T : Resource & Deleteable, R : Decodable>(_ type: T.Type, id: String? = nil, responseType: R.Type, completionHandler: @escaping ((Result<R, Error>) -> Void)) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m var request = URLRequest(baseURL, pathItems: T.path, id)
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:69: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m 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:).
[0;36m16 |[0;0m */
[0;36m17 |[0;0m open func dataTask<T : Decodable>(_ type: T.Type, with request: [4;39mURLRequest[0;0m, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m18 |[0;0m return dataTask(T?.self, with: request, completionHandler: { result in
[0;36m19 |[0;0m switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:140: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m 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:).
[0;36m16 |[0;0m */
[0;36m17 |[0;0m open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m return dataTask(T?.self, with: request, completionHandler: { result in
[0;36m19 |[0;0m switch result {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:17:5: [1;33mwarning: [1;39mnon-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode[0;0m
[0;36m15 |[0;0m 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:).
[0;36m16 |[0;0m */
[0;36m17 |[0;0m open func dataTask<T : Decodable>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;33mwarning: [1;39mnon-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode[0;0m
[0;36m18 |[0;0m return dataTask(T?.self, with: request, completionHandler: { result in
[0;36m19 |[0;0m switch result {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:95: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m38 |[0;0m This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
[0;36m39 |[0;0m */
[0;36m40 |[0;0m open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: [4;39mURLRequest[0;0m, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m41 |[0;0m
[0;36m42 |[0;0m var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:166: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m38 |[0;0m This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
[0;36m39 |[0;0m */
[0;36m40 |[0;0m open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> [4;39mURLSessionDataTask[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m41 |[0;0m
[0;36m42 |[0;0m var request = request
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:40:5: [1;33mwarning: [1;39mnon-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode[0;0m
[0;36m38 |[0;0m This method allows for the poosibility of a nil response body when the request is successful, however, additional unwrapping is required.
[0;36m39 |[0;0m */
[0;36m40 |[0;0m open func dataTask<T : Decodable & ExpressibleByNilLiteral>(_ type: T.Type, with request: URLRequest, completionHandler: ((Result<T, Error>) -> Void)? = nil) -> URLSessionDataTask {
[0;36m|[0;0m `- [1;33mwarning: [1;39mnon-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode[0;0m
[0;36m41 |[0;0m
[0;36m42 |[0;0m var request = request
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:80: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m97 |[0;0m 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.
[0;36m98 |[0;0m */
[0;36m99 |[0;0m open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: [4;39mURLRequest[0;0m) throws -> T? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m100 |[0;0m
[0;36m101 |[0;0m var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient+DataTask.swift:99:5: [1;33mwarning: [1;39mnon-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode[0;0m
[0;36m97 |[0;0m 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.
[0;36m98 |[0;0m */
[0;36m99 |[0;0m open func performSyncDataTask<T : Decodable>(_ type: T.Type, with request: URLRequest) throws -> T? {
[0;36m|[0;0m `- [1;33mwarning: [1;39mnon-'@objc' instance method declared in extension cannot be overridden; use 'public' instead; this will be an error in a future Swift language mode[0;0m
[0;36m100 |[0;0m
[0;36m101 |[0;0m var res : Result<T, Error>? = nil
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:13:14: [1;33mwarning: [1;39m'let' properties are implicitly 'final'; use 'public' instead of 'open'[0;0m
[0;36m11 |[0;0m open class RESTClient<Error> where Error : Swift.Error & Decodable {
[0;36m12 |[0;0m
[0;36m13 |[0;0m open let baseURL : URL
[0;36m|[0;0m `- [1;33mwarning: [1;39m'let' properties are implicitly 'final'; use 'public' instead of 'open'[0;0m
[0;36m14 |[0;0m
[0;36m15 |[0;0m private(set) var session : URLSession
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:15:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m13 |[0;0m open let baseURL : URL
[0;36m14 |[0;0m
[0;36m15 |[0;0m private(set) var session : [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m16 |[0;0m
[0;36m17 |[0;0m public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:42: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m private(set) var session : URLSession
[0;36m16 |[0;0m
[0;36m17 |[0;0m public init(url: URL, sessionConfig: [4;39mURLSessionConfiguration[0;0m = .restJSONAPI) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m self.baseURL = url
[0;36m19 |[0;0m self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m15 |[0;0m private(set) var session : URLSession
[0;36m16 |[0;0m
[0;36m17 |[0;0m public init(url: URL, sessionConfig: URLSessionConfiguration = .restJSONAPI) {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m18 |[0;0m self.baseURL = url
[0;36m19 |[0;0m self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:17:69: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'[0;0m
[0;36m15 |[0;0m private(set) var session : URLSession
[0;36m16 |[0;0m
[0;36m17 |[0;0m public init(url: URL, sessionConfig: URLSessionConfiguration = [4;39m.restJSONAPI[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'restJSONAPI'[0;0m
[0;36m18 |[0;0m self.baseURL = url
[0;36m19 |[0;0m self.session = URLSession(configuration: sessionConfig, delegate: nil, delegateQueue: nil)
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:46:74: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m44 |[0;0m }
[0;36m45 |[0;0m
[0;36m46 |[0;0m public func setJSONBody<T : Encodable>(_ body: T, for request: inout [4;39mURLRequest[0;0m) throws {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m47 |[0;0m
[0;36m48 |[0;0m guard let contentType = request.contentType ?? session.configuration.httpAdditionalHeaders?["Content-Type"] as? ContentType else {
/host/spi-builder-workspace/Sources/RESTClient/RESTClient.swift:110:36: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m108 |[0;0m public protocol RequestTransformer {
[0;36m109 |[0;0m
[0;36m110 |[0;0m func tranform(_ request: inout [4;39mURLRequest[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m111 |[0;0m
[0;36m112 |[0;0m }
[#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