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

Swift 6 data race errors: 0

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/vsanthanam/NetworkReachability.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vsanthanam/NetworkReachability
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3262e24 Delete ReachabilityMonitor (#49)
Cloned https://github.com/vsanthanam/NetworkReachability.git
Revision (git rev-parse @):
3262e24b4842b50b0e53be7893831a54f7dd9340
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/vsanthanam/NetworkReachability.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/vsanthanam/NetworkReachability.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin SwiftFormatPlugin
Building for debugging...
[3/5] Write sources
[4/5] Write swift-version-6F35C1178C84523A.txt
[6/15] Compiling NetworkReachability WeakReference.swift
[7/15] Compiling NetworkReachability PublishersExtensions.swift
[8/15] Compiling NetworkReachability NetworkMonitorDelegate.swift
[9/15] Compiling NetworkReachability NetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:345:21: warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 |             if let dispatchQueue {
344 |                 dispatchQueue.async {
345 |                     completionHandler(path)
    |                     |- warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
346 |                 }
347 |             } else if #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:345:21: warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 |             if let dispatchQueue {
344 |                 dispatchQueue.async {
345 |                     completionHandler(path)
    |                     |- warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
346 |                 }
347 |             } else if #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:349:21: warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
347 |             } else if #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) {
348 |                 Task {
349 |                     completionHandler(path)
    |                     |- warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
350 |                 }
351 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:353:21: warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 |             } else {
352 |                 DispatchQueue.main.async {
353 |                     completionHandler(path)
    |                     |- warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
354 |                 }
355 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:415:13: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 | /// - ``Publisher``
 90 | @available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *)
 91 | public final class NetworkMonitor {
    |                    `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
 92 |
 93 |     // MARK: - Initializers
    :
413 |     private func setUp() {
414 |         pathMonitor.pathUpdateHandler = { [weak self] path in
415 |             self?.forward(path: path)
    |             `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
416 |         }
417 |         pathMonitor.start(queue: .networkMonitorQueue)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:425:27: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 | /// - ``Publisher``
 90 | @available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *)
 91 | public final class NetworkMonitor {
    |                    `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
 92 |
 93 |     // MARK: - Initializers
    :
423 |         } else if let updateQueue {
424 |             updateQueue.async { [weak self] in
425 |                 guard let self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
426 |                 postNotification()
427 |                 updateDelegate(path: path)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:433:21: warning: capture of 'self' with non-sendable type 'NetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 | /// - ``Publisher``
 90 | @available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *)
 91 | public final class NetworkMonitor {
    |                    `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
 92 |
 93 |     // MARK: - Initializers
    :
431 |             Task {
432 |                 await MainActor.run {
433 |                     postNotification()
    |                     `- warning: capture of 'self' with non-sendable type 'NetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
434 |                     updateDelegate(path: path)
435 |                     updateHandler?(self, path)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:433:21: warning: capture of 'self' with non-sendable type 'NetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 | /// - ``Publisher``
 90 | @available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *)
 91 | public final class NetworkMonitor {
    |                    `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
 92 |
 93 |     // MARK: - Initializers
    :
431 |             Task {
432 |                 await MainActor.run {
433 |                     postNotification()
    |                     `- warning: capture of 'self' with non-sendable type 'NetworkMonitor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
434 |                     updateDelegate(path: path)
435 |                     updateHandler?(self, path)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:440:27: warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 | /// - ``Publisher``
 90 | @available(macOS 10.14, iOS 12.0, watchOS 6.0, tvOS 12.0, *)
 91 | public final class NetworkMonitor {
    |                    `- note: class 'NetworkMonitor' does not conform to the 'Sendable' protocol
 92 |
 93 |     // MARK: - Initializers
    :
438 |         } else {
439 |             DispatchQueue.main.async { [weak self] in
440 |                 guard let self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'NetworkMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
441 |                 postNotification()
442 |                 updateDelegate(path: path)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:440:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
438 |         } else {
439 |             DispatchQueue.main.async { [weak self] in
440 |                 guard let self else { return }
    |                           |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
441 |                 postNotification()
442 |                 updateDelegate(path: path)
[10/15] Compiling NetworkReachability DispatchQueue+NetworkReachability.swift
[11/15] Compiling NetworkReachability NetworkMonitor+Concurrency.swift
[12/15] Compiling NetworkReachability NetworkMonitor+Combine.swift
[13/15] Compiling NetworkReachability NetworkMonitor+Notification.swift
[14/15] Emitting module NetworkReachability
[15/15] Compiling NetworkReachability NotificationExtensions.swift
Build complete! (139.82s)
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/apple/swift-docc-symbolkit
[1/1458] Fetching swift-docc-plugin
[643/4318] Fetching swift-docc-plugin, swift-docc-symbolkit
[2573/42743] Fetching swift-docc-plugin, swift-docc-symbolkit, swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (101.02s)
Fetched https://github.com/apple/swift-docc-plugin from cache (101.02s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (101.02s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.53.5 (1.29s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.69s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.75s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.2.0
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.53.5
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    },
    {
      "identity" : "swiftformat",
      "requirement" : {
        "exact" : [
          "0.53.5"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat"
    }
  ],
  "manifest_display_name" : "NetworkReachability",
  "name" : "NetworkReachability",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "NetworkReachability",
      "targets" : [
        "NetworkReachability"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NetworkReachabilityTests",
      "module_type" : "SwiftTarget",
      "name" : "NetworkReachabilityTests",
      "path" : "Tests/NetworkReachabilityTests",
      "sources" : [
        "NetworkMonitorCombineTests.swift",
        "NetworkMonitorConcurrencyTests.swift",
        "NetworkMonitorTests.swift"
      ],
      "target_dependencies" : [
        "NetworkReachability"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NetworkReachability",
      "module_type" : "SwiftTarget",
      "name" : "NetworkReachability",
      "path" : "Sources/NetworkReachability",
      "product_memberships" : [
        "NetworkReachability"
      ],
      "sources" : [
        "API/Extensions/NotificationExtensions.swift",
        "API/Extensions/PublishersExtensions.swift",
        "API/NetworkMonitor/NetworkMonitor+Combine.swift",
        "API/NetworkMonitor/NetworkMonitor+Concurrency.swift",
        "API/NetworkMonitor/NetworkMonitor+Notification.swift",
        "API/NetworkMonitor/NetworkMonitor.swift",
        "API/NetworkMonitor/NetworkMonitorDelegate.swift",
        "Internal/DispatchQueue+NetworkReachability.swift",
        "Internal/WeakReference.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.