Build Information
Successful build of SwiftAnthropic, reference 2.2.2 (b7d030), with Swift 6.2 for macOS (SPM) on 21 Apr 2026 05:47:33 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jamesrochabrun/SwiftAnthropic.git
Reference: 2.2.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jamesrochabrun/SwiftAnthropic
* tag 2.2.2 -> FETCH_HEAD
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 2.2.2
========================================
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 TextCompletionResponse.swift
[4/28] Compiling SwiftAnthropic TextCompletionStreamResponse.swift
[5/28] Compiling SwiftAnthropic AnthropicAPI.swift
[6/28] Compiling SwiftAnthropic Endpoint.swift
[7/28] Compiling SwiftAnthropic AsyncHTTPClientAdapter.swift
[8/30] Compiling SwiftAnthropic ErrorResponse.swift
[9/30] Compiling SwiftAnthropic MessageInputTokens.swift
[10/30] Compiling SwiftAnthropic MessageResponse+DynamicContent.swift
[11/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
[12/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
[13/30] Compiling SwiftAnthropic MessageTokenCountParameter.swift
[14/30] Compiling SwiftAnthropic SkillParameter.swift
[15/30] Compiling SwiftAnthropic TextCompletionParameter.swift
[16/30] Compiling SwiftAnthropic JSONSchema.swift
[17/30] Compiling SwiftAnthropic MessageParameter+Web.swift
[18/30] Compiling SwiftAnthropic MessageParameter.swift
[19/30] Compiling SwiftAnthropic HTTPClient.swift
[20/30] Compiling SwiftAnthropic URLSessionHTTPClientAdapter.swift
[21/30] Compiling SwiftAnthropic Model.swift
[22/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"
[23/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"
[24/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"
[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! (55.10s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/swift-server/async-http-client.git
[1/15703] Fetching async-http-client
[1729/98867] Fetching async-http-client, swift-nio
Fetched https://github.com/swift-server/async-http-client.git from cache (5.52s)
Fetched https://github.com/apple/swift-nio.git from cache (5.52s)
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.16s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-http2.git
[1/1820] Fetching swift-atomics
[74/4663] Fetching swift-atomics, swift-nio-transport-services
[217/5939] Fetching swift-atomics, swift-nio-transport-services, swift-service-context
[434/11997] Fetching swift-atomics, swift-nio-transport-services, swift-service-context, swift-algorithms
[616/15219] Fetching swift-atomics, swift-nio-transport-services, swift-service-context, swift-algorithms, swift-configuration
[2960/27327] Fetching swift-atomics, swift-nio-transport-services, swift-service-context, swift-algorithms, swift-configuration, swift-nio-http2
[2961/33962] Fetching swift-atomics, swift-nio-transport-services, swift-service-context, swift-algorithms, swift-configuration, swift-nio-http2, swift-log
Fetched https://github.com/apple/swift-service-context.git from cache (0.89s)
Fetching https://github.com/apple/swift-nio-ssl.git
[6605/32686] Fetching swift-atomics, swift-nio-transport-services, swift-algorithms, swift-configuration, swift-nio-http2, swift-log
Fetched https://github.com/apple/swift-configuration.git from cache (1.12s)
[15094/29464] Fetching swift-atomics, swift-nio-transport-services, swift-algorithms, swift-nio-http2, swift-log
Fetching https://github.com/apple/swift-nio-extras.git
Fetched https://github.com/apple/swift-log.git from cache (1.61s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.61s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.61s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.61s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.61s)
Fetching https://github.com/apple/swift-distributed-tracing.git
[1/15419] Fetching swift-nio-ssl
[1389/21929] Fetching swift-nio-ssl, swift-nio-extras
[7088/27693] Fetching swift-nio-ssl, swift-nio-extras, swift-distributed-tracing
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.18s)
[11177/21183] Fetching swift-nio-ssl, swift-distributed-tracing
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.06s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.91s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (3.39s)
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.54s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.78s)
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.42s)
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/swift-server/swift-service-lifecycle
[1/2745] Fetching swift-service-lifecycle
[715/8346] Fetching swift-service-lifecycle, swift-system
[1623/31929] Fetching swift-service-lifecycle, swift-system, swift-collections
Fetched https://github.com/apple/swift-collections from cache (2.30s)
Fetched https://github.com/apple/swift-system from cache (2.30s)
Fetched https://github.com/swift-server/swift-service-lifecycle from cache (2.31s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.4.1 (3.00s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.57s)
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.57s)
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/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.11.0 (0.57s)
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.04s)
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.73s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.59s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.59s)
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.56s)
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.59s)
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.61s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-asn1.git
[1/1242] Fetching swift-http-structured-headers
[51/2285] Fetching swift-http-structured-headers, swift-http-types
[988/9437] Fetching swift-http-structured-headers, swift-http-types, swift-certificates
Fetched https://github.com/apple/swift-http-types.git from cache (0.77s)
[1165/8394] Fetching swift-http-structured-headers, swift-certificates
[1458/10197] Fetching swift-http-structured-headers, swift-certificates, swift-asn1
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.21s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.21s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.21s)
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.78s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (0.74s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.69s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (0.72s)
Fetching https://github.com/apple/swift-crypto.git
[1/17436] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.09s)
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.65s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (0.86s)
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-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-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.4.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.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
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-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-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-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-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-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-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
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-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-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/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-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
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-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
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.