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

Swift 6 data race errors: 1

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/gabrieltheodoropoulos/GTNetMon-Swift-Package.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2b61233 Updated Readme
Cloned https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git
Revision (git rev-parse @):
2b61233fa28a6009a0841f960b4dc39049af7be9
SUCCESS checkout https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/gabrieltheodoropoulos/GTNetMon-Swift-Package.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/8] Compiling GTNetMon GTNetMonProvider.swift
[4/8] Compiling GTNetMon GTNetMonReachabilityBased.swift
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMonReachabilityBased.swift:196:13: warning: capture of 'self' with non-sendable type 'GTNetMonReachabilityBased?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 13 | // Credits to: https://stackoverflow.com/questions/30743408/check-for-internet-connection-with-swift
 14 |
 15 | class GTNetMonReachabilityBased: GTNetMonProvider {
    |       `- note: class 'GTNetMonReachabilityBased' does not conform to the 'Sendable' protocol
 16 |
 17 |     // MARK: - Required Properties
    :
194 |     func startMonitoring() {
195 |         DispatchQueue.main.async { [weak self] in
196 |             self?.setupReachability()
    |             `- warning: capture of 'self' with non-sendable type 'GTNetMonReachabilityBased?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
197 |         }
198 |
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMonReachabilityBased.swift:196:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
194 |     func startMonitoring() {
195 |         DispatchQueue.main.async { [weak self] in
196 |             self?.setupReachability()
    |             |- 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
197 |         }
198 |
[5/8] Compiling GTNetMon GTCommon.swift
[6/8] Compiling GTNetMon GTNetMon.swift
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMon.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' may have shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |  */
 42 | open class GTNetMon: GTNetMonProvider {
    |            `- note: class 'GTNetMon' does not conform to the 'Sendable' protocol
 43 |
 44 |     /// The `GTNetMon` shared instance.
 45 |     public static let shared = GTNetMon()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' 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
 46 |
 47 |
[7/8] Emitting module GTNetMon
/Users/admin/builder/spi-builder-workspace/Sources/GTNetMon/GTNetMon.swift:45:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' may have shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |  */
 42 | open class GTNetMon: GTNetMonProvider {
    |            `- note: class 'GTNetMon' does not conform to the 'Sendable' protocol
 43 |
 44 |     /// The `GTNetMon` shared instance.
 45 |     public static let shared = GTNetMon()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GTNetMon' 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
 46 |
 47 |
[8/8] Compiling GTNetMon GTNetMonNetworkBased.swift
Build complete! (19.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GTNetMon",
  "name" : "GTNetMon",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "GTNetMon",
      "targets" : [
        "GTNetMon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GTNetMon",
      "module_type" : "SwiftTarget",
      "name" : "GTNetMon",
      "path" : "Sources/GTNetMon",
      "product_memberships" : [
        "GTNetMon"
      ],
      "sources" : [
        "GTCommon.swift",
        "GTNetMon.swift",
        "GTNetMonNetworkBased.swift",
        "GTNetMonProvider.swift",
        "GTNetMonReachabilityBased.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.