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 Unlocker, reference v0.2.0 (be18df), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:53:17 UTC.

Swift 6 data race errors: 2

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/mat1th/unlocker.git
Reference: v0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mat1th/unlocker
 * tag               v0.2.0     -> FETCH_HEAD
HEAD is now at be18dff feat: update depedecy swift-argument-parser; (#2)
Cloned https://github.com/mat1th/unlocker.git
Revision (git rev-parse @):
be18dffbbebad618792f7951b05594fb71b8ba16
SUCCESS checkout https://github.com/mat1th/unlocker.git at v0.2.0
Fetching https://github.com/apple/swift-argument-parser
[1/12353] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.63s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (0.55s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.3.0
[32750/21843910] Downloading https://github.com/realm/SwiftLint/releases/download/0.49.0/SwiftLintBinary-macos.artifactbundle.zip
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.49.0/SwiftLintBinary-macos.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.49.0/SwiftLintBinary-macos.artifactbundle.zip (2.22s)
========================================
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": "unlocker",
      "name": "Unlocker",
      "url": "https://github.com/mat1th/unlocker.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/unlocker",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "1.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/mat1th/unlocker.git
[1/301] Fetching unlocker
Fetched https://github.com/mat1th/unlocker.git from cache (0.74s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.59s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.04s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/mat1th/unlocker.git
Working copy of https://github.com/mat1th/unlocker.git resolved at v0.2.0 (be18dff)
Fetching binary artifact https://github.com/realm/SwiftLint/releases/download/0.49.0/SwiftLintBinary-macos.artifactbundle.zip from cache
Fetched https://github.com/realm/SwiftLint/releases/download/0.49.0/SwiftLintBinary-macos.artifactbundle.zip from cache (0.92s)
Found 1 product dependencies
  - swift-argument-parser
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mat1th/unlocker.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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftLintPlugin
Building for debugging...
[2/11] Write sources
[4/11] Write unlocker-entitlement.plist
[4/11] Write sources
[7/11] Write swift-version--7754E27361AE5C74.txt
[9/25] Emitting module ArgumentParserToolInfo
[10/25] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/63] Compiling ArgumentParser ArgumentHelp.swift
[12/63] Compiling ArgumentParser ArgumentVisibility.swift
[13/63] Compiling ArgumentParser CompletionKind.swift
[14/63] Compiling ArgumentParser Errors.swift
[15/63] Compiling ArgumentParser InputOrigin.swift
[16/63] Compiling ArgumentParser Name.swift
[17/63] Compiling ArgumentParser Parsed.swift
[18/63] Compiling ArgumentParser ParsedValues.swift
[19/63] Compiling ArgumentParser AsyncParsableCommand.swift
[20/63] Compiling ArgumentParser CommandConfiguration.swift
[21/63] Compiling ArgumentParser EnumerableFlag.swift
[22/63] Compiling ArgumentParser ExpressibleByArgument.swift
[23/63] Compiling ArgumentParser Flag.swift
[24/63] Compiling ArgumentParser NameSpecification.swift
[25/63] Compiling ArgumentParser Option.swift
[26/63] Compiling ArgumentParser OptionGroup.swift
[27/67] Emitting module ArgumentParser
[28/67] Compiling ArgumentParser ArgumentDefinition.swift
[29/67] Compiling ArgumentParser ArgumentSet.swift
[30/67] Compiling ArgumentParser CommandParser.swift
[31/67] Compiling ArgumentParser InputKey.swift
[32/67] Compiling ArgumentParser Platform.swift
[33/67] Compiling ArgumentParser SequenceExtensions.swift
[34/67] Compiling ArgumentParser StringExtensions.swift
[35/67] Compiling ArgumentParser Tree.swift
[36/67] Compiling ArgumentParser HelpGenerator.swift
[37/67] Compiling ArgumentParser MessageInfo.swift
[38/67] Compiling ArgumentParser UsageGenerator.swift
[39/67] Compiling ArgumentParser CollectionExtensions.swift
[40/67] Compiling ArgumentParser BashCompletionsGenerator.swift
[41/67] Compiling ArgumentParser CompletionsGenerator.swift
[42/67] Compiling ArgumentParser FishCompletionsGenerator.swift
[43/67] Compiling ArgumentParser ZshCompletionsGenerator.swift
[44/67] Compiling ArgumentParser Argument.swift
[45/67] Compiling ArgumentParser ParsableArguments.swift
[46/67] Compiling ArgumentParser ParsableArgumentsValidation.swift
[47/67] Compiling ArgumentParser ParsableCommand.swift
[48/67] Compiling ArgumentParser ArgumentDecoder.swift
[49/67] Compiling ArgumentParser ParserError.swift
[50/67] Compiling ArgumentParser SplitArguments.swift
[51/67] Compiling ArgumentParser DumpHelpGenerator.swift
[52/67] Compiling ArgumentParser HelpCommand.swift
[53/67] Compiling UnlockerCore ExecuteFramworkUseCase.swift
[54/68] Compiling UnlockerCore WakeScreenUseCase.swift
[55/68] Emitting module UnlockerCore
[58/68] Compiling UnlockerCore LockScreenIsActiveUseCase.swift
[59/68] Compiling UnlockerCore StopScreenSaverUseCase.swift
[60/68] Compiling UnlockerCore LockScreenUseCase.swift
[61/68] Compiling UnlockerCore PostKeyEventUseCase.swift
[64/68] Compiling UnlockerCore StartSceenSaverUseCase.swift
[65/68] Compiling UnlockerCore UnlockScreenUseCase.swift
[66/74] Compiling unlocker main.swift
[67/74] Compiling unlocker LockCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Lock/LockCommand.swift:5:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | struct LockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |         commandName: "lock",
 7 |         abstract: "Lock your machine"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Lock/LockCommand.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 2 | import UnlockerCore
 3 |
 4 | struct LockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                |- 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
 6 |         commandName: "lock",
 7 |         abstract: "Lock your machine"
[68/74] Emitting module unlocker
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Lock/LockCommand.swift:5:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | struct LockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |         commandName: "lock",
 7 |         abstract: "Lock your machine"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Lock/LockCommand.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 2 | import UnlockerCore
 3 |
 4 | struct LockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                |- 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
 6 |         commandName: "lock",
 7 |         abstract: "Lock your machine"
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Unlock/UnlockCommand.swift:5:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | struct UnlockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |         commandName: "unlock",
 7 |         abstract: "Unlock your machine (will ask for your password to unlock)"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Unlock/UnlockCommand.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 2 | import Foundation
 3 |
 4 | struct UnlockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                |- 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
 6 |         commandName: "unlock",
 7 |         abstract: "Unlock your machine (will ask for your password to unlock)"
[69/74] Compiling unlocker Input.swift
[70/74] Compiling unlocker UnlockCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Unlock/UnlockCommand.swift:5:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | struct UnlockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |         commandName: "unlock",
 7 |         abstract: "Unlock your machine (will ask for your password to unlock)"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 11 |
 12 | /// The configuration for a command.
 13 | public struct CommandConfiguration {
    |               `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
 14 |   /// The name of the command to use on the command line.
 15 |   ///
/Users/admin/builder/spi-builder-workspace/Sources/unlocker/Commands/Unlock/UnlockCommand.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 1 | import ArgumentParser
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
 2 | import Foundation
 3 |
 4 | struct UnlockCommand: ParsableCommand {
 5 |     static let configuration = CommandConfiguration(
   |                |- 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
 6 |         commandName: "unlock",
 7 |         abstract: "Unlock your machine (will ask for your password to unlock)"
[71/74] Compiling unlocker UnlockerCommandSetup.swift
[71/74] Write Objects.LinkFileList
[72/74] Linking unlocker
[73/74] Applying unlocker
Build complete! (18.19s)
warning: Build tool command 'Running SwiftLint for unlocker' (applied to target 'unlocker') does not declare any output files and therefore will not run. You may want to consider updating the given package to tools-version 6.0 (or higher) which would run such a build tool command even without declared outputs.
warning: Build tool command 'Running SwiftLint for UnlockerCore' (applied to target 'UnlockerCore') does not declare any output files and therefore will not run. You may want to consider updating the given package to tools-version 6.0 (or higher) which would run such a build tool command even without declared outputs.
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    }
  ],
  "manifest_display_name" : "Unlocker",
  "name" : "Unlocker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "unlocker",
      "targets" : [
        "unlocker"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "UnlockerCore",
      "targets" : [
        "UnlockerCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "unlocker",
      "module_type" : "SwiftTarget",
      "name" : "unlocker",
      "path" : "Sources/unlocker",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "unlocker"
      ],
      "sources" : [
        "Commands/Lock/LockCommand.swift",
        "Commands/Unlock/UnlockCommand.swift",
        "Commands/Unlock/UnlockerCommandSetup.swift",
        "View/Input.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "UnlockerCore",
        "SwiftLintPlugin"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "UnlockerCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "UnlockerCoreTests",
      "path" : "Tests/UnlockerCoreTests",
      "sources" : [
        "TestDoubles/AccessablityPermissionIsAllowedSpy.swift",
        "TestDoubles/CGEventProtocolSpy.swift",
        "TestDoubles/ExecuteFramworkUseCaseSpy.swift",
        "TestDoubles/LockScreenIsActiveUseCaseSpy.swift",
        "TestDoubles/PostKeyEventUseCaseSpy.swift",
        "TestDoubles/StopScreenSaverUseCaseSpy.swift",
        "TestDoubles/UnlockScreenUseCaseSpy.swift",
        "TestDoubles/WakeScreenUseCaseSpy.swift",
        "UseCases/LockScreen/LockScreenUseCaseTests.swift",
        "UseCases/LockScreen/StopScreenSaverUseCaseTests.swift",
        "UseCases/LockScreen/UnlockScreenUseCaseTest.swift"
      ],
      "target_dependencies" : [
        "UnlockerCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UnlockerCore",
      "module_type" : "SwiftTarget",
      "name" : "UnlockerCore",
      "path" : "Sources/UnlockerCore",
      "product_memberships" : [
        "unlocker",
        "UnlockerCore"
      ],
      "sources" : [
        "Entities/CGEventProtocol.swift",
        "Entities/KeyCode.swift",
        "Extentions/CGEvent+CGEventProtocol.swift",
        "UseCases/AccessablityPermissionIsAllowedUseCase.swift",
        "UseCases/LockScreen/LockScreenIsActiveUseCase.swift",
        "UseCases/LockScreen/LockScreenUseCase.swift",
        "UseCases/LockScreen/UnlockScreenUseCase.swift",
        "UseCases/ScreenSaver/StartSceenSaverUseCase.swift",
        "UseCases/ScreenSaver/StopScreenSaverUseCase.swift",
        "UseCases/Utils/ExecuteFramworkUseCase.swift",
        "UseCases/Utils/PostKeyEventUseCase.swift",
        "UseCases/Utils/WakeScreenUseCase.swift"
      ],
      "target_dependencies" : [
        "SwiftLintPlugin"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftLintPlugin",
      "module_type" : "PluginTarget",
      "name" : "SwiftLintPlugin",
      "path" : "Plugins/SwiftLintPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "unlocker",
        "UnlockerCore"
      ],
      "sources" : [
        "SwiftLintPlugin.swift"
      ],
      "target_dependencies" : [
        "SwiftLintBinary"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "SwiftLintBinary",
      "module_type" : "BinaryTarget",
      "name" : "SwiftLintBinary",
      "path" : "remote/archive/SwiftLintBinary-macos.artifactbundle.zip",
      "product_memberships" : [
        "unlocker",
        "UnlockerCore"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.6"
}
Done.