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 EonilFSEvents, reference master (a54369), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 10:31:52 UTC.

Swift 6 data race errors: 3

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/eonil/FSEvents.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eonil/FSEvents
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a54369c Release FSEventStream when deiniting EonilFSEventStream
Cloned https://github.com/eonil/FSEvents.git
Revision (git rev-parse @):
a54369c44ab9caabf611d01080e64fe30608d83f
SUCCESS checkout https://github.com/eonil/FSEvents.git at master
========================================
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": "fsevents",
      "name": "EonilFSEvents",
      "url": "https://github.com/eonil/FSEvents.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FSEvents",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/eonil/FSEvents.git
[1/158] Fetching fsevents
Fetched https://github.com/eonil/FSEvents.git from cache (0.69s)
Creating working copy for https://github.com/eonil/FSEvents.git
Working copy of https://github.com/eonil/FSEvents.git resolved at master (a54369c)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/eonil/FSEvents.git
https://github.com/eonil/FSEvents.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EonilFSEvents",
  "name" : "EonilFSEvents",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    }
  ],
  "products" : [
    {
      "name" : "EonilFSEvents",
      "targets" : [
        "EonilFSEvents"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "EonilFSEventsDemoCLI",
      "targets" : [
        "EonilFSEventsDemoCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EonilFSEventsDemoCLI",
      "module_type" : "SwiftTarget",
      "name" : "EonilFSEventsDemoCLI",
      "path" : "Sources/EonilFSEventsDemoCLI",
      "product_memberships" : [
        "EonilFSEventsDemoCLI"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "EonilFSEvents"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "EonilFSEvents",
      "module_type" : "SwiftTarget",
      "name" : "EonilFSEvents",
      "path" : "Sources/EonilFSEvents",
      "product_memberships" : [
        "EonilFSEvents",
        "EonilFSEventsDemoCLI"
      ],
      "sources" : [
        "EonilFSEventStream.swift",
        "EonilFSEventStreamCreateFlags.swift",
        "EonilFSEventStreamError.swift",
        "EonilFSEventStreamEvent.swift",
        "EonilFSEventStreamEventFlags.swift",
        "EonilFSEventStreamEventID.swift",
        "EonilFSEventStreamIllogicalErrorLog.swift",
        "EonilFSEvents.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/7] Write sources
[2/7] Write EonilFSEventsDemoCLI-entitlement.plist
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/16] Compiling EonilFSEvents EonilFSEventStreamError.swift
/Users/admin/builder/spi-builder-workspace/Sources/EonilFSEvents/EonilFSEventStreamError.swift:10:16: warning: stored property 'code' of 'Sendable'-conforming struct 'EonilFSEventsError' has non-sendable type 'EonilFSEventsErrorCode'; this is an error in the Swift 6 language mode
 8 |
 9 | public struct EonilFSEventsError: Error {
10 |     public var code: EonilFSEventsErrorCode
   |                `- warning: stored property 'code' of 'Sendable'-conforming struct 'EonilFSEventsError' has non-sendable type 'EonilFSEventsErrorCode'; this is an error in the Swift 6 language mode
11 |     public var message: String?
12 |     init(code: EonilFSEventsErrorCode) {
   :
19 | }
20 |
21 | public enum EonilFSEventsErrorCode {
   |             `- note: consider making enum 'EonilFSEventsErrorCode' conform to the 'Sendable' protocol
22 |     case cannotCreateStream
23 |     case cannotStartStream
[6/16] Compiling EonilFSEvents EonilFSEventStream.swift
[7/16] Emitting module EonilFSEvents
/Users/admin/builder/spi-builder-workspace/Sources/EonilFSEvents/EonilFSEventStreamError.swift:10:16: warning: stored property 'code' of 'Sendable'-conforming struct 'EonilFSEventsError' has non-sendable type 'EonilFSEventsErrorCode'; this is an error in the Swift 6 language mode
 8 |
 9 | public struct EonilFSEventsError: Error {
10 |     public var code: EonilFSEventsErrorCode
   |                `- warning: stored property 'code' of 'Sendable'-conforming struct 'EonilFSEventsError' has non-sendable type 'EonilFSEventsErrorCode'; this is an error in the Swift 6 language mode
11 |     public var message: String?
12 |     init(code: EonilFSEventsErrorCode) {
   :
19 | }
20 |
21 | public enum EonilFSEventsErrorCode {
   |             `- note: consider making enum 'EonilFSEventsErrorCode' conform to the 'Sendable' protocol
22 |     case cannotCreateStream
23 |     case cannotStartStream
/Users/admin/builder/spi-builder-workspace/Sources/EonilFSEvents/EonilFSEventStreamIllogicalErrorLog.swift:26:23: warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     /// Can be called at any thread.
26 |     public static var handler: (EonilFSEventsIllogicalErrorLog) -> () = { assert(false, "EonilFSEvents: \($0)") }
   |                       |- warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'handler' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'handler' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/EonilFSEvents/EonilFSEvents.swift:49:13: warning: var 'watchers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |     }
48 | }
49 | private var watchers = [ObjectIdentifier: EonilFSEventStream]()
   |             |- warning: var 'watchers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'watchers' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'watchers' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
[8/16] Compiling EonilFSEvents EonilFSEventStreamCreateFlags.swift
[9/16] Compiling EonilFSEvents EonilFSEventStreamEvent.swift
[10/16] Compiling EonilFSEvents EonilFSEvents.swift
/Users/admin/builder/spi-builder-workspace/Sources/EonilFSEvents/EonilFSEvents.swift:49:13: warning: var 'watchers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |     }
48 | }
49 | private var watchers = [ObjectIdentifier: EonilFSEventStream]()
   |             |- warning: var 'watchers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'watchers' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'watchers' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
[11/16] Compiling EonilFSEvents EonilFSEventStreamEventID.swift
[12/16] Compiling EonilFSEvents EonilFSEventStreamEventFlags.swift
[13/16] Compiling EonilFSEvents EonilFSEventStreamIllogicalErrorLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/EonilFSEvents/EonilFSEventStreamIllogicalErrorLog.swift:26:23: warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 |     /// Can be called at any thread.
26 |     public static var handler: (EonilFSEventsIllogicalErrorLog) -> () = { assert(false, "EonilFSEvents: \($0)") }
   |                       |- warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'handler' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'handler' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | }
28 |
[14/18] Compiling EonilFSEventsDemoCLI main.swift
[15/18] Emitting module EonilFSEventsDemoCLI
[15/18] Write Objects.LinkFileList
[16/18] Linking EonilFSEventsDemoCLI
[17/18] Applying EonilFSEventsDemoCLI
Build complete! (5.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EonilFSEvents",
  "name" : "EonilFSEvents",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    }
  ],
  "products" : [
    {
      "name" : "EonilFSEvents",
      "targets" : [
        "EonilFSEvents"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "EonilFSEventsDemoCLI",
      "targets" : [
        "EonilFSEventsDemoCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EonilFSEventsDemoCLI",
      "module_type" : "SwiftTarget",
      "name" : "EonilFSEventsDemoCLI",
      "path" : "Sources/EonilFSEventsDemoCLI",
      "product_memberships" : [
        "EonilFSEventsDemoCLI"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "EonilFSEvents"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "EonilFSEvents",
      "module_type" : "SwiftTarget",
      "name" : "EonilFSEvents",
      "path" : "Sources/EonilFSEvents",
      "product_memberships" : [
        "EonilFSEvents",
        "EonilFSEventsDemoCLI"
      ],
      "sources" : [
        "EonilFSEventStream.swift",
        "EonilFSEventStreamCreateFlags.swift",
        "EonilFSEventStreamError.swift",
        "EonilFSEventStreamEvent.swift",
        "EonilFSEventStreamEventFlags.swift",
        "EonilFSEventStreamEventID.swift",
        "EonilFSEventStreamIllogicalErrorLog.swift",
        "EonilFSEvents.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.