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 Hardware, reference v1.0.1 (ad1632), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 21:22:53 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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/Hardware.git
Reference: v1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/Hardware
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at ad16325 fixed for Swift 5.0
Cloned https://github.com/elegantchaos/Hardware.git
Revision (git rev-parse @):
ad16325e879052c73c8226399ea177e993059fcf
SUCCESS checkout https://github.com/elegantchaos/Hardware.git at v1.0.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": "hardware",
      "name": "Hardware",
      "url": "https://github.com/elegantchaos/Hardware.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Hardware",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/Hardware.git
[1/183] Fetching hardware
Fetched https://github.com/elegantchaos/Hardware.git from cache (0.66s)
Creating working copy for https://github.com/elegantchaos/Hardware.git
Working copy of https://github.com/elegantchaos/Hardware.git resolved at v1.0.1 (ad16325)
warning: '.resolve-product-dependencies': dependency 'hardware' 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/elegantchaos/Hardware.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling Hardware Platform.swift
[4/12] Compiling Hardware IORegistryEntry.swift
[5/12] Compiling Hardware IOService.swift
[6/12] Compiling Hardware IOObject.swift
[7/12] Compiling Hardware EthernetInterface.swift
[8/12] Compiling Hardware IOIterator.swift
[9/12] Compiling Hardware Device.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = Device()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'main' 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
16 |
17 |     #if canImport(IOKit)
[10/12] Emitting module Hardware
/Users/admin/builder/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = Device()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'main' 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
16 |
17 |     #if canImport(IOKit)
[11/12] Compiling Hardware MacAddress.swift
[12/12] Compiling Hardware System.swift
Build complete! (10.61s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Hardware",
  "name" : "Hardware",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Hardware",
      "targets" : [
        "Hardware"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HardwareTests",
      "module_type" : "SwiftTarget",
      "name" : "HardwareTests",
      "path" : "Tests/HardwareTests",
      "sources" : [
        "DeviceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Hardware"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hardware",
      "module_type" : "SwiftTarget",
      "name" : "Hardware",
      "path" : "Sources/Hardware",
      "product_memberships" : [
        "Hardware"
      ],
      "sources" : [
        "Device.swift",
        "EthernetInterface.swift",
        "IOIterator.swift",
        "IOObject.swift",
        "IORegistryEntry.swift",
        "IOService.swift",
        "MacAddress.swift",
        "Platform.swift",
        "System.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.