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 1.0.0 (178cb5), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 21:40:10 UTC.

Swift 6 data race errors: 1

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/EmilioPelaez/EventHierarchy.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EmilioPelaez/EventHierarchy
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 178cb51 Update Readme
Cloned https://github.com/EmilioPelaez/EventHierarchy.git
Revision (git rev-parse @):
178cb5188057032480a7dfb718ceb5a2475c13d2
SUCCESS checkout https://github.com/EmilioPelaez/EventHierarchy.git at 1.0.0
========================================
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.64s)
Creating working copy for https://github.com/EmilioPelaez/EventHierarchy.git
Working copy of https://github.com/EmilioPelaez/EventHierarchy.git resolved at 1.0.0 (178cb51)
warning: '.resolve-product-dependencies': dependency 'eventhierarchy' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/EmilioPelaez/EventHierarchy.git
https://github.com/EmilioPelaez/EventHierarchy.git
{
  "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",
        "EventEnvironmentValues.swift",
        "EventHandlerViewModifier.swift",
        "View+EventHandling.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/7] Compiling EventHierarchy EventHandlerViewModifier.swift
[4/7] Compiling EventHierarchy View+EventHandling.swift
[5/7] Compiling EventHierarchy Event.swift
[6/7] 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
[7/7] 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
Build complete! (8.46s)
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",
        "EventEnvironmentValues.swift",
        "EventHandlerViewModifier.swift",
        "View+EventHandling.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.