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 EventHierarchy, reference main (b17c17), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 13:52:02 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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EmilioPelaez/EventHierarchy.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EmilioPelaez/EventHierarchy
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b17c17b Add Deprecation Notice
Cloned https://github.com/EmilioPelaez/EventHierarchy.git
Revision (git rev-parse @):
b17c17b047885522374646e01b4691f2b30e1378
SUCCESS checkout https://github.com/EmilioPelaez/EventHierarchy.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": "eventhierarchy",
      "name": "EventHierarchy",
      "url": "https://github.com/EmilioPelaez/EventHierarchy.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventHierarchy",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/EmilioPelaez/EventHierarchy.git
[1/249] Fetching eventhierarchy
Fetched https://github.com/EmilioPelaez/EventHierarchy.git from cache (0.70s)
Creating working copy for https://github.com/EmilioPelaez/EventHierarchy.git
Working copy of https://github.com/EmilioPelaez/EventHierarchy.git resolved at main (b17c17b)
warning: '.resolve-product-dependencies': dependency 'eventhierarchy' 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/EmilioPelaez/EventHierarchy.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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling EventHierarchy View+FailableEventHandling.swift
[4/9] Compiling EventHierarchy Event.swift
[5/9] Compiling EventHierarchy EventHandlerViewModifier.swift
[6/9] Compiling EventHierarchy EventButton.swift
[7/9] Compiling EventHierarchy EventEnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/EventHierarchy/EventEnvironmentValues.swift:25:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | struct EventClosureEnvironmentKey: EnvironmentKey {
25 | 	static var defaultValue: (Event) -> Void = { _ in }
   |             |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultValue' 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
26 | }
27 |
[8/9] Compiling EventHierarchy View+EventHandling.swift
[9/9] Emitting module EventHierarchy
/Users/admin/builder/spi-builder-workspace/Sources/EventHierarchy/EventEnvironmentValues.swift:25:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | struct EventClosureEnvironmentKey: EnvironmentKey {
25 | 	static var defaultValue: (Event) -> Void = { _ in }
   |             |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'defaultValue' 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
26 | }
27 |
Build complete! (13.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EventHierarchy",
  "name" : "EventHierarchy",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "EventHierarchy",
      "targets" : [
        "EventHierarchy"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EventHierarchy",
      "module_type" : "SwiftTarget",
      "name" : "EventHierarchy",
      "path" : "Sources/EventHierarchy",
      "product_memberships" : [
        "EventHierarchy"
      ],
      "sources" : [
        "Event.swift",
        "EventButton.swift",
        "EventEnvironmentValues.swift",
        "EventHandlerViewModifier.swift",
        "View+EventHandling.swift",
        "View+FailableEventHandling.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.