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 master (e14caa), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 02:50:47 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lapfelix/bluetoothconnector
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e14caa1 Create .spi.yml
Cloned https://github.com/lapfelix/bluetoothconnector.git
Revision (git rev-parse @):
e14caa151983964cea3f2cb4382d9150813bbe73
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/lapfelix/bluetoothconnector.git at master
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.53s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.2.3 (3.02s)
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.80s)
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.59s)
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 master (e14caa1)
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] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/11] Emitting module ArgumentParserToolInfo
[9/49] Compiling ArgumentParser InputOrigin.swift
[10/49] Compiling ArgumentParser Name.swift
[11/49] Compiling ArgumentParser Parsed.swift
[12/49] Compiling ArgumentParser ParsedValues.swift
[13/53] Compiling ArgumentParser BashCompletionsGenerator.swift
[14/53] Compiling ArgumentParser CompletionsGenerator.swift
[15/53] Compiling ArgumentParser FishCompletionsGenerator.swift
[16/53] Compiling ArgumentParser ZshCompletionsGenerator.swift
[17/53] Compiling ArgumentParser Argument.swift
[18/53] Compiling ArgumentParser Flag.swift
[19/53] Compiling ArgumentParser NameSpecification.swift
[20/53] Compiling ArgumentParser Option.swift
[21/53] Compiling ArgumentParser OptionGroup.swift
[22/53] Emitting module ArgumentParser
[23/53] Compiling ArgumentParser Platform.swift
[24/53] Compiling ArgumentParser SequenceExtensions.swift
[25/53] Compiling ArgumentParser StringExtensions.swift
[26/53] Compiling ArgumentParser Tree.swift
[27/53] Compiling ArgumentParser ParsableArguments.swift
[28/53] Compiling ArgumentParser ParsableArgumentsValidation.swift
[29/53] Compiling ArgumentParser ParsableCommand.swift
[30/53] Compiling ArgumentParser ArgumentDecoder.swift
[31/53] Compiling ArgumentParser ArgumentHelp.swift
[32/53] Compiling ArgumentParser ArgumentVisibility.swift
[33/53] Compiling ArgumentParser CompletionKind.swift
[34/53] Compiling ArgumentParser Errors.swift
[35/53] Compiling ArgumentParser ParserError.swift
[36/53] Compiling ArgumentParser SplitArguments.swift
[37/53] Compiling ArgumentParser DumpHelpGenerator.swift
[38/53] Compiling ArgumentParser HelpCommand.swift
[39/53] Compiling ArgumentParser AsyncParsableCommand.swift
[40/53] Compiling ArgumentParser CommandConfiguration.swift
[41/53] Compiling ArgumentParser EnumerableFlag.swift
[42/53] Compiling ArgumentParser ExpressibleByArgument.swift
[43/53] Compiling ArgumentParser ArgumentDefinition.swift
[44/53] Compiling ArgumentParser ArgumentSet.swift
[45/53] Compiling ArgumentParser CommandParser.swift
[46/53] Compiling ArgumentParser InputKey.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] 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] 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] Write Objects.LinkFileList
[53/55] Linking BluetoothConnector
[54/55] Applying BluetoothConnector
Build complete! (12.33s)
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.