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 1.1.1 (83589c), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 07:08:05 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: 1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hainayanda/Builder
 * tag               1.1.1      -> FETCH_HEAD
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 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": "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 (1.83s)
Creating working copy for https://github.com/hainayanda/Builder.git
Working copy of https://github.com/hainayanda/Builder.git resolved at 1.1.1 (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 Protocols.swift
[4/7] Compiling Builder Builder.swift
[5/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
[6/7] Compiling Builder PropertyAssigner.swift
[7/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
Build complete! (6.55s)
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.