Build Information
Failed to build CopilotSDK, reference v2.5.3 (dd3448), with Swift 6.2 for Wasm on 22 Aug 2026 13:46:59 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Reference: v2.5.3
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/jeremiahjordanisaacson/copilot-sdk-supercharged
* tag v2.5.3 -> FETCH_HEAD
HEAD is now at dd34489 chore: release v2.5.3
Updating files: 85% (4267/5007)
Updating files: 86% (4307/5007)
Updating files: 87% (4357/5007)
Updating files: 88% (4407/5007)
Updating files: 89% (4457/5007)
Updating files: 90% (4507/5007)
Updating files: 91% (4557/5007)
Updating files: 92% (4607/5007)
Updating files: 93% (4657/5007)
Updating files: 94% (4707/5007)
Updating files: 95% (4757/5007)
Updating files: 96% (4807/5007)
Updating files: 97% (4857/5007)
Updating files: 98% (4907/5007)
Updating files: 99% (4957/5007)
Updating files: 100% (5007/5007)
Updating files: 100% (5007/5007), done.
Cloned https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Revision (git rev-parse @):
dd34489d54addfa020a7ec5b7c5c8b61c6b99f8c
SUCCESS checkout https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git at v2.5.3
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling CopilotSDK DefineTool.swift
[5/14] Compiling CopilotSDK CopilotClient.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:33:29: error: cannot find type 'Process' in scope
31 | private let options: CopilotClientOptions
32 | private var state: ConnectionState = .disconnected
33 | private var cliProcess: Process?
| `- error: cannot find type 'Process' in scope
34 | private var rpcClient: JsonRpcClient?
35 | private var sessions: [String: CopilotSession] = [:]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:585:23: error: cannot find 'Process' in scope
583 |
584 | private func startCLIServer() async throws {
585 | let process = Process()
| `- error: cannot find 'Process' in scope
586 | process.executableURL = URL(fileURLWithPath: resolvedCliPath)
587 |
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:626:41: error: value of type 'FileHandle' has no member 'readabilityHandler'
624 |
625 | // Forward stderr to our stderr
626 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: value of type 'FileHandle' has no member 'readabilityHandler'
627 | let data = handle.availableData
628 | if !data.isEmpty {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:626:64: error: cannot infer type of closure parameter 'handle' without a type annotation
624 |
625 | // Forward stderr to our stderr
626 | stderrPipe.fileHandleForReading.readabilityHandler = { handle in
| `- error: cannot infer type of closure parameter 'handle' without a type annotation
627 | let data = handle.availableData
628 | if !data.isEmpty {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/14] Compiling CopilotSDK Types.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
89 | public let toolCallId: String
90 | public let toolName: String
91 | public let arguments: Any? // The decoded JSON arguments
| `- warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
92 |
93 | public init(sessionId: String, toolCallId: String, toolName: String, arguments: Any?) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
108 | public let name: String
109 | public let description: String?
110 | public let parameters: [String: Any]?
| `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 | /// Tool deferral policy: `ToolDefer.auto` (default) or `ToolDefer.never`.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:244:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
242 | public let kind: String
243 | public let toolCallId: String?
244 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
245 |
246 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1346:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1344 | public let ephemeral: Bool?
1345 | public let type: String
1346 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1347 |
1348 | public init(
[7/14] Compiling CopilotSDK SdkProtocolVersion.swift
[8/14] Compiling CopilotSDK CopilotSession.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:124:28: warning: no 'async' operations occur within 'await' expression
122 | try await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000_000))
123 | if state.tryResume() {
124 | Task { await self.removeEventHandler(handlerId) }
| `- warning: no 'async' operations occur within 'await' expression
125 | continuation.resume(
126 | throwing: CopilotError.timeout(
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:160:25: warning: no 'async' operations occur within 'await' expression
158 | if state.tryResume() {
159 | timeoutTask.cancel()
160 | await self.removeEventHandler(handlerId)
| `- warning: no 'async' operations occur within 'await' expression
161 | continuation.resume(throwing: error)
162 | }
[9/14] Emitting module CopilotSDK
/host/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotClient.swift:33:29: error: cannot find type 'Process' in scope
31 | private let options: CopilotClientOptions
32 | private var state: ConnectionState = .disconnected
33 | private var cliProcess: Process?
| `- error: cannot find type 'Process' in scope
34 | private var rpcClient: JsonRpcClient?
35 | private var sessions: [String: CopilotSession] = [:]
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
89 | public let toolCallId: String
90 | public let toolName: String
91 | public let arguments: Any? // The decoded JSON arguments
| `- warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
92 |
93 | public init(sessionId: String, toolCallId: String, toolName: String, arguments: Any?) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
108 | public let name: String
109 | public let description: String?
110 | public let parameters: [String: Any]?
| `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 | /// Tool deferral policy: `ToolDefer.auto` (default) or `ToolDefer.never`.
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:244:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
242 | public let kind: String
243 | public let toolCallId: String?
244 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
245 |
246 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/host/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1346:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1344 | public let ephemeral: Bool?
1345 | public let type: String
1346 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1347 |
1348 | public init(
[10/14] Compiling CopilotSDK JsonRpcClient.swift
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:224:13: error: cannot find 'DispatchQueue' in scope
222 | private func readData(from handle: FileHandle) async throws -> Data {
223 | return try await withCheckedThrowingContinuation { continuation in
224 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot find 'DispatchQueue' in scope
225 | let data = handle.availableData
226 | continuation.resume(returning: data)
/host/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:224:40: error: cannot infer contextual base in reference to member 'userInitiated'
222 | private func readData(from handle: FileHandle) async throws -> Data {
223 | return try await withCheckedThrowingContinuation { continuation in
224 | DispatchQueue.global(qos: .userInitiated).async {
| `- error: cannot infer contextual base in reference to member 'userInitiated'
225 | let data = handle.availableData
226 | continuation.resume(returning: data)
BUILD FAILURE 6.2 wasm