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 AppleGPUInfo, reference main (242264), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 13:38:02 UTC.

Swift 6 data race errors: 4

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/philipturner/applegpuinfo.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/philipturner/applegpuinfo
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2422643 Update README.md
Cloned https://github.com/philipturner/applegpuinfo.git
Revision (git rev-parse @):
24226431095c614c88de686ea5afcc99d7cb31f5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/philipturner/applegpuinfo.git at main
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.63s)
Fetching https://github.com/devicekit/DeviceKit
[1/4049] Fetching devicekit
Fetched https://github.com/devicekit/DeviceKit from cache (0.98s)
Creating working copy for https://github.com/devicekit/DeviceKit
Working copy of https://github.com/devicekit/DeviceKit resolved at master (513b9d7)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at main (cf4c472)
========================================
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": "applegpuinfo",
      "name": "AppleGPUInfo",
      "url": "https://github.com/philipturner/applegpuinfo.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/applegpuinfo",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        },
        {
          "identity": "devicekit",
          "name": "DeviceKit",
          "url": "https://github.com/devicekit/DeviceKit",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DeviceKit",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/philipturner/applegpuinfo.git
[1/411] Fetching applegpuinfo
Fetched https://github.com/philipturner/applegpuinfo.git from cache (0.94s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.49s)
Fetching https://github.com/devicekit/DeviceKit from cache
Fetched https://github.com/devicekit/DeviceKit from cache (0.52s)
Creating working copy for https://github.com/philipturner/applegpuinfo.git
Working copy of https://github.com/philipturner/applegpuinfo.git resolved at main (2422643)
Creating working copy for https://github.com/devicekit/DeviceKit
Working copy of https://github.com/devicekit/DeviceKit resolved at master (513b9d7)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at main (cf4c472)
Found 2 product dependencies
  - swift-argument-parser
  - DeviceKit
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/philipturner/applegpuinfo.git
https://github.com/philipturner/applegpuinfo.git
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "devicekit",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/devicekit/DeviceKit"
    }
  ],
  "manifest_display_name" : "AppleGPUInfo",
  "name" : "AppleGPUInfo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "AppleGPUInfo",
      "targets" : [
        "AppleGPUInfo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "gpuinfo",
      "targets" : [
        "AppleGPUInfoTool"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AppleGPUInfoTool",
      "module_type" : "SwiftTarget",
      "name" : "AppleGPUInfoTool",
      "path" : "Sources/AppleGPUInfoTool",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "gpuinfo"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "AppleGPUInfo"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AppleGPUInfoTests",
      "module_type" : "SwiftTarget",
      "name" : "AppleGPUInfoTests",
      "path" : "Tests/AppleGPUInfoTests",
      "sources" : [
        "AppleGPUInfoTests.swift"
      ],
      "target_dependencies" : [
        "AppleGPUInfo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppleGPUInfo",
      "module_type" : "SwiftTarget",
      "name" : "AppleGPUInfo",
      "path" : "Sources/AppleGPUInfo",
      "product_dependencies" : [
        "DeviceKit"
      ],
      "product_memberships" : [
        "AppleGPUInfo",
        "gpuinfo"
      ],
      "sources" : [
        "AppleGPUInfo.swift",
        "CAppleGPUInfo.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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 GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/11] Write sources
[3/11] Write gpuinfo-entitlement.plist
[3/11] Write sources
[7/11] Write swift-version-2F0A5646E1D333AE.txt
[9/16] Emitting module ArgumentParserToolInfo
[10/16] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/61] Compiling ArgumentParser ArgumentDiscussion.swift
[12/61] Compiling ArgumentParser ArgumentHelp.swift
[13/61] Compiling ArgumentParser ArgumentVisibility.swift
[14/61] Compiling ArgumentParser CompletionKind.swift
[15/61] Compiling ArgumentParser Errors.swift
[16/65] Compiling ArgumentParser CommandConfiguration.swift
[17/65] Compiling ArgumentParser CommandGroup.swift
[18/65] Compiling ArgumentParser EnumerableFlag.swift
[19/65] Compiling ArgumentParser ExpressibleByArgument.swift
[20/65] Compiling ArgumentParser ParsableArguments.swift
[21/65] Emitting module ArgumentParser
[22/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[23/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[24/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[25/65] Compiling ArgumentParser UniqueNamesValidator.swift
[26/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/65] Compiling ArgumentParser CompletionsGenerator.swift
[28/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/65] Compiling ArgumentParser Argument.swift
[31/65] Compiling AppleGPUInfo CAppleGPUInfo.swift
[32/65] Emitting module AppleGPUInfo
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfo/AppleGPUInfo.swift:9:14: warning: non-final class 'GPUInfoError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  7 |
  8 | /// An error returned by the AppleGPUInfo library.
  9 | public class GPUInfoError: Error {
    |              `- warning: non-final class 'GPUInfoError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 |   /// The description of the error.
 11 |   public let description: String
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfo/AppleGPUInfo.swift:14:16: warning: stored property '_cDescripton' of 'Sendable'-conforming class 'GPUInfoError' has non-sendable type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>'); this is an error in the Swift 6 language mode
 12 |
 13 |   /// For compatibility with the C API, store an explicit C string.
 14 |   internal let _cDescripton: UnsafeMutablePointer<CChar>
    |                `- warning: stored property '_cDescripton' of 'Sendable'-conforming class 'GPUInfoError' has non-sendable type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>'); this is an error in the Swift 6 language mode
 15 |
 16 |   /// Initialize the error object.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[33/65] Compiling AppleGPUInfo AppleGPUInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfo/AppleGPUInfo.swift:9:14: warning: non-final class 'GPUInfoError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  7 |
  8 | /// An error returned by the AppleGPUInfo library.
  9 | public class GPUInfoError: Error {
    |              `- warning: non-final class 'GPUInfoError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 |   /// The description of the error.
 11 |   public let description: String
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfo/AppleGPUInfo.swift:14:16: warning: stored property '_cDescripton' of 'Sendable'-conforming class 'GPUInfoError' has non-sendable type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>'); this is an error in the Swift 6 language mode
 12 |
 13 |   /// For compatibility with the C API, store an explicit C string.
 14 |   internal let _cDescripton: UnsafeMutablePointer<CChar>
    |                `- warning: stored property '_cDescripton' of 'Sendable'-conforming class 'GPUInfoError' has non-sendable type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>'); this is an error in the Swift 6 language mode
 15 |
 16 |   /// Initialize the error object.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[34/65] Compiling ArgumentParser ParsableCommand.swift
[35/65] Compiling ArgumentParser ArgumentDecoder.swift
[36/65] Compiling ArgumentParser ArgumentDefinition.swift
[37/65] Compiling ArgumentParser ArgumentSet.swift
[38/65] Compiling ArgumentParser CommandParser.swift
[39/65] Compiling ArgumentParser InputKey.swift
[40/65] Compiling ArgumentParser InputOrigin.swift
[41/65] Compiling ArgumentParser Name.swift
[42/65] Compiling ArgumentParser Parsed.swift
[43/65] Compiling ArgumentParser ParsedValues.swift
[44/65] Compiling ArgumentParser MessageInfo.swift
[45/65] Compiling ArgumentParser UsageGenerator.swift
[46/65] Compiling ArgumentParser CollectionExtensions.swift
[47/65] Compiling ArgumentParser Mutex.swift
[48/65] Compiling ArgumentParser Platform.swift
[49/65] Compiling ArgumentParser SequenceExtensions.swift
[50/65] Compiling ArgumentParser StringExtensions.swift
[51/65] Compiling ArgumentParser Tree.swift
[52/65] Compiling ArgumentParser CodingKeyValidator.swift
[53/65] Compiling ArgumentParser Flag.swift
[54/65] Compiling ArgumentParser NameSpecification.swift
[55/65] Compiling ArgumentParser Option.swift
[56/65] Compiling ArgumentParser OptionGroup.swift
[57/65] Compiling ArgumentParser AsyncParsableCommand.swift
[58/65] Compiling ArgumentParser ParserError.swift
[59/65] Compiling ArgumentParser SplitArguments.swift
[60/65] Compiling ArgumentParser DumpHelpGenerator.swift
[61/65] Compiling ArgumentParser HelpCommand.swift
[62/65] Compiling ArgumentParser HelpGenerator.swift
[63/67] Emitting module AppleGPUInfoTool
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfoTool/main.swift:16:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | struct GPUInfoTool: ParsableCommand {
15 |   // Define a static property that contains the command configuration
16 |   static var configuration = CommandConfiguration(
   |              |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     // The name of the command, defaults to the type name
18 |     commandName: "gpuinfo",
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfoTool/main.swift:39:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | struct List: ParsableCommand {
38 |   // Define a static property that contains the subcommand configuration
39 |   static var configuration = CommandConfiguration(
   |              |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |     // The name of the subcommand, defaults to the type name
41 |     commandName: "list",
[64/67] Compiling AppleGPUInfoTool main.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfoTool/main.swift:16:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | struct GPUInfoTool: ParsableCommand {
15 |   // Define a static property that contains the command configuration
16 |   static var configuration = CommandConfiguration(
   |              |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     // The name of the command, defaults to the type name
18 |     commandName: "gpuinfo",
/Users/admin/builder/spi-builder-workspace/Sources/AppleGPUInfoTool/main.swift:39:14: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 | struct List: ParsableCommand {
38 |   // Define a static property that contains the subcommand configuration
39 |   static var configuration = CommandConfiguration(
   |              |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |     // The name of the subcommand, defaults to the type name
41 |     commandName: "list",
[64/67] Write Objects.LinkFileList
[65/67] Linking gpuinfo
[66/67] Applying gpuinfo
Build complete! (8.08s)
warning: 'devicekit': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/DeviceKit/Source/Device.swift.gyb
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/DeviceKit/Source/Info.plist
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "devicekit",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/devicekit/DeviceKit"
    }
  ],
  "manifest_display_name" : "AppleGPUInfo",
  "name" : "AppleGPUInfo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "AppleGPUInfo",
      "targets" : [
        "AppleGPUInfo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "gpuinfo",
      "targets" : [
        "AppleGPUInfoTool"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AppleGPUInfoTool",
      "module_type" : "SwiftTarget",
      "name" : "AppleGPUInfoTool",
      "path" : "Sources/AppleGPUInfoTool",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "gpuinfo"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "AppleGPUInfo"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AppleGPUInfoTests",
      "module_type" : "SwiftTarget",
      "name" : "AppleGPUInfoTests",
      "path" : "Tests/AppleGPUInfoTests",
      "sources" : [
        "AppleGPUInfoTests.swift"
      ],
      "target_dependencies" : [
        "AppleGPUInfo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppleGPUInfo",
      "module_type" : "SwiftTarget",
      "name" : "AppleGPUInfo",
      "path" : "Sources/AppleGPUInfo",
      "product_dependencies" : [
        "DeviceKit"
      ],
      "product_memberships" : [
        "AppleGPUInfo",
        "gpuinfo"
      ],
      "sources" : [
        "AppleGPUInfo.swift",
        "CAppleGPUInfo.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.