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 ReachabilityX, reference v1.0.0 (e86367), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 06:20:47 UTC.

Swift 6 data race errors: 3

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/dscyrescotti/ReachabilityX.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dscyrescotti/ReachabilityX
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at e863678 Merge pull request #2 from dscyrescotti/develop
Cloned https://github.com/dscyrescotti/ReachabilityX.git
Revision (git rev-parse @):
e863678be69e157e581ae20c8e47e0eda4c68293
SUCCESS checkout https://github.com/dscyrescotti/ReachabilityX.git at v1.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": "reachabilityx",
      "name": "ReachabilityX",
      "url": "https://github.com/dscyrescotti/ReachabilityX.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ReachabilityX",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dscyrescotti/ReachabilityX.git
[1/273] Fetching reachabilityx
Fetched https://github.com/dscyrescotti/ReachabilityX.git from cache (0.98s)
Creating working copy for https://github.com/dscyrescotti/ReachabilityX.git
Working copy of https://github.com/dscyrescotti/ReachabilityX.git resolved at v1.0.0 (e863678)
warning: '.resolve-product-dependencies': dependency 'reachabilityx' 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/dscyrescotti/ReachabilityX.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 ReachabilityX Helper.swift
[4/9] Compiling ReachabilityX EnvironmentValues++.swift
[5/9] Compiling ReachabilityX EnvironmentKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/EnvironmentKeys.swift:5:16: 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
 3 |
 4 | struct ChangeInterfaceTypeActionEnvironmentKey: EnvironmentKey {
 5 |     static var defaultValue: ((InterfaceType) -> Void)? = nil
   |                |- 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
 6 | }
 7 |
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/EnvironmentKeys.swift:9:16: 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
 7 |
 8 | struct ChangePathActionEnvironmentKey: EnvironmentKey {
 9 |     static var defaultValue: ((NWPath) -> Void)? = nil
   |                |- 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/EnvironmentKeys.swift:13:16: 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
11 |
12 | struct ChangeStatusActionEnvironmentKey: EnvironmentKey {
13 |     static var defaultValue: ((Status) -> Void)? = nil
   |                |- 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
14 | }
15 |
[6/9] Compiling ReachabilityX Reachability.swift
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/Reachability.swift:25:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 3 | import Foundation
 4 |
 5 | final public class Reachability: ObservableObject {
   |                    `- note: class 'Reachability' does not conform to the 'Sendable' protocol
 6 |     private var monitor: NWPathMonitor = .init()
 7 |     private var queue: DispatchQueue
   :
23 |         self.notificationQueue = notificationQueue
24 |         self.monitor.pathUpdateHandler = { [weak self] path in
25 |             self?.notificationQueue.async { [weak self] in
   |             `- warning: capture of 'self' with non-sendable type 'Reachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |                 self?.objectWillChange.send()
27 |             }
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/Reachability.swift:26:17: warning: capture of 'self' with non-sendable type 'Reachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 3 | import Foundation
 4 |
 5 | final public class Reachability: ObservableObject {
   |                    `- note: class 'Reachability' does not conform to the 'Sendable' protocol
 6 |     private var monitor: NWPathMonitor = .init()
 7 |     private var queue: DispatchQueue
   :
24 |         self.monitor.pathUpdateHandler = { [weak self] path in
25 |             self?.notificationQueue.async { [weak self] in
26 |                 self?.objectWillChange.send()
   |                 `- warning: capture of 'self' with non-sendable type 'Reachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |             }
28 |         }
[7/9] Compiling ReachabilityX View++.swift
[8/9] Compiling ReachabilityX ReachabilityView.swift
[9/9] Emitting module ReachabilityX
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/EnvironmentKeys.swift:5:16: 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
 3 |
 4 | struct ChangeInterfaceTypeActionEnvironmentKey: EnvironmentKey {
 5 |     static var defaultValue: ((InterfaceType) -> Void)? = nil
   |                |- 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
 6 | }
 7 |
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/EnvironmentKeys.swift:9:16: 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
 7 |
 8 | struct ChangePathActionEnvironmentKey: EnvironmentKey {
 9 |     static var defaultValue: ((NWPath) -> Void)? = nil
   |                |- 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ReachabilityX/EnvironmentKeys.swift:13:16: 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
11 |
12 | struct ChangeStatusActionEnvironmentKey: EnvironmentKey {
13 |     static var defaultValue: ((Status) -> Void)? = nil
   |                |- 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
14 | }
15 |
Build complete! (13.63s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ReachabilityX",
  "name" : "ReachabilityX",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "ReachabilityX",
      "targets" : [
        "ReachabilityX"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ReachabilityXTests",
      "module_type" : "SwiftTarget",
      "name" : "ReachabilityXTests",
      "path" : "Tests/ReachabilityXTests",
      "sources" : [
        "ReachabilityXTests.swift"
      ],
      "target_dependencies" : [
        "ReachabilityX"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ReachabilityX",
      "module_type" : "SwiftTarget",
      "name" : "ReachabilityX",
      "path" : "Sources/ReachabilityX",
      "product_memberships" : [
        "ReachabilityX"
      ],
      "sources" : [
        "EnvironmentKeys.swift",
        "EnvironmentValues++.swift",
        "Helper.swift",
        "Reachability.swift",
        "ReachabilityView.swift",
        "View++.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.