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 Reachability, reference 1.2.1 (33d2cf), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 02:37:46 UTC.

Swift 6 data race errors: 1

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alecrim/Reachability.git
Reference: 1.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Alecrim/Reachability
 * tag               1.2.1      -> FETCH_HEAD
HEAD is now at 33d2cf1 Merge branch 'release/1.2.1'
Cloned https://github.com/Alecrim/Reachability.git
Revision (git rev-parse @):
33d2cf1dc5c5962683b6fc913ac652ebc4d6c8e1
SUCCESS checkout https://github.com/Alecrim/Reachability.git at 1.2.1
========================================
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": "reachability",
      "name": "Reachability",
      "url": "https://github.com/Alecrim/Reachability.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Reachability",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Alecrim/Reachability.git
[2/92] Fetching reachability
Fetched https://github.com/Alecrim/Reachability.git from cache (0.69s)
Creating working copy for https://github.com/Alecrim/Reachability.git
Working copy of https://github.com/Alecrim/Reachability.git resolved at 1.2.1 (33d2cf1)
warning: '.resolve-product-dependencies': dependency 'reachability' 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/Alecrim/Reachability.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling Reachability Reachability.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reachability.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Reachability' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
13 | public final class Reachability: ObservableObject {
   |                    `- note: class 'Reachability' does not conform to the 'Sendable' protocol
14 |     public static let shared = Reachability()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Reachability' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' 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
15 |
16 |     @Published public private(set) var currentPath: NWPath
/Users/admin/builder/spi-builder-workspace/Sources/Reachability.swift:46:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
13 | public final class Reachability: ObservableObject {
   |                    `- note: class 'Reachability' does not conform to the 'Sendable' protocol
14 |     public static let shared = Reachability()
15 |
   :
44 |
45 |         monitor.pathUpdateHandler = { [weak self] path in
46 |             self?.currentPath = path
   |             `- warning: capture of 'self' with non-sendable type 'Reachability?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |             self?.subject.send(path)
48 |         }
[4/4] Emitting module Reachability
/Users/admin/builder/spi-builder-workspace/Sources/Reachability.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Reachability' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
13 | public final class Reachability: ObservableObject {
   |                    `- note: class 'Reachability' does not conform to the 'Sendable' protocol
14 |     public static let shared = Reachability()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Reachability' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' 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
15 |
16 |     @Published public private(set) var currentPath: NWPath
Build complete! (6.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Reachability",
  "name" : "Reachability",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Reachability",
      "targets" : [
        "Reachability"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ReachabilityTests",
      "module_type" : "SwiftTarget",
      "name" : "ReachabilityTests",
      "path" : "Tests",
      "sources" : [
        "ReachabilityTests.swift"
      ],
      "target_dependencies" : [
        "Reachability"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Reachability",
      "module_type" : "SwiftTarget",
      "name" : "Reachability",
      "path" : "Sources",
      "product_memberships" : [
        "Reachability"
      ],
      "sources" : [
        "Reachability.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.