Build Information
Failed to build SwiftAgent, reference 0.7.2 (fcc42f), with Swift 6.1 for Wasm on 20 Oct 2025 00:38:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftedMind/SwiftAgent.git
Reference: 0.7.2
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/SwiftedMind/SwiftAgent
* tag 0.7.2 -> FETCH_HEAD
HEAD is now at fcc42fb Merge branch 'develop'
Cloned https://github.com/SwiftedMind/SwiftAgent.git
Revision (git rev-parse @):
fcc42fbb274de0372688019bbee8100715fdbb87
SUCCESS checkout https://github.com/SwiftedMind/SwiftAgent.git at 0.7.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/SwiftedMind/SwiftAgent.git
https://github.com/SwiftedMind/SwiftAgent.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "600.0.0",
"upper_bound" : "603.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
},
{
"identity" : "openai",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/MacPaw/OpenAI.git"
},
{
"identity" : "eventsource",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mattt/EventSource"
},
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing"
}
],
"manifest_display_name" : "SwiftAgent",
"name" : "SwiftAgent",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "26.0"
},
{
"name" : "macos",
"version" : "26.0"
}
],
"products" : [
{
"name" : "OpenAISession",
"targets" : [
"OpenAISession",
"SimulatedSession",
"SwiftAgent"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ExampleCode",
"targets" : [
"ExampleCode"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftAgentMacros",
"targets" : [
"SwiftAgentMacros"
],
"type" : {
"macro" : null
}
}
],
"swift_languages_versions" : [
"6"
],
"targets" : [
{
"c99name" : "SwiftAgentTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAgentTests",
"path" : "Tests/SwiftAgentTests",
"sources" : [
"Helpers/ReplayHTTPClient.swift",
"OpenAISession/OpenAIErrorHandling.swift",
"OpenAISession/OpenAIStreamingErrorHandling.swift",
"OpenAISession/OpenAIStreamingStructuredOutputTests.swift",
"OpenAISession/OpenAIStreamingTextTests.swift",
"OpenAISession/OpenAIStreamingToolCallsTests.swift",
"OpenAISession/OpenAIStructuredOutputTests.swift",
"PromptBuilderTests.swift",
"SimulatedSession/SimulationStreamingTextTests.swift",
"SimulatedSession/SimulationTextTests.swift",
"SwiftAgentTests.swift"
],
"target_dependencies" : [
"OpenAISession",
"SwiftAgent",
"SimulatedSession"
],
"type" : "test"
},
{
"c99name" : "SwiftAgentMacros",
"module_type" : "SwiftTarget",
"name" : "SwiftAgentMacros",
"path" : "Sources/SwiftAgentMacros",
"product_dependencies" : [
"SwiftCompilerPlugin",
"SwiftDiagnostics",
"SwiftSyntax",
"SwiftSyntaxMacros",
"SwiftSyntaxBuilder"
],
"product_memberships" : [
"OpenAISession",
"ExampleCode",
"SwiftAgentMacros"
],
"sources" : [
"MacroHelpers.swift",
"SessionSchema/SessionSchemaMacro+Extensions.swift",
"SessionSchema/SessionSchemaMacro+Extraction.swift",
"SessionSchema/SessionSchemaMacro+Generation.swift",
"SessionSchema/SessionSchemaMacro+Types.swift",
"SessionSchema/SessionSchemaMacro.swift",
"SwiftAgentMacroPlugin.swift"
],
"type" : "macro"
},
{
"c99name" : "SwiftAgentMacroTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAgentMacroTests",
"path" : "Tests/SwiftAgentMacroTests",
"product_dependencies" : [
"MacroTesting",
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"SessionSchemaMacroTests.swift"
],
"target_dependencies" : [
"SwiftAgentMacros"
],
"type" : "test"
},
{
"c99name" : "SwiftAgent",
"module_type" : "SwiftTarget",
"name" : "SwiftAgent",
"path" : "Sources/SwiftAgent",
"product_dependencies" : [
"EventSource"
],
"product_memberships" : [
"OpenAISession",
"ExampleCode"
],
"sources" : [
"Helpers/AgentLog.swift",
"Helpers/GenerationError+HTTPMapping.swift",
"Helpers/GenerationError+Pipeline.swift",
"Helpers/JSONUtilities.swift",
"Helpers/Logging.swift",
"Helpers/RejectionReportDetailsExtractor.swift",
"Helpers/SnakeCaseName.swift",
"Helpers/TranscriptDecoder.swift",
"Helpers/URLMetadataProvider.swift",
"LanguageModelProvider/LanguageModelProvider+Respond.swift",
"LanguageModelProvider/LanguageModelProvider+StreamResponse.swift",
"LanguageModelProvider/LanguageModelProvider.swift",
"Macros.swift",
"Models/AdapterUpdate.swift",
"Models/AgentResponse.swift",
"Models/AgentSnapshot.swift",
"Models/GenerationError.swift",
"Models/StructuredOutputSnapshot.swift",
"Models/TokenUsage.swift",
"Models/ToolRun.swift",
"Models/ToolRunRejection.swift",
"Models/Transcript+Decoded.swift",
"Models/Transcript.swift",
"Models/TranscriptDecodingError.swift",
"Models/_SwiftAgentToolWrapper.swift",
"Networking/AuthorizationContext.swift",
"Networking/HTTPClient+SSE.swift",
"Networking/HTTPClient.swift",
"Networking/HTTPErrorMessageExtractor.swift",
"Networking/NetworkLog.swift",
"Prompting/PromptBuilder.swift",
"Prompting/PromptBuiltins.swift",
"Protocols/Adapter.swift",
"Protocols/DecodableStructuredOutput.swift",
"Protocols/DecodableTool.swift",
"Protocols/LanguageModelSessionSchema.swift",
"Protocols/StructuredOutput.swift",
"Protocols/SwiftAgentTool.swift",
"SwiftAgentConfiguration.swift"
],
"target_dependencies" : [
"SwiftAgentMacros"
],
"type" : "library"
},
{
"c99name" : "SimulatedSession",
"module_type" : "SwiftTarget",
"name" : "SimulatedSession",
"path" : "Sources/SimulatedSession",
"product_dependencies" : [
"OpenAI"
],
"product_memberships" : [
"OpenAISession",
"ExampleCode"
],
"sources" : [
"MockableTool.swift",
"SimulatedGeneration.swift",
"SimulatedSession.swift",
"SimulationAdapter.swift",
"SimulationConfiguration.swift",
"SimulationExports.swift",
"SimulationGenerationOptions.swift",
"SimulationModel.swift"
],
"target_dependencies" : [
"SwiftAgent"
],
"type" : "library"
},
{
"c99name" : "OpenAISession",
"module_type" : "SwiftTarget",
"name" : "OpenAISession",
"path" : "Sources/OpenAISession",
"product_dependencies" : [
"OpenAI",
"EventSource"
],
"product_memberships" : [
"OpenAISession",
"ExampleCode"
],
"sources" : [
"Helpers/GenerationError+OpenAI.swift",
"Helpers/GenerationSchema+JSONSchema.swift",
"Helpers/OpenAIResponseStreamEventDecoder.swift",
"Helpers/OutputContent+asText.swift",
"OpenAIAdapter+Streaming.swift",
"OpenAIAdapter.swift",
"OpenAIConfiguration.swift",
"OpenAIExports.swift",
"OpenAIGenerationOptions.swift",
"OpenAIGenerationOptionsError.swift",
"OpenAIModel.swift",
"OpenAISession.swift"
],
"target_dependencies" : [
"SwiftAgent",
"SwiftAgentMacros"
],
"type" : "library"
},
{
"c99name" : "ExampleCode",
"module_type" : "SwiftTarget",
"name" : "ExampleCode",
"path" : "Sources/ExampleCode",
"product_memberships" : [
"ExampleCode"
],
"sources" : [
"ReadmeCode.swift"
],
"target_dependencies" : [
"SwiftAgent",
"OpenAISession",
"SimulatedSession"
],
"type" : "library"
}
],
"tools_version" : "6.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.0
BUILD FAILURE 6.1 wasm