The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of CleverBird, reference 4.5.3 (d100fb), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 04:01:49 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 InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/btfranklin/CleverBird.git
Reference: 4.5.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/btfranklin/CleverBird
 * tag               4.5.3      -> FETCH_HEAD
HEAD is now at d100fb1 Add support for GPT4o Mini (#23)
Cloned https://github.com/btfranklin/CleverBird.git
Revision (git rev-parse @):
d100fb16d0887fa450ca87c627c05e385a82cc92
SUCCESS checkout https://github.com/btfranklin/CleverBird.git at 4.5.3
Fetching https://github.com/kean/Get
[1/2349] Fetching get
Fetched https://github.com/kean/Get from cache (1.13s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (1.71s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.1.6
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "cleverbird",
      "name": "CleverBird",
      "url": "https://github.com/btfranklin/CleverBird.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CleverBird",
      "dependencies": [
        {
          "identity": "get",
          "name": "Get",
          "url": "https://github.com/kean/Get",
          "version": "2.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Get",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/btfranklin/CleverBird.git
[12/1160] Fetching cleverbird
Fetched https://github.com/btfranklin/CleverBird.git from cache (1.10s)
Fetching https://github.com/kean/Get from cache
Fetched https://github.com/kean/Get from cache (0.48s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.2.1 (0.53s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.2.1
Creating working copy for https://github.com/btfranklin/CleverBird.git
Working copy of https://github.com/btfranklin/CleverBird.git resolved at 4.5.3 (d100fb1)
warning: '.resolve-product-dependencies': dependency 'cleverbird' is not used by any target
Found 1 product dependencies
  - Get
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/btfranklin/CleverBird.git
https://github.com/btfranklin/CleverBird.git
{
  "dependencies" : [
    {
      "identity" : "get",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.6",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kean/Get"
    }
  ],
  "manifest_display_name" : "CleverBird",
  "name" : "CleverBird",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "CleverBird",
      "targets" : [
        "CleverBird"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CleverBirdTests",
      "module_type" : "SwiftTarget",
      "name" : "CleverBirdTests",
      "path" : "Tests/CleverBirdTests",
      "sources" : [
        "MessageContentTests.swift",
        "MessageEncodingTests.swift",
        "OpenAIChatThreadTests.swift",
        "TokenEncoderTests.swift"
      ],
      "target_dependencies" : [
        "CleverBird"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CleverBird",
      "module_type" : "SwiftTarget",
      "name" : "CleverBird",
      "path" : "Sources/CleverBird",
      "product_dependencies" : [
        "Get"
      ],
      "product_memberships" : [
        "CleverBird"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/resources/gpt3-encoder.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/resources/gpt3-vocab.bpe",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CleverBirdError.swift",
        "OpenAIAPIConnection.swift",
        "chat/ChatCompletionRequestParameters.swift",
        "chat/ChatCompletionResponse.swift",
        "chat/ChatMessage.swift",
        "chat/ChatModel.swift",
        "chat/ChatThread+complete.swift",
        "chat/ChatThread+tokenCount.swift",
        "chat/ChatThread.swift",
        "chat/Function.swift",
        "chat/FunctionCall.swift",
        "chat/FunctionCallMode.swift",
        "chat/FunctionRegistry.swift",
        "chat/JSONType.swift",
        "chat/JSONValue.swift",
        "chat/MessageContent.swift",
        "chat/OpenAIAPIConnection+createChatCompletionRequest.swift",
        "chat/Penalty.swift",
        "chat/Percentage.swift",
        "chat/streaming/ChatStreamedResponseChunk.swift",
        "chat/streaming/ChatThread+withStreaming.swift",
        "chat/streaming/OpenAIAPIConnection+createChatCompletionAsyncByteStream.swift",
        "chat/streaming/StreamOptions.swift",
        "chat/streaming/StreamableChatThread+complete.swift",
        "chat/streaming/StreamableChatThread.swift",
        "embeddings/EmbeddedDocumentStore+persistence.swift",
        "embeddings/EmbeddedDocumentStore.SimilarityMetric.swift",
        "embeddings/EmbeddedDocumentStore.swift",
        "embeddings/EmbeddingModel.swift",
        "embeddings/EmbeddingRequestParameters.swift",
        "embeddings/EmbeddingResponse.swift",
        "embeddings/OpenAIAPIConnection+createEmbeddingRequest.swift",
        "embeddings/typealiases.swift",
        "tokenization/Pattern.swift",
        "tokenization/Token.swift",
        "tokenization/TokenEncoder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/5] Copying gpt3-encoder.json
[0/5] Write sources
[0/5] Copying gpt3-vocab.bpe
[1/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/11] Compiling Get Response.swift
[7/11] Compiling Get Request.swift
[8/11] Compiling Get APIClient.swift
[9/11] Emitting module Get
[10/11] Compiling Get APIClientDelegate.swift
[11/11] Compiling Get DataLoader.swift
[12/46] Emitting module CleverBird
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/Function.swift:6:23: warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct Function: Codable {
  5 |
  6 |     static public let EMPTY_PARAMETERS = Function.Parameters(
    |                       |- warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'EMPTY_PARAMETERS' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         properties: [:],
  8 |         required: []
    :
 24 |     }
 25 |
 26 |     public struct Parameters: Codable {
    |                   `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
 27 |
 28 |         /// Parameter names mapped to their descriptions
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/FunctionRegistry.swift:5:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | //  Created by B.T. Franklin on 6/16/23
 2 |
 3 | class FunctionRegistry {
   |       `- note: class 'FunctionRegistry' does not conform to the 'Sendable' protocol
 4 |
 5 |     static let shared: FunctionRegistry = FunctionRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var functionsByName: [String:Function] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/ChatStreamedResponseChunk.swift:26:24: warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension ChatStreamedResponseChunk {
26 |     static private var CHUNK_DECODER: JSONDecoder = {
   |                        |- warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'CHUNK_DECODER' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'CHUNK_DECODER' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |         let decoder = JSONDecoder()
28 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/TokenEncoder.swift:149:14: warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
147 |         case invalidBytePair(value: String)
148 |         case invalidEncoding(value: String)
149 |         case invalidToken(value: Token)
    |              `- warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
150 |         case invalidCharacter(value: Character)
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/Token.swift:1:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
 1 | public struct Token: Equatable, Hashable {
   |               `- note: consider making struct 'Token' conform to the 'Sendable' protocol
 2 |     public let value: Int
 3 |
[13/49] Compiling CleverBird FunctionRegistry.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/FunctionRegistry.swift:5:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | //  Created by B.T. Franklin on 6/16/23
 2 |
 3 | class FunctionRegistry {
   |       `- note: class 'FunctionRegistry' does not conform to the 'Sendable' protocol
 4 |
 5 |     static let shared: FunctionRegistry = FunctionRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var functionsByName: [String:Function] = [:]
[14/49] Compiling CleverBird JSONType.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/FunctionRegistry.swift:5:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | //  Created by B.T. Franklin on 6/16/23
 2 |
 3 | class FunctionRegistry {
   |       `- note: class 'FunctionRegistry' does not conform to the 'Sendable' protocol
 4 |
 5 |     static let shared: FunctionRegistry = FunctionRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var functionsByName: [String:Function] = [:]
[15/49] Compiling CleverBird JSONValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/FunctionRegistry.swift:5:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | //  Created by B.T. Franklin on 6/16/23
 2 |
 3 | class FunctionRegistry {
   |       `- note: class 'FunctionRegistry' does not conform to the 'Sendable' protocol
 4 |
 5 |     static let shared: FunctionRegistry = FunctionRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var functionsByName: [String:Function] = [:]
[16/49] Compiling CleverBird MessageContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/FunctionRegistry.swift:5:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | //  Created by B.T. Franklin on 6/16/23
 2 |
 3 | class FunctionRegistry {
   |       `- note: class 'FunctionRegistry' does not conform to the 'Sendable' protocol
 4 |
 5 |     static let shared: FunctionRegistry = FunctionRegistry()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FunctionRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     private var functionsByName: [String:Function] = [:]
[17/49] Compiling CleverBird OpenAIAPIConnection+createChatCompletionRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/ChatStreamedResponseChunk.swift:26:24: warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension ChatStreamedResponseChunk {
26 |     static private var CHUNK_DECODER: JSONDecoder = {
   |                        |- warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'CHUNK_DECODER' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'CHUNK_DECODER' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |         let decoder = JSONDecoder()
28 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
[18/49] Compiling CleverBird Penalty.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/ChatStreamedResponseChunk.swift:26:24: warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension ChatStreamedResponseChunk {
26 |     static private var CHUNK_DECODER: JSONDecoder = {
   |                        |- warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'CHUNK_DECODER' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'CHUNK_DECODER' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |         let decoder = JSONDecoder()
28 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
[19/49] Compiling CleverBird Percentage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/ChatStreamedResponseChunk.swift:26:24: warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension ChatStreamedResponseChunk {
26 |     static private var CHUNK_DECODER: JSONDecoder = {
   |                        |- warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'CHUNK_DECODER' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'CHUNK_DECODER' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |         let decoder = JSONDecoder()
28 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
[20/49] Compiling CleverBird ChatStreamedResponseChunk.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/ChatStreamedResponseChunk.swift:26:24: warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | extension ChatStreamedResponseChunk {
26 |     static private var CHUNK_DECODER: JSONDecoder = {
   |                        |- warning: static property 'CHUNK_DECODER' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'CHUNK_DECODER' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'CHUNK_DECODER' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |         let decoder = JSONDecoder()
28 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
[21/49] Compiling CleverBird ChatThread.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/Function.swift:6:23: warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct Function: Codable {
  5 |
  6 |     static public let EMPTY_PARAMETERS = Function.Parameters(
    |                       |- warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'EMPTY_PARAMETERS' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         properties: [:],
  8 |         required: []
    :
 24 |     }
 25 |
 26 |     public struct Parameters: Codable {
    |                   `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
 27 |
 28 |         /// Parameter names mapped to their descriptions
[22/49] Compiling CleverBird Function.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/Function.swift:6:23: warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct Function: Codable {
  5 |
  6 |     static public let EMPTY_PARAMETERS = Function.Parameters(
    |                       |- warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'EMPTY_PARAMETERS' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         properties: [:],
  8 |         required: []
    :
 24 |     }
 25 |
 26 |     public struct Parameters: Codable {
    |                   `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
 27 |
 28 |         /// Parameter names mapped to their descriptions
[23/49] Compiling CleverBird FunctionCall.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/Function.swift:6:23: warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct Function: Codable {
  5 |
  6 |     static public let EMPTY_PARAMETERS = Function.Parameters(
    |                       |- warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'EMPTY_PARAMETERS' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         properties: [:],
  8 |         required: []
    :
 24 |     }
 25 |
 26 |     public struct Parameters: Codable {
    |                   `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
 27 |
 28 |         /// Parameter names mapped to their descriptions
[24/49] Compiling CleverBird FunctionCallMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/Function.swift:6:23: warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct Function: Codable {
  5 |
  6 |     static public let EMPTY_PARAMETERS = Function.Parameters(
    |                       |- warning: static property 'EMPTY_PARAMETERS' is not concurrency-safe because non-'Sendable' type 'Function.Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'EMPTY_PARAMETERS' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |         properties: [:],
  8 |         required: []
    :
 24 |     }
 25 |
 26 |     public struct Parameters: Codable {
    |                   `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
 27 |
 28 |         /// Parameter names mapped to their descriptions
[25/49] Compiling CleverBird OpenAIAPIConnection+createEmbeddingRequest.swift
[26/49] Compiling CleverBird typealiases.swift
[27/49] Compiling CleverBird Pattern.swift
[28/49] Compiling CleverBird CleverBirdError.swift
[29/49] Compiling CleverBird OpenAIAPIConnection.swift
[30/49] Compiling CleverBird ChatCompletionRequestParameters.swift
[31/49] Compiling CleverBird ChatCompletionResponse.swift
[32/49] Compiling CleverBird ChatThread+withStreaming.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:44:45: 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
 42 |                 return
 43 |             }
 44 |             strongSelf.streamingTask = 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
 45 |
 46 |                 var responseMessageId: String?
    :
 58 |                                                                   id: responseMessageId)
 59 |                             streamedMessage.id = responseMessageId ?? "unspecified"
 60 |                             addStreamedMessageToThread(streamedMessage)
    |                             `- note: closure captures 'addStreamedMessageToThread' which is accessible to code in the current task
 61 |                         } catch {
 62 |                             print("error while creating streamed message: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:52:25: warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 defer {
 51 |                     DispatchQueue.main.async {
 52 |                         strongSelf.streamingTask = nil
    |                         |- warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'strongSelf' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     if let responseMessageRole, let responseMessageContent {
[33/49] Compiling CleverBird OpenAIAPIConnection+createChatCompletionAsyncByteStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:44:45: 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
 42 |                 return
 43 |             }
 44 |             strongSelf.streamingTask = 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
 45 |
 46 |                 var responseMessageId: String?
    :
 58 |                                                                   id: responseMessageId)
 59 |                             streamedMessage.id = responseMessageId ?? "unspecified"
 60 |                             addStreamedMessageToThread(streamedMessage)
    |                             `- note: closure captures 'addStreamedMessageToThread' which is accessible to code in the current task
 61 |                         } catch {
 62 |                             print("error while creating streamed message: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:52:25: warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 defer {
 51 |                     DispatchQueue.main.async {
 52 |                         strongSelf.streamingTask = nil
    |                         |- warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'strongSelf' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     if let responseMessageRole, let responseMessageContent {
[34/49] Compiling CleverBird StreamOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:44:45: 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
 42 |                 return
 43 |             }
 44 |             strongSelf.streamingTask = 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
 45 |
 46 |                 var responseMessageId: String?
    :
 58 |                                                                   id: responseMessageId)
 59 |                             streamedMessage.id = responseMessageId ?? "unspecified"
 60 |                             addStreamedMessageToThread(streamedMessage)
    |                             `- note: closure captures 'addStreamedMessageToThread' which is accessible to code in the current task
 61 |                         } catch {
 62 |                             print("error while creating streamed message: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:52:25: warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 defer {
 51 |                     DispatchQueue.main.async {
 52 |                         strongSelf.streamingTask = nil
    |                         |- warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'strongSelf' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     if let responseMessageRole, let responseMessageContent {
[35/49] Compiling CleverBird StreamableChatThread+complete.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:44:45: 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
 42 |                 return
 43 |             }
 44 |             strongSelf.streamingTask = 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
 45 |
 46 |                 var responseMessageId: String?
    :
 58 |                                                                   id: responseMessageId)
 59 |                             streamedMessage.id = responseMessageId ?? "unspecified"
 60 |                             addStreamedMessageToThread(streamedMessage)
    |                             `- note: closure captures 'addStreamedMessageToThread' which is accessible to code in the current task
 61 |                         } catch {
 62 |                             print("error while creating streamed message: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/streaming/StreamableChatThread+complete.swift:52:25: warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
 50 |                 defer {
 51 |                     DispatchQueue.main.async {
 52 |                         strongSelf.streamingTask = nil
    |                         |- warning: sending 'strongSelf' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'strongSelf' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 53 |                     }
 54 |                     if let responseMessageRole, let responseMessageContent {
[36/49] Compiling CleverBird ChatMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatThread+complete.swift:62:56: warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
60 |
61 |             let request = try await connection.createChatCompletionRequest(for: requestBody)
62 |             let response = try await connection.client.send(request)
   |                                                        `- warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
63 |             let completion = response.value
64 |             guard let firstChoiceMessage = completion.choices.first?.message else {
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatCompletionResponse.swift:11:8: note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
 9 | }
10 |
11 | struct ChatCompletionResponse: Codable, Identifiable {
   |        `- note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
12 |
13 |     struct Choice: Codable {
[37/49] Compiling CleverBird ChatModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatThread+complete.swift:62:56: warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
60 |
61 |             let request = try await connection.createChatCompletionRequest(for: requestBody)
62 |             let response = try await connection.client.send(request)
   |                                                        `- warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
63 |             let completion = response.value
64 |             guard let firstChoiceMessage = completion.choices.first?.message else {
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatCompletionResponse.swift:11:8: note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
 9 | }
10 |
11 | struct ChatCompletionResponse: Codable, Identifiable {
   |        `- note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
12 |
13 |     struct Choice: Codable {
[38/49] Compiling CleverBird ChatThread+complete.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatThread+complete.swift:62:56: warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
60 |
61 |             let request = try await connection.createChatCompletionRequest(for: requestBody)
62 |             let response = try await connection.client.send(request)
   |                                                        `- warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
63 |             let completion = response.value
64 |             guard let firstChoiceMessage = completion.choices.first?.message else {
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatCompletionResponse.swift:11:8: note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
 9 | }
10 |
11 | struct ChatCompletionResponse: Codable, Identifiable {
   |        `- note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
12 |
13 |     struct Choice: Codable {
[39/49] Compiling CleverBird ChatThread+tokenCount.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatThread+complete.swift:62:56: warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
60 |
61 |             let request = try await connection.createChatCompletionRequest(for: requestBody)
62 |             let response = try await connection.client.send(request)
   |                                                        `- warning: non-sendable result type 'Response<ChatCompletionResponse>' cannot be sent from actor-isolated context in call to instance method 'send(_:delegate:configure:)'; this is an error in the Swift 6 language mode
63 |             let completion = response.value
64 |             guard let firstChoiceMessage = completion.choices.first?.message else {
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/chat/ChatCompletionResponse.swift:11:8: note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
 9 | }
10 |
11 | struct ChatCompletionResponse: Codable, Identifiable {
   |        `- note: consider making struct 'ChatCompletionResponse' conform to the 'Sendable' protocol
12 |
13 |     struct Choice: Codable {
[40/49] Compiling CleverBird Token.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/TokenEncoder.swift:149:14: warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
147 |         case invalidBytePair(value: String)
148 |         case invalidEncoding(value: String)
149 |         case invalidToken(value: Token)
    |              `- warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
150 |         case invalidCharacter(value: Character)
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/Token.swift:1:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
 1 | public struct Token: Equatable, Hashable {
   |               `- note: consider making struct 'Token' conform to the 'Sendable' protocol
 2 |     public let value: Int
 3 |
[41/49] Compiling CleverBird TokenEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/TokenEncoder.swift:149:14: warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
147 |         case invalidBytePair(value: String)
148 |         case invalidEncoding(value: String)
149 |         case invalidToken(value: Token)
    |              `- warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
150 |         case invalidCharacter(value: Character)
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/Token.swift:1:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
 1 | public struct Token: Equatable, Hashable {
   |               `- note: consider making struct 'Token' conform to the 'Sendable' protocol
 2 |     public let value: Int
 3 |
[42/49] Compiling CleverBird resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/TokenEncoder.swift:149:14: warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
147 |         case invalidBytePair(value: String)
148 |         case invalidEncoding(value: String)
149 |         case invalidToken(value: Token)
    |              `- warning: associated value 'invalidToken(value:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
150 |         case invalidCharacter(value: Character)
151 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/Token.swift:1:15: note: consider making struct 'Token' conform to the 'Sendable' protocol
 1 | public struct Token: Equatable, Hashable {
   |               `- note: consider making struct 'Token' conform to the 'Sendable' protocol
 2 |     public let value: Int
 3 |
[43/49] Compiling CleverBird EmbeddingModel.swift
[44/49] Compiling CleverBird EmbeddingRequestParameters.swift
[45/49] Compiling CleverBird EmbeddingResponse.swift
[46/49] Compiling CleverBird StreamableChatThread.swift
[47/49] Compiling CleverBird EmbeddedDocumentStore+persistence.swift
[48/49] Compiling CleverBird EmbeddedDocumentStore.SimilarityMetric.swift
[49/49] Compiling CleverBird EmbeddedDocumentStore.swift
Build complete! (9.95s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "get",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.6",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kean/Get"
    }
  ],
  "manifest_display_name" : "CleverBird",
  "name" : "CleverBird",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "CleverBird",
      "targets" : [
        "CleverBird"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CleverBirdTests",
      "module_type" : "SwiftTarget",
      "name" : "CleverBirdTests",
      "path" : "Tests/CleverBirdTests",
      "sources" : [
        "MessageContentTests.swift",
        "MessageEncodingTests.swift",
        "OpenAIChatThreadTests.swift",
        "TokenEncoderTests.swift"
      ],
      "target_dependencies" : [
        "CleverBird"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CleverBird",
      "module_type" : "SwiftTarget",
      "name" : "CleverBird",
      "path" : "Sources/CleverBird",
      "product_dependencies" : [
        "Get"
      ],
      "product_memberships" : [
        "CleverBird"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/resources/gpt3-encoder.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/CleverBird/tokenization/resources/gpt3-vocab.bpe",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CleverBirdError.swift",
        "OpenAIAPIConnection.swift",
        "chat/ChatCompletionRequestParameters.swift",
        "chat/ChatCompletionResponse.swift",
        "chat/ChatMessage.swift",
        "chat/ChatModel.swift",
        "chat/ChatThread+complete.swift",
        "chat/ChatThread+tokenCount.swift",
        "chat/ChatThread.swift",
        "chat/Function.swift",
        "chat/FunctionCall.swift",
        "chat/FunctionCallMode.swift",
        "chat/FunctionRegistry.swift",
        "chat/JSONType.swift",
        "chat/JSONValue.swift",
        "chat/MessageContent.swift",
        "chat/OpenAIAPIConnection+createChatCompletionRequest.swift",
        "chat/Penalty.swift",
        "chat/Percentage.swift",
        "chat/streaming/ChatStreamedResponseChunk.swift",
        "chat/streaming/ChatThread+withStreaming.swift",
        "chat/streaming/OpenAIAPIConnection+createChatCompletionAsyncByteStream.swift",
        "chat/streaming/StreamOptions.swift",
        "chat/streaming/StreamableChatThread+complete.swift",
        "chat/streaming/StreamableChatThread.swift",
        "embeddings/EmbeddedDocumentStore+persistence.swift",
        "embeddings/EmbeddedDocumentStore.SimilarityMetric.swift",
        "embeddings/EmbeddedDocumentStore.swift",
        "embeddings/EmbeddingModel.swift",
        "embeddings/EmbeddingRequestParameters.swift",
        "embeddings/EmbeddingResponse.swift",
        "embeddings/OpenAIAPIConnection+createEmbeddingRequest.swift",
        "embeddings/typealiases.swift",
        "tokenization/Pattern.swift",
        "tokenization/Token.swift",
        "tokenization/TokenEncoder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.