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, reference main (03703d), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 13:32:51 UTC.

Swift 6 data race errors: 0

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/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 03703db Adding pods support (#53)
Cloned https://github.com/vsanthanam/NetworkReachability.git
Revision (git rev-parse @):
03703db60ed79ce7b022067b49f710cfbc3c4739
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vsanthanam/NetworkReachability.git at main
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2049] Fetching swift-docc-plugin
[227/5426] Fetching swift-docc-plugin, swift-docc-symbolkit
[5325/52156] Fetching swift-docc-plugin, swift-docc-symbolkit, swiftformat
Fetched https://github.com/apple/swift-docc-plugin from cache (60.37s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (60.37s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (60.37s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.53.5 (61.62s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.2.0 (0.57s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.64s)
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
========================================
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": "networkreachability",
      "name": "NetworkReachability",
      "url": "https://github.com/vsanthanam/NetworkReachability.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NetworkReachability",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/vsanthanam/NetworkReachability.git
[1/2295] Fetching networkreachability
Fetched https://github.com/vsanthanam/NetworkReachability.git from cache (1.44s)
Creating working copy for https://github.com/vsanthanam/NetworkReachability.git
Working copy of https://github.com/vsanthanam/NetworkReachability.git resolved at main (03703db)
warning: '.resolve-product-dependencies': dependency 'networkreachability' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vsanthanam/NetworkReachability.git
https://github.com/vsanthanam/NetworkReachability.git
{
  "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"
}
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
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/15] Compiling NetworkReachability WeakReference.swift
[7/15] Compiling NetworkReachability DispatchQueue+NetworkReachability.swift
[8/15] Compiling NetworkReachability NetworkMonitor+Notification.swift
[9/15] Compiling NetworkReachability NetworkMonitorDelegate.swift
[10/15] Compiling NetworkReachability NetworkMonitor+Concurrency.swift
[11/15] Compiling NetworkReachability NetworkMonitor+Combine.swift
[12/15] Compiling NetworkReachability NotificationExtensions.swift
[13/15] Emitting module NetworkReachability
[14/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
343 |             if let dispatchQueue {
344 |                 dispatchQueue.async {
345 |                     completionHandler(path)
    |                     |- warning: capture of 'completionHandler' with non-sendable type '(NWPath) -> Void' in a '@Sendable' closure
    |                     `- 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 an isolated 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 an isolated 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: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
 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
426 |                 postNotification()
427 |                 updateDelegate(path: path)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:431:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
429 |             }
430 |         } else if #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) {
431 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
432 |                 await MainActor.run {
433 |                     postNotification()
    |                     `- note: closure captures 'self' which is accessible to code in the current task
434 |                     updateDelegate(path: path)
435 |                     updateHandler?(self, 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)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkReachability/API/NetworkMonitor/NetworkMonitor.swift:433:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
431 |             Task {
432 |                 await MainActor.run {
433 |                     postNotification()
    |                     |- 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
434 |                     updateDelegate(path: path)
435 |                     updateHandler?(self, path)
[15/15] Compiling NetworkReachability PublishersExtensions.swift
Build complete! (14.77s)
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"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/vsanthanam/networkreachability/main
Repository:               vsanthanam/NetworkReachability
Swift version used:       6.1
        .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
Target:                   NetworkReachability
Generating documentation for 'NetworkReachability'...
Converting documentation...
Conversion complete! (0.23s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/vsanthanam/networkreachability/main'
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling Snippets Snippet.swift
[7/53] Emitting module SymbolKit
[8/57] Compiling SymbolKit Identifier.swift
[9/57] Compiling SymbolKit KindIdentifier.swift
[10/57] Compiling SymbolKit Location.swift
[11/57] Compiling SymbolKit Mutability.swift
[12/57] Compiling SymbolKit SourceRange.swift
[13/57] Compiling SymbolKit Metadata.swift
[14/57] Compiling SymbolKit Module.swift
[15/57] Compiling SymbolKit OperatingSystem.swift
[16/57] Compiling SymbolKit Platform.swift
[17/57] Emitting module Snippets
[18/57] Compiling Snippets SnippetParser.swift
[19/57] Compiling SymbolKit SemanticVersion.swift
[20/57] Compiling SymbolKit AccessControl.swift
[21/57] Compiling SymbolKit Availability.swift
[22/57] Compiling SymbolKit AvailabilityItem.swift
[23/57] Compiling SymbolKit Domain.swift
[24/57] Compiling SymbolKit Symbol.swift
[25/57] Compiling SymbolKit SymbolKind.swift
[26/57] Compiling SymbolKit SymbolGraph.swift
[27/57] Compiling SymbolKit GraphCollector.swift
[28/57] Compiling SymbolKit Mixin+Equals.swift
[29/57] Compiling SymbolKit Mixin+Hash.swift
[30/57] Compiling SymbolKit Mixin.swift
[31/57] Compiling SymbolKit LineList.swift
[32/57] Compiling SymbolKit Position.swift
[33/57] Compiling SymbolKit Names.swift
[34/57] Compiling SymbolKit SPI.swift
[35/57] Compiling SymbolKit Snippet.swift
[36/57] Compiling SymbolKit Extension.swift
[37/57] Compiling SymbolKit GenericConstraint.swift
[38/57] Compiling SymbolKit GenericParameter.swift
[39/57] Compiling SymbolKit Generics.swift
[40/57] Compiling SymbolKit Namespace.swift
[41/57] Compiling SymbolKit DeclarationFragments.swift
[42/57] Compiling SymbolKit Fragment.swift
[43/57] Compiling SymbolKit FragmentKind.swift
[44/57] Compiling SymbolKit FunctionParameter.swift
[45/57] Compiling SymbolKit FunctionSignature.swift
[46/57] Compiling SymbolKit Relationship.swift
[47/57] Compiling SymbolKit RelationshipKind.swift
[48/57] Compiling SymbolKit SourceOrigin.swift
[49/57] Compiling SymbolKit GenericConstraints.swift
[50/57] Compiling SymbolKit Swift.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.10s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/11] Compiling NetworkReachability PublishersExtensions.swift
[3/11] Emitting module NetworkReachability
[4/11] Compiling NetworkReachability NetworkMonitorDelegate.swift
[5/11] Compiling NetworkReachability NotificationExtensions.swift
[6/11] Compiling NetworkReachability WeakReference.swift
[7/11] Compiling NetworkReachability DispatchQueue+NetworkReachability.swift
[8/11] Compiling NetworkReachability NetworkMonitor.swift
[9/11] Compiling NetworkReachability NetworkMonitor+Notification.swift
[10/11] Compiling NetworkReachability NetworkMonitor+Concurrency.swift
[11/11] Compiling NetworkReachability NetworkMonitor+Combine.swift
Build of target: 'NetworkReachability' complete! (1.30s)
     397
26	/Users/admin/builder/spi-builder-workspace/.docs/vsanthanam/networkreachability/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/vsanthanam/networkreachability/main
File count: 397
Doc size:   26.0MB
Preparing doc bundle ...
Uploading prod-vsanthanam-networkreachability-main-063132b7.zip to s3://spi-docs-inbox/prod-vsanthanam-networkreachability-main-063132b7.zip
Copying... [10%]
Copying... [20%]
Copying... [30%]
Copying... [40%]
Copying... [50%]
Copying... [60%]
Copying... [70%]
Copying... [80%]
Copying... [90%]
Copying... [100%]
Done.