The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftAnthropic, reference main (b7d030), with Swift 6.2 for macOS (SPM) on 21 Apr 2026 05:52:12 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.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/jamesrochabrun/SwiftAnthropic.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jamesrochabrun/SwiftAnthropic
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b7d030c Merge pull request #58 from jamesrochabrun/add-mit-license
Cloned https://github.com/jamesrochabrun/SwiftAnthropic.git
Revision (git rev-parse @):
b7d030cd7453f314c780f5492385f73d704cbd5d
SUCCESS checkout https://github.com/jamesrochabrun/SwiftAnthropic.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jamesrochabrun/SwiftAnthropic.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--3CB7CFEC50E0D141.txt
[3/28] Compiling SwiftAnthropic AnthropicAPI.swift
[4/28] Compiling SwiftAnthropic Endpoint.swift
[5/28] Compiling SwiftAnthropic AsyncHTTPClientAdapter.swift
[6/30] Compiling SwiftAnthropic HTTPClient.swift
[7/30] Compiling SwiftAnthropic URLSessionHTTPClientAdapter.swift
[8/30] Compiling SwiftAnthropic Model.swift
[9/30] Compiling SwiftAnthropic ErrorResponse.swift
[10/30] Compiling SwiftAnthropic MessageInputTokens.swift
[11/30] Compiling SwiftAnthropic MessageResponse+DynamicContent.swift
[12/30] Compiling SwiftAnthropic TextCompletionResponse.swift
[13/30] Compiling SwiftAnthropic TextCompletionStreamResponse.swift
[14/30] Compiling SwiftAnthropic MessageResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:551:3: warning: 'public' modifier is redundant for enum declared in a public extension
549 | public extension MessageResponse.Content {
550 |
551 |   public enum ToolResultContent: Codable {
    |   `- warning: 'public' modifier is redundant for enum declared in a public extension
552 |     case string(String)
553 |     case items([ContentItem])
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:618:12: warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test [#no-usage]
616 |     }
617 |
618 |     if let encryptedContent = self.encryptedContent {
    |            `- warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test [#no-usage]
619 |       // Just indicate presence rather than showing the whole encrypted content
620 |       result += "  Encrypted Content: [Present]\n"
[15/30] Compiling SwiftAnthropic MessageStreamResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:551:3: warning: 'public' modifier is redundant for enum declared in a public extension
549 | public extension MessageResponse.Content {
550 |
551 |   public enum ToolResultContent: Codable {
    |   `- warning: 'public' modifier is redundant for enum declared in a public extension
552 |     case string(String)
553 |     case items([ContentItem])
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:618:12: warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test [#no-usage]
616 |     }
617 |
618 |     if let encryptedContent = self.encryptedContent {
    |            `- warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test [#no-usage]
619 |       // Just indicate presence rather than showing the whole encrypted content
620 |       result += "  Encrypted Content: [Present]\n"
[16/30] Compiling SwiftAnthropic SkillResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:551:3: warning: 'public' modifier is redundant for enum declared in a public extension
549 | public extension MessageResponse.Content {
550 |
551 |   public enum ToolResultContent: Codable {
    |   `- warning: 'public' modifier is redundant for enum declared in a public extension
552 |     case string(String)
553 |     case items([ContentItem])
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:618:12: warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test [#no-usage]
616 |     }
617 |
618 |     if let encryptedContent = self.encryptedContent {
    |            `- warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test [#no-usage]
619 |       // Just indicate presence rather than showing the whole encrypted content
620 |       result += "  Encrypted Content: [Present]\n"
[17/30] Compiling SwiftAnthropic StreamHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Service/AnthropicService.swift:350:11: warning: variable 'errorMessage' was never mutated; consider changing to 'let' constant
348 |     }
349 |     guard response.statusCode == 200 else {
350 |       var errorMessage = "status code \(response.statusCode)"
    |           `- warning: variable 'errorMessage' was never mutated; consider changing to 'let' constant
351 |       // Note: We can't easily collect error data from the stream here
352 |       // This is a limitation we accept for now
[18/30] Compiling SwiftAnthropic AnthropicService.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Service/AnthropicService.swift:350:11: warning: variable 'errorMessage' was never mutated; consider changing to 'let' constant
348 |     }
349 |     guard response.statusCode == 200 else {
350 |       var errorMessage = "status code \(response.statusCode)"
    |           `- warning: variable 'errorMessage' was never mutated; consider changing to 'let' constant
351 |       // Note: We can't easily collect error data from the stream here
352 |       // This is a limitation we accept for now
[19/30] Compiling SwiftAnthropic MessageTokenCountParameter.swift
[20/30] Compiling SwiftAnthropic SkillParameter.swift
[21/30] Compiling SwiftAnthropic TextCompletionParameter.swift
[22/30] Compiling SwiftAnthropic JSONSchema.swift
[23/30] Compiling SwiftAnthropic MessageParameter+Web.swift
[24/30] Compiling SwiftAnthropic MessageParameter.swift
[25/30] Emitting module SwiftAnthropic
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/ResponseModels/Message/MessageResponse.swift:551:3: warning: 'public' modifier is redundant for enum declared in a public extension
549 | public extension MessageResponse.Content {
550 |
551 |   public enum ToolResultContent: Codable {
    |   `- warning: 'public' modifier is redundant for enum declared in a public extension
552 |     case string(String)
553 |     case items([ContentItem])
[26/30] Compiling SwiftAnthropic AIProxyCertificatePinning.swift
[27/30] Compiling SwiftAnthropic AIProxyService.swift
[28/30] Compiling SwiftAnthropic Endpoint+AIProxy.swift
[29/30] Compiling SwiftAnthropic AnthropicServiceFactory.swift
[30/30] Compiling SwiftAnthropic DefaultAnthropicService.swift
Build complete! (57.79s)
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-nio.git
[1/15703] Fetching async-http-client
[1572/98867] Fetching async-http-client, swift-nio
Fetched https://github.com/swift-server/async-http-client.git from cache (2.02s)
[24118/83164] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (5.50s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.33.1 (6.11s)
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
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-distributed-tracing.git
[1/2843] Fetching swift-nio-transport-services
[115/6065] Fetching swift-nio-transport-services, swift-configuration
[341/7341] Fetching swift-nio-transport-services, swift-configuration, swift-service-context
[524/9161] Fetching swift-nio-transport-services, swift-configuration, swift-service-context, swift-atomics
[824/14925] Fetching swift-nio-transport-services, swift-configuration, swift-service-context, swift-atomics, swift-distributed-tracing
[825/20983] Fetching swift-nio-transport-services, swift-configuration, swift-service-context, swift-atomics, swift-distributed-tracing, swift-algorithms
[3420/27618] Fetching swift-nio-transport-services, swift-configuration, swift-service-context, swift-atomics, swift-distributed-tracing, swift-algorithms, swift-log
Fetched https://github.com/apple/swift-algorithms.git from cache (1.16s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.16s)
Fetched https://github.com/apple/swift-configuration.git from cache (1.17s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.17s)
[7011/9731] Fetching swift-service-context, swift-atomics, swift-log
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetched https://github.com/apple/swift-log.git from cache (1.28s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.28s)
Fetched https://github.com/apple/swift-service-context.git from cache (1.28s)
[1/6510] Fetching swift-nio-extras
[262/21929] Fetching swift-nio-extras, swift-nio-ssl
[523/34037] Fetching swift-nio-extras, swift-nio-ssl, swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.27s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.27s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (2.27s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (4.03s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (0.55s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (3.00s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.13s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.0 (3.63s)
Fetching https://github.com/swift-server/swift-service-lifecycle
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-collections
[1/2745] Fetching swift-service-lifecycle
[688/26328] Fetching swift-service-lifecycle, swift-collections
[799/31929] Fetching swift-service-lifecycle, swift-collections, swift-system
Fetched https://github.com/apple/swift-system from cache (1.12s)
[4632/26328] Fetching swift-service-lifecycle, swift-collections
Fetched https://github.com/swift-server/swift-service-lifecycle from cache (2.06s)
Fetched https://github.com/apple/swift-collections from cache (2.06s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.4.1 (2.73s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.52s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.27.0 (0.54s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.52s)
Computing version for https://github.com/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.11.0 (0.52s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6247] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.15s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (1.78s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.55s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.55s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.43.0 (0.53s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (0.55s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.0 (0.59s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
[1/7152] Fetching swift-certificates
[73/8955] Fetching swift-certificates, swift-asn1
[182/9998] Fetching swift-certificates, swift-asn1, swift-http-types
[3680/11240] Fetching swift-certificates, swift-asn1, swift-http-types, swift-http-structured-headers
Fetched https://github.com/apple/swift-certificates.git from cache (1.14s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.15s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.15s)
Fetched https://github.com/apple/swift-http-types.git from cache (1.15s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (1.69s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (0.68s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.61s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (0.62s)
Fetching https://github.com/apple/swift-crypto.git
[1/17436] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (3.16s)
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 (3.73s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (0.88s)
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.5.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.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.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.12.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.98.0
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.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.11.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
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.43.0
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.4.1
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/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.33.1
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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
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.34.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.3
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.4.1
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.27.0
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.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-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "async-http-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.25.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/async-http-client.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.81.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "SwiftAnthropic",
  "name" : "SwiftAnthropic",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftAnthropic",
      "targets" : [
        "SwiftAnthropic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftAnthropicTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAnthropicTests",
      "path" : "Tests/SwiftAnthropicTests",
      "sources" : [
        "SwiftAnthropicTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAnthropic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAnthropic",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAnthropic",
      "path" : "Sources/Anthropic",
      "product_dependencies" : [
        "AsyncHTTPClient",
        "NIOFoundationCompat"
      ],
      "product_memberships" : [
        "SwiftAnthropic"
      ],
      "sources" : [
        "AIProxy/AIProxyCertificatePinning.swift",
        "AIProxy/AIProxyService.swift",
        "AIProxy/Endpoint+AIProxy.swift",
        "Private/Network/AnthropicAPI.swift",
        "Private/Network/Endpoint.swift",
        "Private/Networking/AsyncHTTPClientAdapter.swift",
        "Private/Networking/HTTPClient.swift",
        "Private/Networking/URLSessionHTTPClientAdapter.swift",
        "Public/Model.swift",
        "Public/Parameters/Message/JSONSchema.swift",
        "Public/Parameters/Message/MessageParameter+Web.swift",
        "Public/Parameters/Message/MessageParameter.swift",
        "Public/Parameters/Message/MessageTokenCountParameter.swift",
        "Public/Parameters/Skill/SkillParameter.swift",
        "Public/Parameters/TextCompletion/TextCompletionParameter.swift",
        "Public/ResponseModels/ErrorResponse.swift",
        "Public/ResponseModels/Message/MessageInputTokens.swift",
        "Public/ResponseModels/Message/MessageResponse+DynamicContent.swift",
        "Public/ResponseModels/Message/MessageResponse.swift",
        "Public/ResponseModels/Message/MessageStreamResponse.swift",
        "Public/ResponseModels/Skill/SkillResponse.swift",
        "Public/ResponseModels/TextCompletion/TextCompletionResponse.swift",
        "Public/ResponseModels/TextCompletion/TextCompletionStreamResponse.swift",
        "Public/StreamHandler.swift",
        "Service/AnthropicService.swift",
        "Service/AnthropicServiceFactory.swift",
        "Service/DefaultAnthropicService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.