The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OpenAI, reference 1.1.1 (de472c), with Swift 6.4 for Android on 22 Sep 2026 16:36:43 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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/m1guelpf/swift-openai-responses.git
Reference: 1.1.1
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/m1guelpf/swift-openai-responses
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at de472c3 add `input_fidelity` to image generation tool
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
de472c3e8d9fce9ab04498b9e4a7c477ead2aae1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at 1.1.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/m1guelpf/swift-openai-responses.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/210645] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git (8.73s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.6.1 (9.92s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/27654] Fetching swift-collections
[278/46572] Fetching swift-collections, swift-argument-parser
Fetched https://github.com/apple/swift-collections.git (1.15s)
[1/80004] Fetching swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git (5.32s)
Fetched https://github.com/swiftlang/swift-syntax.git (5.34s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (6.55s)
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.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.29s)
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/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.6.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 802]
[Planning deferred tasks]
[Starting]
[14 / 340]
[172 / 351] SwiftSyntax602
[212 / 368] SwiftSyntax509
[214 / 368] InternalCollectionsUtilities
[220 / 368] SwiftSyntax601
[229 / 371] SwiftSyntax602
[233 / 372]
[242 / 376]
[253 / 394] OrderedCollections
[255 / 395] SwiftSyntax
[256 / 395] SwiftSyntax
[258 / 395] SwiftSyntax
[264 / 395] OrderedCollections
[265 / 395] OrderedCollections
[266 / 395] OrderedCollections
[267 / 395] OrderedCollections-product
[268 / 395] OrderedCollections-product
[270 / 395] InternalCollectionsUtilities
[271 / 395] InternalCollectionsUtilities
[272 / 395] OrderedCollections
[273 / 396] OrderedCollections
[275 / 396] SwiftSyntax
[284 / 406] SwiftBasicFormat
[288 / 424] SwiftParser
[289 / 424] SwiftParser
[292 / 424] SwiftDiagnostics
[298 / 424] SwiftBasicFormat
[308 / 424] SwiftParser
[309 / 424] SwiftParser
[311 / 424] SwiftParser
[312 / 424] SwiftDiagnostics
[313 / 424] SwiftDiagnostics
[314 / 424] SwiftOperators
[316 / 424] SwiftOperators
[319 / 424] SwiftDiagnostics
[321 / 424] SwiftDiagnostics
[327 / 428] SwiftParserDiagnostics
[331 / 445] SwiftParserDiagnostics
[333 / 446] SwiftParserDiagnostics
[334 / 446] SwiftOperators
[337 / 447] SwiftOperators
[341 / 447] SwiftSyntax
[351 / 447] SwiftOperators
[353 / 447] SwiftOperators
[356 / 447] SwiftOperators
[358 / 447]
[363 / 457] SwiftSyntaxBuilder
[365 / 457] SwiftSyntaxBuilder
[367 / 458] SwiftSyntaxBuilder
[369 / 458] SwiftSyntaxBuilder
[370 / 458] SwiftParserDiagnostics
[383 / 469] SwiftIfConfig
[386 / 469] SwiftIfConfig
[387 / 470] SwiftSyntaxBuilder
[390 / 470] SwiftSyntaxBuilder
[398 / 480] SwiftSyntaxMacros
[403 / 480] SwiftSyntaxMacros
[408 / 480] SwiftSyntaxMacros
[415 / 491] SwiftSyntaxMacroExpansion
[418 / 501] SwiftIfConfig
[422 / 502] SwiftSyntaxMacroExpansion
[424 / 502] SwiftSyntaxMacroExpansion
[426 / 502] SwiftSyntaxMacroExpansion
[433 / 502] SwiftSyntaxMacroExpansion-product
[435 / 502] SwiftSyntaxMacroExpansion-product
[436 / 503] PluginCore
[441 / 503] PluginCore
[449 / 513] SwiftCompilerPluginMessageHandling
[450 / 513] SwiftCompilerPluginMessageHandling
[451 / 513] SwiftCompilerPluginMessageHandling
[453 / 513] PluginCore
[460 / 513] SwiftCompilerPluginMessageHandling
[461 / 513] SwiftCompilerPlugin
[464 / 516] SwiftCompilerPlugin
[471 / 517] SwiftCompilerPluginMessageHandling
[473 / 518] SwiftCompilerPluginMessageHandling
[475 / 519] SwiftSyntax
[478 / 520] SwiftSyntax
[485 / 520] SwiftIfConfig
[495 / 521] MacroPlugin
[498 / 524] MacroPlugin
[503 / 525] MacroPlugin
[513 / 535] MetaCodable
[523 / 545] HelperCoders
[526 / 545] HelperCoders
[528 / 546] MetaCodable
[531 / 546] HelperCoders
[543 / 556] OpenAI
[547 / 557] HelperCoders
[549 / 557] OpenAI
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/src/OpenAI.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile OpenAI.swift
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/src/Support/MultiPartData.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile MultiPartData.swift
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
201 | 	///
202 | 	/// - Throws: If the request fails to send or has a non-200 status code.
203 | 	func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
    |                                                              `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
204 | 		let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
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/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
 90 | 		req.addValue("application/json", forHTTPHeaderField: "Content-Type")
 91 |
 92 | 		let bytes = try await stream(request: req)
    |                               `- error: extraneous argument label 'request:' in call
 93 |
 94 | 		let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:92:41: error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
 90 | 		req.addValue("application/json", forHTTPHeaderField: "Content-Type")
 91 |
 92 | 		let bytes = try await stream(request: req)
    |                                         `- error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
 93 |
 94 | 		let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:162:7: error: value of type 'URLRequest' has no member 'attach'
160 | 		var req = request
161 | 		req.httpMethod = "POST"
162 | 		req.attach(formData: form)
    |       `- error: value of type 'URLRequest' has no member 'attach'
163 | 		req.url!.append(path: "v1/files")
164 |
/host/spi-builder-workspace/src/OpenAI.swift:204:49: error: value of type 'URLSession' has no member 'bytes'
202 | 	/// - Throws: If the request fails to send or has a non-200 status code.
203 | 	func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | 		let (data, res) = try await URLSession.shared.bytes(for: request)
    |                                                 `- error: value of type 'URLSession' has no member 'bytes'
205 |
206 | 		guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
56 | 	mutating func attach(formData form: FormData) {
57 | 		httpBody = form.data
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/src/Conversation.swift /host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift /host/spi-builder-workspace/src/Extensions/Collection+safeAccess.swift /host/spi-builder-workspace/src/Models/Config.swift /host/spi-builder-workspace/src/Models/Event.swift /host/spi-builder-workspace/src/Models/File.swift /host/spi-builder-workspace/src/Models/Input.swift /host/spi-builder-workspace/src/Models/Item.swift /host/spi-builder-workspace/src/Models/Message.swift /host/spi-builder-workspace/src/Models/Model.swift /host/spi-builder-workspace/src/Models/Request.swift /host/spi-builder-workspace/src/Models/Response.swift /host/spi-builder-workspace/src/Models/Tool.swift /host/spi-builder-workspace/src/Models/WebhookEvent.swift -primary-file /host/spi-builder-workspace/src/OpenAI.swift -primary-file /host/spi-builder-workspace/src/Support/MultiPartData.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/MultiPartData.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/MultiPartData.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/MultiPartData.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/MultiPartData.dia -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 -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/MacroPlugin\#MacroPlugin -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/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name OpenAI -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI_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 -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/MultiPartData.o -index-unit-output-path /OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/OpenAI.o -index-unit-output-path /OpenAI.build/Debug-android-aarch64/OpenAI-t.build/Objects-normal/aarch64/MultiPartData.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android