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 swiftbar, reference main (2c6f62), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 18:05:40 UTC.

Swift 6 data race errors: 3

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/theBreadCompany/swiftbar.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/theBreadCompany/swiftbar
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2c6f628 make it compile on Linux as well
Cloned https://github.com/theBreadCompany/swiftbar.git
Revision (git rev-parse @):
2c6f628c95557e633bc260324e017d848fdb6d8c
SUCCESS checkout https://github.com/theBreadCompany/swiftbar.git at main
========================================
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": "swiftbar",
      "name": "swiftbar",
      "url": "https://github.com/theBreadCompany/swiftbar.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftbar",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/theBreadCompany/swiftbar.git
[4/176] Fetching swiftbar
Fetched https://github.com/theBreadCompany/swiftbar.git from cache (0.62s)
Creating working copy for https://github.com/theBreadCompany/swiftbar.git
Working copy of https://github.com/theBreadCompany/swiftbar.git resolved at main (2c6f628)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/theBreadCompany/swiftbar.git
https://github.com/theBreadCompany/swiftbar.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftbar",
  "name" : "swiftbar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "swiftbar",
      "targets" : [
        "swiftbar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Example",
      "targets" : [
        "Example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swiftbarTests",
      "module_type" : "SwiftTarget",
      "name" : "swiftbarTests",
      "path" : "Tests/swiftbarTests",
      "sources" : [
        "swiftbarTests.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "swiftbar",
      "module_type" : "SwiftTarget",
      "name" : "swiftbar",
      "path" : "Sources/swiftbar",
      "product_memberships" : [
        "swiftbar",
        "Example"
      ],
      "sources" : [
        "Progressbar.swift",
        "ProgressbarConfiguration.swift",
        "ProgressingCollection.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Example",
      "module_type" : "SwiftTarget",
      "name" : "Example",
      "path" : "Sources/Example",
      "product_memberships" : [
        "Example"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.0"
}
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/7] Write sources
[2/7] Write Example-entitlement.plist
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/11] Compiling swiftbar ProgressbarConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |         public struct Style: Codable {
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    |                                |- warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                |- note: convert 'implementations' to a 'let' constant to make 'Sendable' shared state immutable
    |                                |- note: add '@MainActor' to make static property 'implementations' part of global actor 'MainActor'
    |                                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |             public init(_ name: String, createdWith creator: @escaping Creator) {
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 62 |
 63 |             public typealias Creator = (Int, Configuration) -> String
 64 |             public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
    |                               |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'simpleBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 74 |                 return barContent
 75 |             })
 76 |             public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
    |                               |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'preciseBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[6/11] Compiling swiftbar Progressbar.swift
[7/11] Emitting module swiftbar
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |         public struct Style: Codable {
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    |                                |- warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                |- note: convert 'implementations' to a 'let' constant to make 'Sendable' shared state immutable
    |                                |- note: add '@MainActor' to make static property 'implementations' part of global actor 'MainActor'
    |                                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |             public init(_ name: String, createdWith creator: @escaping Creator) {
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 62 |
 63 |             public typealias Creator = (Int, Configuration) -> String
 64 |             public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
    |                               |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'simpleBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 74 |                 return barContent
 75 |             })
 76 |             public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
    |                               |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'preciseBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[8/11] Compiling swiftbar ProgressingCollection.swift
[9/13] Emitting module Example
[10/13] Compiling Example main.swift
[10/13] Write Objects.LinkFileList
[11/13] Linking Example
[12/13] Applying Example
Build complete! (5.14s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftbar",
  "name" : "swiftbar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "swiftbar",
      "targets" : [
        "swiftbar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Example",
      "targets" : [
        "Example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swiftbarTests",
      "module_type" : "SwiftTarget",
      "name" : "swiftbarTests",
      "path" : "Tests/swiftbarTests",
      "sources" : [
        "swiftbarTests.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "swiftbar",
      "module_type" : "SwiftTarget",
      "name" : "swiftbar",
      "path" : "Sources/swiftbar",
      "product_memberships" : [
        "swiftbar",
        "Example"
      ],
      "sources" : [
        "Progressbar.swift",
        "ProgressbarConfiguration.swift",
        "ProgressingCollection.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Example",
      "module_type" : "SwiftTarget",
      "name" : "Example",
      "path" : "Sources/Example",
      "product_memberships" : [
        "Example"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.0"
}
Done.