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

Swift 6 data race errors: 3

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/dscyrescotti/ReachabilityX.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dscyrescotti/ReachabilityX
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dscyrescotti/ReachabilityX.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 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 |         }
[4/9] Compiling ReachabilityX Helper.swift
[5/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 non-isolated 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 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
 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 non-isolated 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 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
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 non-isolated 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 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
14 | }
15 |
[6/9] Compiling ReachabilityX EnvironmentValues++.swift
[7/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 non-isolated 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 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
 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 non-isolated 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 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
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 non-isolated 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 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
14 | }
15 |
[8/9] Compiling ReachabilityX ReachabilityView.swift
[9/9] Compiling ReachabilityX View++.swift
Build complete! (34.43s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.