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 llama.swift, reference 1.1.1 (74eb46), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 03:39:57 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexrozanski/llama.swift.git
Reference: 1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexrozanski/llama.swift
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at 74eb467 fix error handling in LlamaEvent
Cloned https://github.com/alexrozanski/llama.swift.git
Revision (git rev-parse @):
74eb4678ad42fa464208a1a037285a56407e9b70
SUCCESS checkout https://github.com/alexrozanski/llama.swift.git at 1.1.1
========================================
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": "llama.swift",
      "name": "llama.swift",
      "url": "https://github.com/alexrozanski/llama.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/llama.swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/alexrozanski/llama.swift.git
[1/5186] Fetching llama.swift
Fetched https://github.com/alexrozanski/llama.swift.git from cache (1.39s)
Creating working copy for https://github.com/alexrozanski/llama.swift.git
Working copy of https://github.com/alexrozanski/llama.swift.git resolved at 1.1.1 (74eb467)
warning: '.resolve-product-dependencies': dependency 'llama.swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alexrozanski/llama.swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/9] Write sources
[1/9] Write swift-version--7754E27361AE5C74.txt
[2/9] Compiling ggml.c
[3/9] Compiling LlamaEvent.mm
[4/9] Compiling LlamaRunnerBridge.mm
[5/9] Compiling llamaObjCxx LlamaError.m
[6/9] Compiling LlamaRunnerBridgeConfig.m
[7/9] Compiling LlamaPredictOperation.mm
[8/9] Compiling utils.cpp
[10/11] Compiling llama LlamaRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/llama/LlamaRunner.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LlamaRunner.Config' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | public class LlamaRunner {
 12 |   public struct Config {
    |                 `- note: consider making struct 'Config' conform to the 'Sendable' protocol
 13 |     public let numThreads: UInt
 14 |     public let numTokens: UInt
 15 |     public let reversePrompt: String?
 16 |
 17 |     public static let `default` = Config(numThreads: 8, numTokens: 512, reversePrompt: nil)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LlamaRunner.Config' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     public init(numThreads: UInt, numTokens: UInt, reversePrompt: String? = nil) {
[11/11] Emitting module llama
/Users/admin/builder/spi-builder-workspace/Sources/llama/LlamaRunner.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LlamaRunner.Config' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | public class LlamaRunner {
 12 |   public struct Config {
    |                 `- note: consider making struct 'Config' conform to the 'Sendable' protocol
 13 |     public let numThreads: UInt
 14 |     public let numTokens: UInt
 15 |     public let reversePrompt: String?
 16 |
 17 |     public static let `default` = Config(numThreads: 8, numTokens: 512, reversePrompt: nil)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LlamaRunner.Config' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     public init(numThreads: UInt, numTokens: UInt, reversePrompt: String? = nil) {
Build complete! (7.65s)
Build complete.
{
  "c_language_standard" : "gnu11",
  "cxx_language_standard" : "gnu++20",
  "dependencies" : [
  ],
  "manifest_display_name" : "llama.swift",
  "name" : "llama.swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "llama",
      "targets" : [
        "llama"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "llamaObjCxx",
      "module_type" : "ClangTarget",
      "name" : "llamaObjCxx",
      "path" : "Sources/llamaObjCxx",
      "product_memberships" : [
        "llama"
      ],
      "sources" : [
        "LlamaError.m",
        "bridge/LlamaEvent.mm",
        "bridge/LlamaPredictOperation.mm",
        "bridge/LlamaRunnerBridge.mm",
        "bridge/LlamaRunnerBridgeConfig.m",
        "cpp/ggml.c",
        "cpp/utils.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "llama",
      "module_type" : "SwiftTarget",
      "name" : "llama",
      "path" : "Sources/llama",
      "product_memberships" : [
        "llama"
      ],
      "sources" : [
        "LlamaRunner.swift"
      ],
      "target_dependencies" : [
        "llamaObjCxx"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.