Build Information
Failed to build FalClient, reference main (4a589b), with Swift 6.4 for Android on 20 Sep 2026 10:05:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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/fal-ai/fal-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/fal-ai/fal-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4a589b9 chore: update realtime example to use turbo
Cloned https://github.com/fal-ai/fal-swift.git
Revision (git rev-parse @):
4a589b99b4b029250652c8a6d3f73188e9a10184
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/fal-ai/fal-swift.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/fal-ai/fal-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/nnabeyang/swift-msgpack.git
[1/855] Fetching swift-msgpack
Fetched https://github.com/nnabeyang/swift-msgpack.git (0.47s)
[1/14925] Fetching quick
[14926/34911] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git (0.69s)
[1799/19986] Fetching nimble
Fetched https://github.com/Quick/Nimble.git (1.08s)
Computing version for https://github.com/nnabeyang/swift-msgpack.git
Computed https://github.com/nnabeyang/swift-msgpack.git at 0.7.0 (1.25s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 7.6.2 (0.18s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/6145] Fetching swift-algorithms
[6146/25063] Fetching swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms.git (0.74s)
Fetched https://github.com/apple/swift-argument-parser.git (0.75s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.93s)
Fetching https://github.com/apple/swift-numerics.git
[1/6636] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (1.10s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (1.26s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.16s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 13.8.0 (0.15s)
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git (0.93s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.2 (1.12s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/460] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git (0.47s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (0.65s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 13.8.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/nnabeyang/swift-msgpack.git
Working copy of https://github.com/nnabeyang/swift-msgpack.git resolved at 0.7.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 7.6.2
Building for debugging...
[Pre-planning 1 / 96]
[31 / 46] SwiftMsgpack
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:3: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;36m1 |[0;0m import Foundation
[0;36m2 |[0;0m
[0;36m3 |[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;36m4 |[0;0m /// Returns `true` if `statusCode` is in range 200...299.
[0;36m5 |[0;0m /// Otherwise `false`.
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:60:44: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m58 |[0;0m }
[0;36m59 |[0;0m
[0;36m60 |[0;0m func checkResponseStatus(for response: [4;39mURLResponse[0;0m, withData data: Data) throws {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m61 |[0;0m guard response is HTTPURLResponse else {
[0;36m62 |[0;0m throw FalError.invalidResultFormat
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' 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 URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:44:27: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m42 |[0;0m }
[0;36m43 |[0;0m
[0;36m44 |[0;0m typealias SendFunction = ([4;39mURLSessionWebSocketTask[0;0m.Message) throws -> Void
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m45 |[0;0m typealias CloseFunction = () -> Void
[0;36m46 |[0;0m
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:76:18: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m74 |[0;0m var closeReference: CloseFunction
[0;36m75 |[0;0m
[0;36m76 |[0;0m init(_ send: @escaping SendFunction, _ close: @escaping CloseFunction) {
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m77 |[0;0m sendReference = send
[0;36m78 |[0;0m closeReference = close
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:150:30: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m148 |[0;0m private let TokenExpirationInterval: DispatchTimeInterval = .minutes(1)
[0;36m149 |[0;0m
[0;36m150 |[0;0m typealias WebSocketMessage = [4;39mURLSessionWebSocketTask[0;0m.Message
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m151 |[0;0m
[0;36m152 |[0;0m class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:152:38: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketDelegate' in scope[0;0m
[0;36m150 |[0;0m typealias WebSocketMessage = URLSessionWebSocketTask.Message
[0;36m151 |[0;0m
[0;36m152 |[0;0m class WebSocketConnection: NSObject, [4;39mURLSessionWebSocketDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketDelegate' in scope[0;0m
[0;36m153 |[0;0m let app: String
[0;36m154 |[0;0m let client: Client
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:27: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
[0;36m159 |[0;0m private let session = [4;39mURLSession[0;0m(configuration: .default)
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m160 |[0;0m private var enqueuedMessage: WebSocketMessage? = nil
[0;36m161 |[0;0m private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:161:23: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m159 |[0;0m private let session = URLSession(configuration: .default)
[0;36m160 |[0;0m private var enqueuedMessage: WebSocketMessage? = nil
[0;36m161 |[0;0m private var task: [4;39mURLSessionWebSocketTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m162 |[0;0m private var token: String?
[0;36m163 |[0;0m
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:279:26: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m277 |[0;0m }
[0;36m278 |[0;0m
[0;36m279 |[0;0m func send(_ message: [4;39mURLSessionWebSocketTask[0;0m.Message) throws {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m280 |[0;0m if let task {
[0;36m281 |[0;0m task.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:303:26: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m301 |[0;0m func urlSession(
[0;36m302 |[0;0m _: URLSession,
[0;36m303 |[0;0m webSocketTask _: [4;39mURLSessionWebSocketTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m304 |[0;0m didOpenWithProtocol _: String?
[0;36m305 |[0;0m ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:302:12: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m300 |[0;0m
[0;36m301 |[0;0m func urlSession(
[0;36m302 |[0;0m _: [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;36m303 |[0;0m webSocketTask _: URLSessionWebSocketTask,
[0;36m304 |[0;0m didOpenWithProtocol _: String?
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/FalClient/Realtime.swift:318:26: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m316 |[0;0m func urlSession(
[0;36m317 |[0;0m _: URLSession,
[0;36m318 |[0;0m webSocketTask _: [4;39mURLSessionWebSocketTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m319 |[0;0m didCloseWith code: URLSessionWebSocketTask.CloseCode,
[0;36m320 |[0;0m reason _: Data?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:319:28: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m317 |[0;0m _: URLSession,
[0;36m318 |[0;0m webSocketTask _: URLSessionWebSocketTask,
[0;36m319 |[0;0m didCloseWith code: [4;39mURLSessionWebSocketTask[0;0m.CloseCode,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m320 |[0;0m reason _: Data?
[0;36m321 |[0;0m ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:317:12: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m315 |[0;0m
[0;36m316 |[0;0m func urlSession(
[0;36m317 |[0;0m _: [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;36m318 |[0;0m webSocketTask _: URLSessionWebSocketTask,
[0;36m319 |[0;0m didCloseWith code: URLSessionWebSocketTask.CloseCode,
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/FalClient/Realtime.swift:423:64: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m421 |[0;0m connectionKey: String = UUID().uuidString,
[0;36m422 |[0;0m throttleInterval: DispatchTimeInterval = .milliseconds(128),
[0;36m423 |[0;0m connectionFactory createRealtimeConnection: @escaping (@escaping SendFunction, @escaping CloseFunction) -> BaseRealtimeConnection<InputType>,
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m424 |[0;0m onResult completion: @escaping (Result<ResultType, Error>) -> Void
[0;36m425 |[0;0m ) -> BaseRealtimeConnection<InputType> {
[#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/FalClient/Client+Codable.swift /host/spi-builder-workspace/Sources/FalClient/Client+Config.swift /host/spi-builder-workspace/Sources/FalClient/Client+Request.swift /host/spi-builder-workspace/Sources/FalClient/Client.swift /host/spi-builder-workspace/Sources/FalClient/FalClient.swift /host/spi-builder-workspace/Sources/FalClient/FalError.swift /host/spi-builder-workspace/Sources/FalClient/FalImage.swift /host/spi-builder-workspace/Sources/FalClient/Payload.swift /host/spi-builder-workspace/Sources/FalClient/Queue+Codable.swift /host/spi-builder-workspace/Sources/FalClient/Queue.swift /host/spi-builder-workspace/Sources/FalClient/QueueStatus.swift /host/spi-builder-workspace/Sources/FalClient/Realtime+Codable.swift /host/spi-builder-workspace/Sources/FalClient/Realtime.swift /host/spi-builder-workspace/Sources/FalClient/Storage.swift /host/spi-builder-workspace/Sources/FalClient/TimeInterval+Extensions.swift /host/spi-builder-workspace/Sources/FalClient/Utility.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 5 -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/FalClient.build/Debug-android-aarch64/FalClient-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FalClient -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/FalClient_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/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/Modules/FalClient.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/Modules/FalClient.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/FalClient-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/FalClient-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/FalClient-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/FalClient.build/Debug-android-aarch64/FalClient-t.build/Objects-normal/aarch64/Modules/FalClient.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android