Build Information
Successful build of SwiftAnthropic, reference main (b7d030), with Swift 6.1 for macOS (SPM) on 21 Apr 2026 05:39:35 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild 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.1
Building package at path: $PWD
https://github.com/jamesrochabrun/SwiftAnthropic.git
https://github.com/jamesrochabrun/SwiftAnthropic.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/28] Emitting module SwiftAnthropic
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/AIProxy/AIProxyCertificatePinning.swift:101:13: warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | // MARK: - Private
101 | private var publicKeysAsData: [Data] = {
| |- warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'publicKeysAsData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'publicKeysAsData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | let newVal = publicKeysAsHex.map { publicKeyAsHex in
103 | let keyData = Data(publicKeyAsHex)
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:85:15: warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Common US locations
85 | static let sanFrancisco = Self(
| |- warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sanFrancisco' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | type: .approximate,
87 | city: "San Francisco",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:93:15: warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
91 | )
92 |
93 | static let newYork = Self(
| |- warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'newYork' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | type: .approximate,
95 | city: "New York",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:101:15: warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
99 | )
100 |
101 | static let chicago = Self(
| |- warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chicago' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | type: .approximate,
103 | city: "Chicago",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/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])
[4/30] Compiling SwiftAnthropic AnthropicServiceFactory.swift
[5/30] Compiling SwiftAnthropic DefaultAnthropicService.swift
[6/30] Compiling SwiftAnthropic JSONSchema.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:85:15: warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Common US locations
85 | static let sanFrancisco = Self(
| |- warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sanFrancisco' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | type: .approximate,
87 | city: "San Francisco",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:93:15: warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
91 | )
92 |
93 | static let newYork = Self(
| |- warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'newYork' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | type: .approximate,
95 | city: "New York",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:101:15: warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
99 | )
100 |
101 | static let chicago = Self(
| |- warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chicago' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | type: .approximate,
103 | city: "Chicago",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
[7/30] Compiling SwiftAnthropic MessageParameter+Web.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:85:15: warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Common US locations
85 | static let sanFrancisco = Self(
| |- warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sanFrancisco' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | type: .approximate,
87 | city: "San Francisco",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:93:15: warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
91 | )
92 |
93 | static let newYork = Self(
| |- warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'newYork' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | type: .approximate,
95 | city: "New York",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:101:15: warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
99 | )
100 |
101 | static let chicago = Self(
| |- warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chicago' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | type: .approximate,
103 | city: "Chicago",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
[8/30] Compiling SwiftAnthropic MessageParameter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:85:15: warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
83 |
84 | /// Common US locations
85 | static let sanFrancisco = Self(
| |- warning: static property 'sanFrancisco' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sanFrancisco' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | type: .approximate,
87 | city: "San Francisco",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:93:15: warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
91 | )
92 |
93 | static let newYork = Self(
| |- warning: static property 'newYork' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'newYork' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | type: .approximate,
95 | city: "New York",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter+Web.swift:101:15: warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
99 | )
100 |
101 | static let chicago = Self(
| |- warning: static property 'chicago' is not concurrency-safe because non-'Sendable' type 'MessageParameter.UserLocation' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'chicago' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | type: .approximate,
103 | city: "Chicago",
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Public/Parameters/Message/MessageParameter.swift:650:18: note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
648 |
649 | /// User location for search localization
650 | public struct UserLocation: Codable, Equatable {
| `- note: consider making struct 'UserLocation' conform to the 'Sendable' protocol
651 | public let type: LocationType
652 | public let city: String?
[9/30] Compiling SwiftAnthropic HTTPClient.swift
[10/30] Compiling SwiftAnthropic URLSessionHTTPClientAdapter.swift
[11/30] Compiling SwiftAnthropic Model.swift
[12/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
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Service/AnthropicService.swift:356:23: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
354 | }
355 | return AsyncThrowingStream { continuation in
356 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
357 | do {
358 | guard case .lines(let linesStream) = byteStream else {
| `- note: closure captures non-Sendable 'byteStream'
359 | throw APIError.invalidData
360 | }
:
369 | #endif
370 | do {
371 | let decoded = try self.decoder.decode(T.self, from: data)
| `- note: closure captures non-Sendable 'self'
372 | continuation.yield(decoded)
373 | } catch let DecodingError.keyNotFound(key, context) {
[13/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
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/Service/AnthropicService.swift:356:23: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
354 | }
355 | return AsyncThrowingStream { continuation in
356 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
357 | do {
358 | guard case .lines(let linesStream) = byteStream else {
| `- note: closure captures non-Sendable 'byteStream'
359 | throw APIError.invalidData
360 | }
:
369 | #endif
370 | do {
371 | let decoded = try self.decoder.decode(T.self, from: data)
| `- note: closure captures non-Sendable 'self'
372 | continuation.yield(decoded)
373 | } catch let DecodingError.keyNotFound(key, context) {
[14/30] Compiling SwiftAnthropic AnthropicAPI.swift
[15/30] Compiling SwiftAnthropic Endpoint.swift
[16/30] Compiling SwiftAnthropic AsyncHTTPClientAdapter.swift
[17/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
616 | }
617 |
618 | if let encryptedContent = self.encryptedContent {
| `- warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test
619 | // Just indicate presence rather than showing the whole encrypted content
620 | result += " Encrypted Content: [Present]\n"
[18/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
616 | }
617 |
618 | if let encryptedContent = self.encryptedContent {
| `- warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test
619 | // Just indicate presence rather than showing the whole encrypted content
620 | result += " Encrypted Content: [Present]\n"
[19/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
616 | }
617 |
618 | if let encryptedContent = self.encryptedContent {
| `- warning: value 'encryptedContent' was defined but never used; consider replacing with boolean test
619 | // Just indicate presence rather than showing the whole encrypted content
620 | result += " Encrypted Content: [Present]\n"
[20/30] Compiling SwiftAnthropic MessageTokenCountParameter.swift
[21/30] Compiling SwiftAnthropic SkillParameter.swift
[22/30] Compiling SwiftAnthropic TextCompletionParameter.swift
[23/30] Compiling SwiftAnthropic TextCompletionResponse.swift
[24/30] Compiling SwiftAnthropic TextCompletionStreamResponse.swift
[25/30] Compiling SwiftAnthropic ErrorResponse.swift
[26/30] Compiling SwiftAnthropic MessageInputTokens.swift
[27/30] Compiling SwiftAnthropic MessageResponse+DynamicContent.swift
[28/30] Compiling SwiftAnthropic AIProxyCertificatePinning.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/AIProxy/AIProxyCertificatePinning.swift:101:13: warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | // MARK: - Private
101 | private var publicKeysAsData: [Data] = {
| |- warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'publicKeysAsData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'publicKeysAsData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | let newVal = publicKeysAsHex.map { publicKeyAsHex in
103 | let keyData = Data(publicKeyAsHex)
[29/30] Compiling SwiftAnthropic AIProxyService.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/AIProxy/AIProxyCertificatePinning.swift:101:13: warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | // MARK: - Private
101 | private var publicKeysAsData: [Data] = {
| |- warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'publicKeysAsData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'publicKeysAsData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | let newVal = publicKeysAsHex.map { publicKeyAsHex in
103 | let keyData = Data(publicKeyAsHex)
[30/30] Compiling SwiftAnthropic Endpoint+AIProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Anthropic/AIProxy/AIProxyCertificatePinning.swift:101:13: warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | // MARK: - Private
101 | private var publicKeysAsData: [Data] = {
| |- warning: var 'publicKeysAsData' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'publicKeysAsData' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'publicKeysAsData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | let newVal = publicKeysAsHex.map { publicKeyAsHex in
103 | let keyData = Data(publicKeyAsHex)
Build complete! (48.33s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/swift-server/async-http-client.git from cache
Fetched https://github.com/swift-server/async-http-client.git from cache (2.58s)
Fetched https://github.com/apple/swift-nio.git from cache (2.67s)
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 (3.24s)
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-nio-transport-services.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio-http2.git from cache
Fetching https://github.com/apple/swift-algorithms.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-nio-extras.git from cache
[1/5764] Fetching swift-distributed-tracing
Fetched https://github.com/apple/swift-atomics.git from cache (1.01s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.03s)
Fetching https://github.com/apple/swift-nio-ssl.git from cache
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.04s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.05s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.08s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.08s)
Fetched https://github.com/apple/swift-log.git from cache (1.10s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.00s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (2.54s)
Fetching https://github.com/apple/swift-service-context.git
[1/1276] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.90s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (4.73s)
Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (1.26s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (1.74s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.46s)
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.47s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.45s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.47s)
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.48s)
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.51s)
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.54s)
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-http-types.git from cache
Fetching https://github.com/apple/swift-http-structured-headers.git from cache
Fetching https://github.com/apple/swift-asn1.git from cache
[1/2745] Fetching swift-service-lifecycle
[84/9897] Fetching swift-service-lifecycle, swift-certificates
[6036/16144] Fetching swift-service-lifecycle, swift-certificates, swift-async-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.08s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.42s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.42s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.42s)
Fetched https://github.com/apple/swift-http-types.git from cache (1.43s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.43s)
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.91s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.46s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (0.51s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (1.52s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (2.19s)
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.95s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (3.45s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (0.60s)
Fetching https://github.com/apple/swift-crypto.git from cache
Fetched https://github.com/apple/swift-crypto.git from cache (1.53s)
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.02s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.51s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.59s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (1.12s)
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-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-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-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-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-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-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.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/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/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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.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-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
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/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.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-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-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-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.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.