This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/EmilioPelaez/EventHierarchy.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/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 non-isolated 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 non-isolated 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 |
[4/9] Compiling EventHierarchy View+FailableEventHandling.swift
[5/9] Compiling EventHierarchy EventHandlerViewModifier.swift
[6/9] Compiling EventHierarchy Event.swift
[7/9] Compiling EventHierarchy EventButton.swift
[8/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 non-isolated 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 non-isolated 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 |
[9/9] Compiling EventHierarchy View+EventHandling.swift
Build complete! (31.33s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.