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 Builder, reference main (83589c), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 07:08:06 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/hainayanda/Builder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hainayanda/Builder
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 83589c8 Update README.md
Cloned https://github.com/hainayanda/Builder.git
Revision (git rev-parse @):
83589c82653587f93949612ae1bd359c47370d4c
SUCCESS checkout https://github.com/hainayanda/Builder.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": "builder",
      "name": "Builder",
      "url": "https://github.com/hainayanda/Builder.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Builder",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/hainayanda/Builder.git
[1/488] Fetching builder
Fetched https://github.com/hainayanda/Builder.git from cache (0.89s)
Creating working copy for https://github.com/hainayanda/Builder.git
Working copy of https://github.com/hainayanda/Builder.git resolved at main (83589c8)
warning: '.resolve-product-dependencies': dependency 'builder' 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/hainayanda/Builder.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling Builder PropertyAssigner.swift
[4/7] Compiling Builder Protocols.swift
[5/7] Emitting module Builder
/Users/admin/builder/spi-builder-workspace/Builder/Classes/BuilderConfig.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BuilderConfig' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class BuilderConfig {
   |              `- note: class 'BuilderConfig' does not conform to the 'Sendable' protocol
18 |     public static let shared: BuilderConfig = .init()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BuilderConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' 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
19 |
20 |     public var errorHandling: BuilderConfigErrorHandler = .debugPrintOnAssigningLet
[6/7] Compiling Builder BuilderConfig.swift
/Users/admin/builder/spi-builder-workspace/Builder/Classes/BuilderConfig.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BuilderConfig' may have shared mutable state; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public class BuilderConfig {
   |              `- note: class 'BuilderConfig' does not conform to the 'Sendable' protocol
18 |     public static let shared: BuilderConfig = .init()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'BuilderConfig' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' 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
19 |
20 |     public var errorHandling: BuilderConfigErrorHandler = .debugPrintOnAssigningLet
[7/7] Compiling Builder Builder.swift
Build complete! (6.85s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Builder",
  "name" : "Builder",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "Builder",
      "targets" : [
        "Builder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Builder",
      "module_type" : "SwiftTarget",
      "name" : "Builder",
      "path" : "Builder/Classes",
      "product_memberships" : [
        "Builder"
      ],
      "sources" : [
        "Builder.swift",
        "BuilderConfig.swift",
        "PropertyAssigner.swift",
        "Protocols.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.