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 LLMChatOpenAI, reference main (24fdaf), with Swift 6.0 for macOS (SPM) on 16 Oct 2024 02:45:52 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kevinhermawan/swift-llm-chat-openai.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kevinhermawan/swift-llm-chat-openai
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 24fdaf3 docs: adds more information in advanced usage (#8)
Cloned https://github.com/kevinhermawan/swift-llm-chat-openai.git
Revision (git rev-parse @):
24fdaf35e802dea7507916ead8381eea8613c1d5
SUCCESS checkout https://github.com/kevinhermawan/swift-llm-chat-openai.git at main
Fetching https://github.com/apple/swift-docc-plugin.git
Fetching https://github.com/kevinhermawan/swift-json-schema.git
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/88] Fetching swift-json-schema
[89/2126] Fetching swift-json-schema, swift-docc-plugin
[314/5269] Fetching swift-json-schema, swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.26s)
[353/2126] Fetching swift-json-schema, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin.git from cache (1.48s)
Fetched https://github.com/kevinhermawan/swift-json-schema.git from cache (1.48s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.3 (3.27s)
Computing version for https://github.com/kevinhermawan/swift-json-schema.git
Computed https://github.com/kevinhermawan/swift-json-schema.git at 1.0.3 (0.54s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.73s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/kevinhermawan/swift-json-schema.git
Working copy of https://github.com/kevinhermawan/swift-json-schema.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.3
========================================
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": "swift-llm-chat-openai",
      "name": "LLMChatOpenAI",
      "url": "https://github.com/kevinhermawan/swift-llm-chat-openai.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-llm-chat-openai",
      "dependencies": [
        {
          "identity": "swift-json-schema",
          "name": "JSONSchema",
          "url": "https://github.com/kevinhermawan/swift-json-schema.git",
          "version": "1.0.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-json-schema",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/kevinhermawan/swift-llm-chat-openai.git
[1/160] Fetching swift-llm-chat-openai
Fetched https://github.com/kevinhermawan/swift-llm-chat-openai.git from cache (0.74s)
Fetching https://github.com/kevinhermawan/swift-json-schema.git from cache
Fetched https://github.com/kevinhermawan/swift-json-schema.git from cache (0.45s)
Computing version for https://github.com/kevinhermawan/swift-json-schema.git
Computed https://github.com/kevinhermawan/swift-json-schema.git at 1.0.3 (0.02s)
Creating working copy for https://github.com/kevinhermawan/swift-json-schema.git
Working copy of https://github.com/kevinhermawan/swift-json-schema.git resolved at 1.0.3
Creating working copy for https://github.com/kevinhermawan/swift-llm-chat-openai.git
Working copy of https://github.com/kevinhermawan/swift-llm-chat-openai.git resolved at main (24fdaf3)
warning: '.resolve-product-dependencies': dependency 'swift-llm-chat-openai' is not used by any target
Found 1 product dependencies
  - JSONSchema
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kevinhermawan/swift-llm-chat-openai.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/5] Write sources
[4/5] Write swift-version--4A847ED0836F2485.txt
[6/15] Compiling JSONSchema JSONSchema+String.swift
[7/15] Compiling JSONSchema JSONSchema.swift
[8/15] Compiling JSONSchema JSONSchema+Object.swift
[9/15] Compiling JSONSchema JSONSchema+Null.swift
[10/15] Compiling JSONSchema JSONSchema+Number.swift
[11/15] Compiling JSONSchema JSONSchema+Integer.swift
[12/15] Emitting module JSONSchema
[13/15] Compiling JSONSchema JSONSchema+Array.swift
[14/15] Compiling JSONSchema JSONSchema+Enum.swift
[15/15] Compiling JSONSchema JSONSchema+Boolean.swift
[16/21] Compiling LLMChatOpenAI ChatMessage.swift
[17/21] Compiling LLMChatOpenAI LLMChatOpenAI.swift
/Users/admin/builder/spi-builder-workspace/Sources/LLMChatOpenAI/LLMChatOpenAI.swift:60:13: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 58 |     public func stream(model: String, messages: [ChatMessage], options: ChatOptions? = nil) -> AsyncThrowingStream<ChatCompletionChunk, Error> {
 59 |         AsyncThrowingStream { continuation in
 60 |             Task {
    |             `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 61 |                 do {
 62 |                     let body = RequestBody(stream: true, model: model, messages: messages, options: options)
[18/21] Compiling LLMChatOpenAI ChatCompletionChunk.swift
[19/21] Compiling LLMChatOpenAI ChatOptions.swift
[20/21] Compiling LLMChatOpenAI ChatCompletion.swift
[21/21] Emitting module LLMChatOpenAI
Build complete! (30.94s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-json-schema",
      "requirement" : {
        "exact" : [
          "1.0.3"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kevinhermawan/swift-json-schema.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin.git"
    }
  ],
  "manifest_display_name" : "LLMChatOpenAI",
  "name" : "LLMChatOpenAI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "LLMChatOpenAI",
      "targets" : [
        "LLMChatOpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LLMChatOpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "LLMChatOpenAITests",
      "path" : "Tests/LLMChatOpenAITests",
      "sources" : [
        "ChatCompletionTests.swift",
        "ResponseFormatTests.swift",
        "ToolUseTests.swift",
        "Utils/URLProtocolMock.swift",
        "VisionTests.swift"
      ],
      "target_dependencies" : [
        "LLMChatOpenAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LLMChatOpenAI",
      "module_type" : "SwiftTarget",
      "name" : "LLMChatOpenAI",
      "path" : "Sources/LLMChatOpenAI",
      "product_dependencies" : [
        "JSONSchema"
      ],
      "product_memberships" : [
        "LLMChatOpenAI"
      ],
      "sources" : [
        "ChatCompletion.swift",
        "ChatCompletionChunk.swift",
        "ChatMessage.swift",
        "ChatOptions.swift",
        "LLMChatOpenAI.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.