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 BluetoothConnector, reference 2.1.0 (4031a7), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 02:52:41 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lapfelix/bluetoothconnector.git
Reference: 2.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lapfelix/bluetoothconnector
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at 4031a78 Set deployment target
Cloned https://github.com/lapfelix/bluetoothconnector.git
Revision (git rev-parse @):
4031a786653f6612466011cf1ed00a1fe8880e08
SUCCESS checkout https://github.com/lapfelix/bluetoothconnector.git at 2.1.0
Fetching https://github.com/apple/swift-argument-parser.git
[1/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.62s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.2.3 (2.90s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.2.3
========================================
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": "bluetoothconnector",
      "name": "BluetoothConnector",
      "url": "https://github.com/lapfelix/bluetoothconnector.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bluetoothconnector",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser.git",
          "version": "1.2.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/lapfelix/bluetoothconnector.git
[1/219] Fetching bluetoothconnector
Fetched https://github.com/lapfelix/bluetoothconnector.git from cache (0.77s)
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.63s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.2.3 (0.03s)
Creating working copy for https://github.com/lapfelix/bluetoothconnector.git
Working copy of https://github.com/lapfelix/bluetoothconnector.git resolved at 2.1.0 (4031a78)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.2.3
Found 1 product dependencies
  - swift-argument-parser
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/lapfelix/bluetoothconnector.git
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "exact" : [
          "1.2.3"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    }
  ],
  "manifest_display_name" : "BluetoothConnector",
  "name" : "BluetoothConnector",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "BluetoothConnector",
      "targets" : [
        "BluetoothConnector"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BluetoothConnectorTests",
      "module_type" : "SwiftTarget",
      "name" : "BluetoothConnectorTests",
      "path" : "Tests/BluetoothConnectorTests",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "sources" : [
        "BluetoothConnectorTests.swift"
      ],
      "target_dependencies" : [
        "BluetoothConnector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BluetoothConnector",
      "module_type" : "SwiftTarget",
      "name" : "BluetoothConnector",
      "path" : "Sources/BluetoothConnector",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "BluetoothConnector"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/9] Write sources
[4/9] Write BluetoothConnector-entitlement.plist
[5/9] Write swift-version--7754E27361AE5C74.txt
[7/11] Emitting module ArgumentParserToolInfo
[8/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/49] Compiling ArgumentParser ArgumentHelp.swift
[10/49] Compiling ArgumentParser ArgumentVisibility.swift
[11/49] Compiling ArgumentParser CompletionKind.swift
[12/49] Compiling ArgumentParser Errors.swift
[13/53] Compiling ArgumentParser AsyncParsableCommand.swift
[14/53] Compiling ArgumentParser CommandConfiguration.swift
[15/53] Compiling ArgumentParser EnumerableFlag.swift
[16/53] Compiling ArgumentParser ExpressibleByArgument.swift
[17/53] Emitting module ArgumentParser
[18/53] Compiling ArgumentParser BashCompletionsGenerator.swift
[19/53] Compiling ArgumentParser CompletionsGenerator.swift
[20/53] Compiling ArgumentParser FishCompletionsGenerator.swift
[21/53] Compiling ArgumentParser ZshCompletionsGenerator.swift
[22/53] Compiling ArgumentParser Argument.swift
[23/53] Compiling ArgumentParser Flag.swift
[24/53] Compiling ArgumentParser NameSpecification.swift
[25/53] Compiling ArgumentParser Option.swift
[26/53] Compiling ArgumentParser OptionGroup.swift
[27/53] Compiling ArgumentParser Platform.swift
[28/53] Compiling ArgumentParser SequenceExtensions.swift
[29/53] Compiling ArgumentParser StringExtensions.swift
[30/53] Compiling ArgumentParser Tree.swift
[31/53] Compiling ArgumentParser ArgumentDefinition.swift
[32/53] Compiling ArgumentParser ArgumentSet.swift
[33/53] Compiling ArgumentParser CommandParser.swift
[34/53] Compiling ArgumentParser InputKey.swift
[35/53] Compiling ArgumentParser ParsableArguments.swift
[36/53] Compiling ArgumentParser ParsableArgumentsValidation.swift
[37/53] Compiling ArgumentParser ParsableCommand.swift
[38/53] Compiling ArgumentParser ArgumentDecoder.swift
[39/53] Compiling ArgumentParser InputOrigin.swift
[40/53] Compiling ArgumentParser Name.swift
[41/53] Compiling ArgumentParser Parsed.swift
[42/53] Compiling ArgumentParser ParsedValues.swift
[43/53] Compiling ArgumentParser ParserError.swift
[44/53] Compiling ArgumentParser SplitArguments.swift
[45/53] Compiling ArgumentParser DumpHelpGenerator.swift
[46/53] Compiling ArgumentParser HelpCommand.swift
[47/53] Compiling ArgumentParser HelpGenerator.swift
[48/53] Compiling ArgumentParser MessageInfo.swift
[49/53] Compiling ArgumentParser UsageGenerator.swift
[50/53] Compiling ArgumentParser CollectionExtensions.swift
[51/55] Emitting module BluetoothConnector
/Users/admin/builder/spi-builder-workspace/Sources/BluetoothConnector/main.swift:152:16: 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
150 |     var macAddress: String?
151 |
152 |     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: annotate 'configuration' 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
153 |         commandName: utilityName(),
154 |         abstract: "Connect/disconnects Bluetooth devices.",
[52/55] Compiling BluetoothConnector main.swift
/Users/admin/builder/spi-builder-workspace/Sources/BluetoothConnector/main.swift:152:16: 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
150 |     var macAddress: String?
151 |
152 |     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: annotate 'configuration' 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
153 |         commandName: utilityName(),
154 |         abstract: "Connect/disconnects Bluetooth devices.",
[52/55] Write Objects.LinkFileList
[53/55] Linking BluetoothConnector
[54/55] Applying BluetoothConnector
Build complete! (11.42s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "exact" : [
          "1.2.3"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    }
  ],
  "manifest_display_name" : "BluetoothConnector",
  "name" : "BluetoothConnector",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "BluetoothConnector",
      "targets" : [
        "BluetoothConnector"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BluetoothConnectorTests",
      "module_type" : "SwiftTarget",
      "name" : "BluetoothConnectorTests",
      "path" : "Tests/BluetoothConnectorTests",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "sources" : [
        "BluetoothConnectorTests.swift"
      ],
      "target_dependencies" : [
        "BluetoothConnector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BluetoothConnector",
      "module_type" : "SwiftTarget",
      "name" : "BluetoothConnector",
      "path" : "Sources/BluetoothConnector",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "BluetoothConnector"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Done.