The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ClaudeCodeSDK, reference 1.2.4 (f626d1), with Swift 6.4 for macOS (SPM) on 23 Sep 2026 16:51:44 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jamesrochabrun/ClaudeCodeSDK.git
Reference: 1.2.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jamesrochabrun/ClaudeCodeSDK
 * tag               1.2.4      -> FETCH_HEAD
HEAD is now at f626d1d Add CLI parity with 21 new flags from Claude Code Agent SDK (#30)
Cloned https://github.com/jamesrochabrun/ClaudeCodeSDK.git
Revision (git rev-parse @):
f626d1d1eab3bf43a1eef2f70b2a493903f7e5e8
SUCCESS checkout https://github.com/jamesrochabrun/ClaudeCodeSDK.git at 1.2.4
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/jamesrochabrun/ClaudeCodeSDK.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[42 / 67] ClaudeCodeSDK_ClaudeCodeSDK
[43 / 67]
[44 / 68] SwiftAnthropic
[54 / 117]
[59 / 117]
[63 / 117]
[64 / 117]
[68 / 117]
[70 / 117]
[73 / 117]
[77 / 117]
[79 / 117]
[80 / 117]
[93 / 117] SwiftAnthropic
[94 / 117] SwiftAnthropic
[102 / 118] ClaudeCodeSDK
[112 / 167]
[117 / 167]
[121 / 167]
[122 / 167]
[126 / 167]
[128 / 167]
[131 / 167]
[135 / 167]
[137 / 167]
[138 / 167]
[151 / 167] ClaudeCodeSDK
[160 / 168] ClaudeCodeSDK
[160 / 168] QuickTest-product
[162 / 170] QuickTest-product
[164 / 170] ClaudeCodeSDK
[168 / 170] QuickTest-product
Build complete! (12.80 sec)
Fetching https://github.com/jamesrochabrun/SwiftAnthropic
[1/1332] Fetching swiftanthropic
Fetched https://github.com/jamesrochabrun/SwiftAnthropic (1.25s)
Computing version for https://github.com/jamesrochabrun/SwiftAnthropic
Computed https://github.com/jamesrochabrun/SwiftAnthropic at 2.2.0 (1.87s)
Fetching https://github.com/swift-server/async-http-client.git
[1/16209] Fetching async-http-client
Fetched https://github.com/swift-server/async-http-client.git (2.02s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.36.1 (2.67s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-log.git
[1/3779] Fetching swift-configuration
[2/5155] Fetching swift-configuration, swift-service-context
[53/7030] Fetching swift-configuration, swift-service-context, swift-atomics
[148/13175] Fetching swift-configuration, swift-service-context, swift-atomics, swift-algorithms
[262/16038] Fetching swift-configuration, swift-service-context, swift-atomics, swift-algorithms, swift-nio-transport-services
[263/22383] Fetching swift-configuration, swift-service-context, swift-atomics, swift-algorithms, swift-nio-transport-services, swift-distributed-tracing
[429/30547] Fetching swift-configuration, swift-service-context, swift-atomics, swift-algorithms, swift-nio-transport-services, swift-distributed-tracing, swift-log
Fetched https://github.com/apple/swift-nio-transport-services.git (1.38s)
[24856/27684] Fetching swift-configuration, swift-service-context, swift-atomics, swift-algorithms, swift-distributed-tracing, swift-log
Fetching https://github.com/apple/swift-nio-http2.git
Fetched https://github.com/apple/swift-log.git (1.49s)
Fetched https://github.com/apple/swift-algorithms.git (1.49s)
Fetched https://github.com/apple/swift-distributed-tracing.git (1.52s)
Fetched https://github.com/apple/swift-configuration.git (1.52s)
Fetched https://github.com/apple/swift-atomics.git (1.52s)
Fetched https://github.com/apple/swift-service-context.git (1.52s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-extras.git
[1/12252] Fetching swift-nio-http2
[2/18942] Fetching swift-nio-http2, swift-nio-extras
[125/35007] Fetching swift-nio-http2, swift-nio-extras, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git (1.41s)
[4142/28317] Fetching swift-nio-http2, swift-nio-ssl
[6624/114382] Fetching swift-nio-http2, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-http2.git (2.19s)
[26393/102130] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio.git (8.87s)
Fetched https://github.com/apple/swift-nio-ssl.git (8.87s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (11.02s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.79s)
Fetching https://github.com/apple/swift-numerics.git
[1/6640] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (1.90s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.5.0 (2.50s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.1 (2.18s)
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swift-server/swift-service-lifecycle
[1/2843] Fetching swift-service-lifecycle
[257/9759] Fetching swift-service-lifecycle, swift-system
[5403/37452] Fetching swift-service-lifecycle, swift-system, swift-collections
Fetched https://github.com/swift-server/swift-service-lifecycle (3.59s)
Fetched https://github.com/apple/swift-collections (3.59s)
Fetched https://github.com/apple/swift-system (3.59s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (4.21s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.56s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.58s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.69s)
Computing version for https://github.com/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.12.0 (0.56s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6732] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git (1.76s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (2.37s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.5 (0.64s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.0 (0.68s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.59s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.69s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.65s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (0.78s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-certificates.git
[1/1253] Fetching swift-http-structured-headers
[64/3188] Fetching swift-http-structured-headers, swift-http-types
[65/10763] Fetching swift-http-structured-headers, swift-http-types, swift-certificates
[4326/12746] Fetching swift-http-structured-headers, swift-http-types, swift-certificates, swift-asn1
Fetched https://github.com/apple/swift-http-structured-headers.git (1.67s)
Fetched https://github.com/apple/swift-asn1.git (1.67s)
Fetched https://github.com/apple/swift-certificates.git (1.67s)
Fetched https://github.com/apple/swift-http-types.git (1.67s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (2.30s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.61s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.68s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.69s)
Fetching https://github.com/apple/swift-crypto.git
[1/18549] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (3.09s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.0.0 (3.86s)
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/jamesrochabrun/SwiftAnthropic
Working copy of https://github.com/jamesrochabrun/SwiftAnthropic resolved at 2.2.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.5
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.5.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle
Working copy of https://github.com/swift-server/swift-service-lifecycle resolved at 2.12.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.1
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.36.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 5.0.0
/Users/admin/builder/spi-builder-workspace/Sources/ClaudeCodeSDK/Examples/ErrorHandlingExample.swift:141:5: warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-use-throwing-unstructured-task\NoUseUnstructuredThrowingTask]8;;\]
139 |
140 |     // Start a long-running task
141 |     Task {
    |     |- warning: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-use-throwing-unstructured-task\NoUseUnstructuredThrowingTask]8;;\]
    |     `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly
142 |         do {
143 |             let result = try await client.runSinglePrompt(
[#NoUseUnstructuredThrowingTask]: <https://docs.swift.org/compiler/documentation/diagnostics/no-use-throwing-unstructured-task>
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftanthropic",
      "requirement" : {
        "exact" : [
          "2.2.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jamesrochabrun/SwiftAnthropic"
    }
  ],
  "manifest_display_name" : "ClaudeCodeSDK",
  "name" : "ClaudeCodeSDK",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "ClaudeCodeSDK",
      "targets" : [
        "ClaudeCodeSDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "QuickTest",
      "targets" : [
        "QuickTest"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickTest",
      "module_type" : "SwiftTarget",
      "name" : "QuickTest",
      "path" : "Sources/QuickTest",
      "product_memberships" : [
        "QuickTest"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ClaudeCodeSDK"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ClaudeCodeSDKTests",
      "module_type" : "SwiftTarget",
      "name" : "ClaudeCodeSDKTests",
      "path" : "Tests/ClaudeCodeSDKTests",
      "sources" : [
        "BackendConfigurationTests.swift",
        "BackendTests.swift",
        "BasicClientTests.swift",
        "CancellationTests.swift",
        "ClaudeCodeSDKTests.swift",
        "ErrorHandlingTests.swift",
        "MCPConfigurationTests.swift",
        "NodePathDetectorTests.swift",
        "OptionsTests.swift",
        "OutputFormatTests.swift",
        "ProcessLaunchTests.swift",
        "RateLimitingTests.swift",
        "RetryLogicTests.swift",
        "SDKWrapperTests.swift",
        "ShellEscapingTests.swift"
      ],
      "target_dependencies" : [
        "ClaudeCodeSDK"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ClaudeCodeSDK",
      "module_type" : "SwiftTarget",
      "name" : "ClaudeCodeSDK",
      "path" : "Sources/ClaudeCodeSDK",
      "product_dependencies" : [
        "SwiftAnthropic"
      ],
      "product_memberships" : [
        "ClaudeCodeSDK",
        "QuickTest"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClaudeCodeSDK/Resources/sdk-wrapper.mjs",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "API/AbortController.swift",
        "API/ApiKeySource.swift",
        "API/AssistantMessage.swift",
        "API/ClaudeCode.swift",
        "API/ClaudeCodeConfiguration.swift",
        "API/ClaudeCodeOptions.swift",
        "API/ClaudeCodeOutputFormat.swift",
        "API/ClaudeCodeResult.swift",
        "API/ConfigScope.swift",
        "API/ExecutedCommandInfo.swift",
        "API/InitSystemMessage.swift",
        "API/InputFormat.swift",
        "API/McpServerConfig.swift",
        "API/PermissionMode.swift",
        "API/ResponseChunk.swift",
        "API/ResultMessage.swift",
        "API/SessionInfo.swift",
        "API/SettingSource.swift",
        "API/SubagentDefinition.swift",
        "API/UserMessage.swift",
        "Backend/AgentSDKBackend.swift",
        "Backend/BackendFactory.swift",
        "Backend/ClaudeCodeBackend.swift",
        "Backend/HeadlessBackend.swift",
        "ClaudeCodeSDK.swift",
        "Client/ClaudeCodeClient.swift",
        "Client/ClaudeCodeError.swift",
        "Examples/ErrorHandlingExample.swift",
        "Storage/ClaudeNativeSessionStorage.swift",
        "Storage/ClaudeSessionModels.swift",
        "Storage/ClaudeSessionProtocol.swift",
        "Utilities/MCPToolFormatter.swift",
        "Utilities/NodePathDetector.swift",
        "Utilities/NvmPathDetector.swift",
        "Utilities/RateLimiter.swift",
        "Utilities/RetryPolicy.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.