The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-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:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 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:         wasm
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-54344845-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:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/210645] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git (7.64s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.6.1 (8.82s)
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/18918] Fetching swift-argument-parser
[18730/46572] Fetching swift-argument-parser, swift-collections
[46573/126576] Fetching swift-argument-parser, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git (1.27s)
[29319/98922] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git (2.96s)
Fetched https://github.com/swiftlang/swift-syntax.git (2.98s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (4.17s)
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.17s)
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/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.6.1
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
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 802]
[Planning deferred tasks]
[173 / 350] SwiftSyntax510
[211 / 365] SwiftSyntax509
[212 / 365] SwiftSyntax603
[229 / 368]
[241 / 373] SwiftSyntax600
[250 / 391] SwiftSyntax
[251 / 391] SwiftSyntax
[252 / 392] SwiftSyntax
[253 / 392] OrderedCollections
[255 / 392] OrderedCollections
[259 / 392] SwiftSyntax
[262 / 392] OrderedCollections
[264 / 392] OrderedCollections-product
[265 / 392] OrderedCollections-product
[266 / 392] OrderedCollections
[269 / 392] OrderedCollections
[272 / 393] SwiftSyntax
[285 / 421] SwiftParser
[287 / 421] SwiftBasicFormat
[299 / 421] SwiftParser
[300 / 421] SwiftParser
[301 / 421] SwiftParser
[304 / 421] SwiftParser
[308 / 421] SwiftParser
[310 / 421] SwiftDiagnostics
[312 / 421] SwiftDiagnostics
[314 / 421] SwiftDiagnostics
[317 / 421] SwiftBasicFormat
[318 / 421] SwiftBasicFormat
[319 / 421] SwiftBasicFormat
[321 / 422] SwiftParserDiagnostics
[327 / 442] SwiftParserDiagnostics
[330 / 443] SwiftParserDiagnostics
[331 / 443] SwiftParserDiagnostics
[334 / 444] SwiftOperators
[339 / 444] SwiftParserDiagnostics
[341 / 444] SwiftParserDiagnostics
[346 / 444] SwiftSyntaxBuilder
[351 / 444] SwiftOperators
[353 / 444] SwiftOperators
[360 / 454] SwiftSyntaxBuilder
[362 / 455] SwiftSyntaxBuilder
[363 / 455] SwiftSyntaxBuilder
[364 / 456] SwiftSyntaxBuilder
[370 / 456] SwiftSyntaxBuilder
[371 / 456] SwiftSyntaxBuilder-product
[380 / 466] SwiftIfConfig
[381 / 466] SwiftIfConfig
[384 / 467] SwiftSyntaxBuilder
[385 / 467] SwiftSyntaxBuilder
[395 / 477] SwiftSyntaxMacros
[397 / 477] SwiftSyntaxMacros
[404 / 477] SwiftSyntaxMacros
[412 / 489] PluginCore
[415 / 498] SwiftSyntaxMacroExpansion
[416 / 499] SwiftSyntaxMacros
[419 / 499] SwiftSyntaxMacroExpansion
[429 / 499] SwiftCompilerPluginMessageHandling
[431 / 499] PluginCore
[432 / 499] PluginCore
[433 / 499] PluginCore
[434 / 500] SwiftSyntaxMacroExpansion
[441 / 500] PluginCore
[443 / 500] PluginCore
[444 / 502] SwiftCompilerPluginMessageHandling
[448 / 510] SwiftCompilerPluginMessageHandling
[449 / 510] SwiftCompilerPluginMessageHandling
[450 / 510] SwiftCompilerPluginMessageHandling
[450 / 510] PluginCore
[453 / 510] SwiftCompilerPluginMessageHandling
[457 / 510] SwiftCompilerPluginMessageHandling
[461 / 513] SwiftCompilerPlugin
[466 / 513]
[466 / 513] SwiftCompilerPlugin
[468 / 514] SwiftCompilerPluginMessageHandling
[470 / 515] PluginCore
[472 / 516] SwiftSyntax
[473 / 517] SwiftSyntax
[475 / 517] SwiftSyntax
[482 / 517] SwiftIfConfig
[492 / 518] MacroPlugin
[495 / 521] MacroPlugin
[500 / 522] MacroPlugin
[510 / 532] MetaCodable
[521 / 542] HelperCoders
[524 / 542] HelperCoders
[525 / 543] MetaCodable
[526 / 543] HelperCoders
[539 / 553] OpenAI
[540 / 553] OpenAI
[541 / 553] OpenAI
[543 / 554] OpenAI
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/src/OpenAI.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile OpenAI.swift
[546 / 554] OpenAI
error: SwiftCompile normal wasm32 /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:10:23: error: cannot find type 'URLRequest' in scope
  8 | 	public enum Error: Swift.Error {
  9 | 		/// The provided request is invalid.
 10 | 		case invalidRequest(URLRequest)
    |                       `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | 		/// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/OpenAI.swift:13:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 | 		/// The response was not a 200 or 400 status
 13 | 		case invalidResponse(URLResponse)
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 | 	}
 15 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/src/OpenAI.swift:13:8: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 11 |
 12 | 		/// The response was not a 200 or 400 status
 13 | 		case invalidResponse(URLResponse)
    |        `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 14 | 	}
 15 |
/host/spi-builder-workspace/src/OpenAI.swift:16:23: error: cannot find type 'URLRequest' in scope
 14 | 	}
 15 |
 16 | 	private let request: URLRequest
    |                       `- error: cannot find type 'URLRequest' in scope
 17 | 	private let encoder = JSONEncoder()
 18 | 	private let decoder = JSONDecoder()
/host/spi-builder-workspace/src/OpenAI.swift:25:36: error: cannot find type 'URLRequest' in scope
 23 | 	///
 24 | 	/// - Parameter request: The `URLRequest` to use for the API.
 25 | 	public init(connectingTo request: URLRequest) throws {
    |                                    `- error: cannot find type 'URLRequest' in scope
 26 | 		guard let url = request.url else { throw Error.invalidRequest(request) }
 27 |
/host/spi-builder-workspace/src/OpenAI.swift:187:21: error: cannot find type 'URLRequest' in scope
185 | 	///
186 | 	/// - Throws: If the request fails to send or has a non-200 status code.
187 | 	func send(request: URLRequest) async throws -> Data {
    |                     `- error: cannot find type 'URLRequest' in scope
188 | 		let (data, res) = try await URLSession.shared.data(for: request)
189 |
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
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 type 'Foundation.URLSession' (aka 'AnyObject')
204 | 		let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:203:23: error: cannot find type 'URLRequest' in scope
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: cannot find type 'URLRequest' in scope
204 | 		let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
/host/spi-builder-workspace/src/OpenAI.swift:44:17: error: cannot find 'URLRequest' in scope
 42 | 	/// - Parameter projectId: The project associated with the request.
 43 | 	public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
 44 | 		var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
    |                 `- error: cannot find 'URLRequest' in scope
 45 |
 46 | 		request.addValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/src/OpenAI.swift:50:32: error: extra argument 'connectingTo' in call
 48 | 		if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
 49 |
 50 | 		try! self.init(connectingTo: request)
    |                                `- error: extra argument 'connectingTo' in call
 51 | 	}
 52 |
/host/spi-builder-workspace/src/OpenAI.swift:50:18: error: missing argument for parameter 'authToken' in call
 41 | 	/// - Parameter organizationId: The [organization](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization) associated with the request.
 42 | 	/// - Parameter projectId: The project associated with the request.
 43 | 	public convenience init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
    |                     `- note: 'init(authToken:organizationId:projectId:)' declared here
 44 | 		var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
 45 |
    :
 48 | 		if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
 49 |
 50 | 		try! self.init(connectingTo: request)
    |                  `- error: missing argument for parameter 'authToken' in call
 51 | 	}
 52 |
/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:188:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
186 | 	/// - Throws: If the request fails to send or has a non-200 status code.
187 | 	func send(request: URLRequest) async throws -> Data {
188 | 		let (data, res) = try await URLSession.shared.data(for: request)
    |                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
189 |
190 | 		guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/OpenAI.swift:204:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
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: type 'URLSession' (aka 'AnyObject') has no member 'shared'
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:
/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-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/MultiPartData.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/MultiPartData.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/MultiPartData.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/MultiPartData.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -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 /usr/lib/swift/host/plugins/testing\#/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_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -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-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/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-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/MultiPartData.o -index-unit-output-path /OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/OpenAI.o -index-unit-output-path /OpenAI.build/Debug-webassembly-wasm32/OpenAI-t.build/Objects-normal/wasm32/MultiPartData.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm