The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ai-sdk, reference main (d8d108), with Swift 6.4 for Android on 26 Sep 2026 21:01:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-3":/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/zaidmukaddam/swift-ai-sdk.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/zaidmukaddam/swift-ai-sdk
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d8d108c Fix build on Swift 6.1: extract BedrockModel's stream body into a function
Cloned https://github.com/zaidmukaddam/swift-ai-sdk.git
Revision (git rev-parse @):
d8d108ccf606a154647ef7eae948775a1e7aa969
SUCCESS checkout https://github.com/zaidmukaddam/swift-ai-sdk.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/zaidmukaddam/swift-ai-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-3":/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...
[Computing dependencies]
[Pre-planning 1 / 269]
[Planning deferred tasks]
[47 / 86] AI
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift:76:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 74 |
 75 |     private static func pumpEvents(
 76 |         from bytes: URLSession.AsyncBytes,
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
 77 |         isForcedJSON: Bool,
 78 |         into continuation: AsyncThrowingStream<StreamPart, Error>.Continuation
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |     public var headers: [String: String]
 8 |     public var queryParams: [String: String]
 9 |     private let urlSession: URLSession
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |     public init(
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/AI/Providers/OpenAICompatibleProvider.swift:17:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ) {
19 |         self.name = name
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/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: value of type '_' expected to be instance of class or class-constrained type
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
18 |     ) {
19 |         self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:17:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |         headers: [String: String] = [:],
16 |         queryParams: [String: String] = [:],
17 |         urlSession: URLSession = .shared
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |     ) {
19 |         self.name = name
/host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift:9:17: error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
 7 |     public var headers: [String: String]
 8 |     public var queryParams: [String: String]
 9 |     private let urlSession: URLSession
   |                 `- error: stored property 'urlSession' of 'Sendable'-conforming struct 'OpenAICompatibleProvider' has non-Sendable type 'AnyObject'
10 |
11 |     public init(
/host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift:149:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
147 | enum AWSEventStream {
148 |     static func messages(
149 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
150 |     ) -> AsyncThrowingStream<AWSEventStreamMessage, Error> {
151 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift:45:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
43 | enum SSE {
44 |     static func events(
45 |         from bytes: URLSession.AsyncBytes
   |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
46 |     ) -> AsyncThrowingStream<SSEEvent, Error> {
47 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift:117:32: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
115 |
116 |     static func chunkStream(
117 |         from bytes: URLSession.AsyncBytes
    |                                `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
118 |     ) -> AsyncThrowingStream<UIMessageChunk, Error> {
119 |         AsyncThrowingStream { continuation in
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
 1 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: 'URLSession' declared here
 2 |     open class var shared: URLSession { get }
 3 |     public init(configuration: URLSessionConfiguration)
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/AI/Core/AIError.swift /host/spi-builder-workspace/Sources/AI/Core/Agent.swift /host/spi-builder-workspace/Sources/AI/Core/Compaction.swift /host/spi-builder-workspace/Sources/AI/Core/Embeddings.swift /host/spi-builder-workspace/Sources/AI/Core/GenerateObject.swift /host/spi-builder-workspace/Sources/AI/Core/GenerateText.swift /host/spi-builder-workspace/Sources/AI/Core/ImageGeneration.swift /host/spi-builder-workspace/Sources/AI/Core/LanguageModel.swift /host/spi-builder-workspace/Sources/AI/Core/Message.swift /host/spi-builder-workspace/Sources/AI/Core/Middleware.swift /host/spi-builder-workspace/Sources/AI/Core/ModelContextWindows.swift /host/spi-builder-workspace/Sources/AI/Core/ModelMiddleware.swift /host/spi-builder-workspace/Sources/AI/Core/ProviderDefinedTool.swift /host/spi-builder-workspace/Sources/AI/Core/ProviderRegistry.swift /host/spi-builder-workspace/Sources/AI/Core/PruneMessages.swift /host/spi-builder-workspace/Sources/AI/Core/RemoteContent.swift /host/spi-builder-workspace/Sources/AI/Core/Reranking.swift /host/spi-builder-workspace/Sources/AI/Core/Retry.swift /host/spi-builder-workspace/Sources/AI/Core/RuntimeContext.swift /host/spi-builder-workspace/Sources/AI/Core/Schema.swift /host/spi-builder-workspace/Sources/AI/Core/SpeechGeneration.swift /host/spi-builder-workspace/Sources/AI/Core/StepControl.swift /host/spi-builder-workspace/Sources/AI/Core/StepRequest.swift /host/spi-builder-workspace/Sources/AI/Core/StreamSmoothing.swift /host/spi-builder-workspace/Sources/AI/Core/StreamText.swift /host/spi-builder-workspace/Sources/AI/Core/StreamTranscription.swift /host/spi-builder-workspace/Sources/AI/Core/Telemetry.swift /host/spi-builder-workspace/Sources/AI/Core/Timeouts.swift /host/spi-builder-workspace/Sources/AI/Core/Tool.swift /host/spi-builder-workspace/Sources/AI/Core/ToolApproval.swift /host/spi-builder-workspace/Sources/AI/Core/Transcription.swift /host/spi-builder-workspace/Sources/AI/Core/VideoGeneration.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPClient.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPOAuth.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPSSETransport.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPStdioTransport.swift /host/spi-builder-workspace/Sources/AI/MCP/MCPToolDrift.swift /host/spi-builder-workspace/Sources/AI/Providers/AIGatewayModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AlibabaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AnthropicModel.swift /host/spi-builder-workspace/Sources/AI/Providers/AnthropicPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/AzureOpenAIProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/BasetenModel.swift /host/spi-builder-workspace/Sources/AI/Providers/BedrockMantleProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/BedrockModel.swift /host/spi-builder-workspace/Sources/AI/Providers/BlackForestLabsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/ByteDanceModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CartesiaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CerebrasModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CohereModel.swift /host/spi-builder-workspace/Sources/AI/Providers/CohereRerankingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepInfraModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepSeekModel.swift /host/spi-builder-workspace/Sources/AI/Providers/DeepgramStreamingTranscription.swift /host/spi-builder-workspace/Sources/AI/Providers/ElevenLabsModels.swift /host/spi-builder-workspace/Sources/AI/Providers/FileUploads.swift /host/spi-builder-workspace/Sources/AI/Providers/FireworksModel.swift /host/spi-builder-workspace/Sources/AI/Providers/FoundationModelsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleEmbeddingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleInteractionsModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleMediaModels.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GooglePlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/GoogleVertexModel.swift /host/spi-builder-workspace/Sources/AI/Providers/GroqModel.swift /host/spi-builder-workspace/Sources/AI/Providers/HuggingFaceModel.swift /host/spi-builder-workspace/Sources/AI/Providers/KlingVideoModel.swift /host/spi-builder-workspace/Sources/AI/Providers/LMStudioModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MediaGenerationPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/MetaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MistralModel.swift /host/spi-builder-workspace/Sources/AI/Providers/MoonshotModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OllamaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleModelSupport.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAICompatibleProvider.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIEmbeddingModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIImageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesClient.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAIResponsesModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAISpeechModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenAITranscriptionModel.swift /host/spi-builder-workspace/Sources/AI/Providers/OpenRouterModel.swift /host/spi-builder-workspace/Sources/AI/Providers/PerplexityModel.swift /host/spi-builder-workspace/Sources/AI/Providers/ProdiaModel.swift /host/spi-builder-workspace/Sources/AI/Providers/SarvamModel.swift /host/spi-builder-workspace/Sources/AI/Providers/SpeechProviderPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/TogetherAIModel.swift /host/spi-builder-workspace/Sources/AI/Providers/TranscriptionProviderPacks.swift /host/spi-builder-workspace/Sources/AI/Providers/VercelModel.swift /host/spi-builder-workspace/Sources/AI/Providers/VoyageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiImageModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiModel.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiPlatformClients.swift /host/spi-builder-workspace/Sources/AI/Providers/XaiVideoModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/AudioResampling.swift /host/spi-builder-workspace/Sources/AI/Realtime/GoogleRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/OpenAIRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/RealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Realtime/RealtimeSession.swift /host/spi-builder-workspace/Sources/AI/Realtime/XaiRealtimeModel.swift /host/spi-builder-workspace/Sources/AI/Streaming/AWSEventStream.swift /host/spi-builder-workspace/Sources/AI/Streaming/SSE.swift /host/spi-builder-workspace/Sources/AI/Transport/ChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/HTTPChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/LocalChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/StreamBridge.swift /host/spi-builder-workspace/Sources/AI/Transport/TextStreamChatTransport.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessage.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageChunk.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageReducer.swift /host/spi-builder-workspace/Sources/AI/Transport/UIMessageStreamBuilder.swift /host/spi-builder-workspace/Sources/AI/UI/ChatSession.swift /host/spi-builder-workspace/Sources/AI/UI/CompletionSession.swift /host/spi-builder-workspace/Sources/AI/UI/ObjectSession.swift /host/spi-builder-workspace/Sources/AI/Util/JSONValue.swift /host/spi-builder-workspace/Sources/AI/Util/MultipartForm.swift /host/spi-builder-workspace/Sources/AI/Util/PartialJSON.swift /host/spi-builder-workspace/Sources/AI/Util/ResponseURL.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 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature StrictConcurrency -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/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AI -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/AI_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/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/Modules/AI.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/Modules/AI.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/AI-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/AI-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/AI-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-ai-sdk.build/Debug-android-aarch64/AI-t.build/Objects-normal/aarch64/Modules/AI.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android