Build Information
Failed to build CopilotSDK, reference v2.2.1 (6d56b5), with Swift 6.0 for macOS (SPM) on 6 May 2026 08:48:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Reference: v2.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged
* tag v2.2.1 -> FETCH_HEAD
HEAD is now at 6d56b56 fix: OCaml — inline rpc lookup in set_session_fs_provider (get_rpc not yet defined)
Cloned https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Revision (git rev-parse @):
6d56b568b5ff8c05ea463ccbd6b94547e33d653e
SUCCESS checkout https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git at v2.2.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[2/7] Write BasicExample-entitlement.plist
[3/7] Write swift-version-5BDAB9E9C0126B9D.txt
[5/14] Compiling CopilotSDK SdkProtocolVersion.swift
[6/14] Compiling CopilotSDK CopilotSession.swift
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:130:21: warning: mutation of captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
128 | let handler: SessionEventHandler = { event in
129 | if event.type == "assistant.message" {
130 | lastAssistantMessage = event
| `- warning: mutation of captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
131 | } else if event.type == "session.idle" {
132 | if !resumed {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:132:25: warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
130 | lastAssistantMessage = event
131 | } else if event.type == "session.idle" {
132 | if !resumed {
| `- warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
133 | resumed = true
134 | timeoutTask.cancel()
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:133:25: warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
131 | } else if event.type == "session.idle" {
132 | if !resumed {
133 | resumed = true
| `- warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
134 | timeoutTask.cancel()
135 | Task { await self.removeEventHandler(handlerId) }
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:136:56: warning: reference to captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
134 | timeoutTask.cancel()
135 | Task { await self.removeEventHandler(handlerId) }
136 | continuation.resume(returning: lastAssistantMessage)
| `- warning: reference to captured var 'lastAssistantMessage' in concurrently-executing code; this is an error in the Swift 6 language mode
137 | }
138 | } else if event.type == "session.error" {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:139:25: warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
137 | }
138 | } else if event.type == "session.error" {
139 | if !resumed {
| `- warning: reference to captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
140 | resumed = true
141 | timeoutTask.cancel()
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:140:25: warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | } else if event.type == "session.error" {
139 | if !resumed {
140 | resumed = true
| `- warning: mutation of captured var 'resumed' in concurrently-executing code; this is an error in the Swift 6 language mode
141 | timeoutTask.cancel()
142 | Task { await self.removeEventHandler(handlerId) }
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:120:28: warning: no 'async' operations occur within 'await' expression
118 | resumed = true
119 | // Remove the handler
120 | Task { await self.removeEventHandler(handlerId) }
| `- warning: no 'async' operations occur within 'await' expression
121 | continuation.resume(
122 | throwing: CopilotError.timeout(
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/CopilotSession.swift:159:25: warning: no 'async' operations occur within 'await' expression
157 | resumed = true
158 | timeoutTask.cancel()
159 | await self.removeEventHandler(handlerId)
| `- warning: no 'async' operations occur within 'await' expression
160 | continuation.resume(throwing: error)
161 | }
[7/14] Compiling CopilotSDK JsonRpcClient.swift
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
11 | public let code: Int
12 | public let message: String
13 | public let data: [String: Any]?
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
14 |
15 | public init(code: Int, message: String, data: [String: Any]? = nil) {
[8/14] Compiling CopilotSDK CopilotClient.swift
[9/14] Emitting module CopilotSDK
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/JsonRpcClient.swift:13:16: warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
11 | public let code: Int
12 | public let message: String
13 | public let data: [String: Any]?
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'JsonRpcError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
14 |
15 | public init(code: Int, message: String, data: [String: Any]? = nil) {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has 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' has 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?) {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' has non-sendable type '[String : 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' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 |
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
213 | public let kind: String
214 | public let toolCallId: String?
215 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
216 |
217 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1106:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1104 | public let ephemeral: Bool?
1105 | public let type: String
1106 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[10/14] Compiling CopilotSDK Types.swift
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:91:16: warning: stored property 'arguments' of 'Sendable'-conforming struct 'ToolInvocation' has 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' has 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?) {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:110:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'Tool' has non-sendable type '[String : 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' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
111 | public let handler: ToolHandler
112 |
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215:16: warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
213 | public let kind: String
214 | public let toolCallId: String?
215 | public let rawData: [String: Any]
| `- warning: stored property 'rawData' of 'Sendable'-conforming struct 'PermissionRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
216 |
217 | public init(kind: String, toolCallId: String? = nil, rawData: [String: Any] = [:]) {
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:1106:16: warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1104 | public let ephemeral: Bool?
1105 | public let type: String
1106 | public let data: [String: Any]
| `- warning: stored property 'data' of 'Sendable'-conforming struct 'SessionEvent' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
1107 |
1108 | public init(
[11/14] Compiling CopilotSDK DefineTool.swift
[12/16] Emitting module BasicExample
[13/16] Compiling BasicExample main.swift
/Users/admin/builder/spi-builder-workspace/swift/Examples/BasicExample/main.swift:53:35: error: expression is 'async' but is not marked with 'await'
51 | SessionConfig(tools: [lookupFactTool])
52 | )
53 | print("Session created: \(session.sessionId)\n")
| |- error: expression is 'async' but is not marked with 'await'
| `- note: property access is 'async'
54 |
55 | // Subscribe to all events
BUILD FAILURE 6.0 macosSpm