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 SwiftCPUDetect, reference 1.3.0 (c55818), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 22:45:30 UTC.

Swift 6 data race errors: 4

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/ITzTravelInTime/SwiftCPUDetect.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ITzTravelInTime/SwiftCPUDetect
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at c55818e Version 1.3.0
Cloned https://github.com/ITzTravelInTime/SwiftCPUDetect.git
Revision (git rev-parse @):
c55818e68209491c91b8f7bf1a9b042614658467
SUCCESS checkout https://github.com/ITzTravelInTime/SwiftCPUDetect.git at 1.3.0
========================================
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": "swiftcpudetect",
      "name": "SwiftCPUDetect",
      "url": "https://github.com/ITzTravelInTime/SwiftCPUDetect.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftCPUDetect",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ITzTravelInTime/SwiftCPUDetect.git
[1/630] Fetching swiftcpudetect
Fetched https://github.com/ITzTravelInTime/SwiftCPUDetect.git from cache (0.89s)
Creating working copy for https://github.com/ITzTravelInTime/SwiftCPUDetect.git
Working copy of https://github.com/ITzTravelInTime/SwiftCPUDetect.git resolved at 1.3.0 (c55818e)
warning: '.resolve-product-dependencies': dependency 'swiftcpudetect' 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/ITzTravelInTime/SwiftCPUDetect.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/7] Compiling SwiftCPUDetect Print.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/Print.swift:14:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | ///This class manages prints
13 | open class GeneralPrinter {
14 |     public static var enabled: Bool = true
   |                       |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'enabled' 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 |     open class var prefix: String{
16 |         return ""
[4/7] Emitting module SwiftCPUDetect
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:20:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
19 |         struct MEM{
20 |             static var state: AppExecutionMode? = nil
   |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'state' 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
21 |         }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/Print.swift:14:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | ///This class manages prints
13 | open class GeneralPrinter {
14 |     public static var enabled: Bool = true
   |                       |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'enabled' 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 |     open class var prefix: String{
16 |         return ""
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:52:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
 51 |         struct MEM{
 52 |             static var state: CpuArchitecture? = nil
    |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'state' 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
 53 |         }
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:158:24: warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
157 |         struct MEM{
158 |             static var status: [CpuArchitecture]!
    |                        |- warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'status' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'status' 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
159 |         }
160 |
[5/7] Compiling SwiftCPUDetect HwInfo.swift
[6/7] Compiling SwiftCPUDetect AppExecution.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:20:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
19 |         struct MEM{
20 |             static var state: AppExecutionMode? = nil
   |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'state' 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
21 |         }
22 |
[7/7] Compiling SwiftCPUDetect SwiftCPUDetect.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:52:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
 51 |         struct MEM{
 52 |             static var state: CpuArchitecture? = nil
    |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'state' 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
 53 |         }
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:158:24: warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
157 |         struct MEM{
158 |             static var status: [CpuArchitecture]!
    |                        |- warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'status' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'status' 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
159 |         }
160 |
Build complete! (7.05s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCPUDetect",
  "name" : "SwiftCPUDetect",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "10.9"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftCPUDetect",
      "targets" : [
        "SwiftCPUDetect"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCPUDetectTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCPUDetectTests",
      "path" : "Tests/SwiftCPUDetectTests",
      "sources" : [
        "SwiftCPUDetectTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCPUDetect"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCPUDetect",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCPUDetect",
      "path" : "Sources/SwiftCPUDetect",
      "product_memberships" : [
        "SwiftCPUDetect"
      ],
      "sources" : [
        "AppExecution.swift",
        "HwInfo.swift",
        "Print.swift",
        "SwiftCPUDetect.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.