The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CopilotSDK, reference v2.2.1 (6d56b5), with Swift 6.3 for macOS (SPM) on 6 May 2026 08:49:16 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build 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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "copilot-sdk-supercharged",
      "name": "CopilotSDK",
      "url": "https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/copilot-sdk-supercharged",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
[1/14430] Fetching copilot-sdk-supercharged
Fetched https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git from cache (3.60s)
Creating working copy for https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Working copy of https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git resolved at v2.2.1 (6d56b56)
warning: '.resolve-product-dependencies': dependency 'copilot-sdk-supercharged' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/jeremiahjordanisaacson/copilot-sdk-supercharged.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[1/7] Write BasicExample-entitlement.plist
[2/7] Write sources
[3/7] Write swift-version--6988338F2F200930.txt
[5/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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
 14 |
 15 |     public init(code: Int, message: String, data: [String: Any]? = nil) {
[6/14] Compiling CopilotSDK SdkProtocolVersion.swift
[7/14] Compiling CopilotSDK CopilotClient.swift
[8/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' 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?) {
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215: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
 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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1107 |
1108 |     public init(
[9/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 |                     }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[10/14] Compiling CopilotSDK DefineTool.swift
[11/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' contains non-Sendable type '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' contains non-Sendable type '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' 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?) {
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/swift/Sources/CopilotSDK/Types.swift:215: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
 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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
1107 |
1108 |     public init(
[12/16] Emitting module BasicExample
[13/16] Compiling BasicExample main.swift
/Users/admin/builder/spi-builder-workspace/swift/Examples/BasicExample/main.swift:53:43: error: actor-isolated property 'sessionId' cannot be accessed from outside of the actor
51 |             SessionConfig(tools: [lookupFactTool])
52 |         )
53 |         print("Session created: \(session.sessionId)\n")
   |                                           `- error: actor-isolated property 'sessionId' cannot be accessed from outside of the actor
54 |
55 |         // Subscribe to all events
BUILD FAILURE 6.3 macosSpm