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 Codedeck, reference master (cd34f6), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:51:34 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sherlouk/Codedeck.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sherlouk/Codedeck
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cd34f63 Merge pull request #16 from Sherlouk/ci
Cloned https://github.com/Sherlouk/Codedeck.git
Revision (git rev-parse @):
cd34f634adc519ba69422e520588404de992bd65
SUCCESS checkout https://github.com/Sherlouk/Codedeck.git at master
========================================
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": "codedeck",
      "name": "Codedeck",
      "url": "https://github.com/Sherlouk/Codedeck.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Codedeck",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Sherlouk/Codedeck.git
[1/555] Fetching codedeck
Fetched https://github.com/Sherlouk/Codedeck.git from cache (0.84s)
Creating working copy for https://github.com/Sherlouk/Codedeck.git
Working copy of https://github.com/Sherlouk/Codedeck.git resolved at master (cd34f63)
warning: '.resolve-product-dependencies': dependency 'codedeck' 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/Sherlouk/Codedeck.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/13] Compiling HIDSwift HIDDeviceMonitorDelegate.swift
[5/14] Compiling HIDSwift HIDDeviceMonitor.swift
[6/14] Compiling HIDSwift RawDeviceProtocols.swift
[7/14] Compiling HIDSwift IOHIDDevice+Write.swift
[8/14] Compiling HIDSwift IOReturnMapper.swift
[9/14] Compiling HIDSwift IOHIDDevice+GetProperty.swift
[10/14] Compiling HIDSwift HIDDevice.swift
[11/14] Compiling HIDSwift IOHIDDevice+FeatureReport.swift
[12/14] Compiling HIDSwift IOHIDDevice+Configure.swift
[13/14] Emitting module HIDSwift
[14/14] Compiling HIDSwift IOHIDManager+Configure.swift
[15/25] Compiling Codedeck StreamDeckKeyMapper.swift
[16/26] Compiling Codedeck StreamDeckProduct.swift
[17/26] Compiling Codedeck StreamDeck.swift
[18/26] Compiling Codedeck Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Codedeck/Logging/Logger.swift:13:23: warning: static property 'verboseMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public class Logger {
12 |
13 |     public static var verboseMode = true
   |                       |- warning: static property 'verboseMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'verboseMode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'verboseMode' 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
14 |
15 |     private enum Severity: String {
[19/26] Compiling Codedeck StreamDeckKey.swift
[20/26] Compiling Codedeck HIDDevice+StreamDeckProduct.swift
[21/26] Compiling Codedeck Data+Convenience.swift
[22/26] Compiling Codedeck Data+JPEG.swift
[23/26] Compiling Codedeck HIDDeviceMonitor+StreamDeckProducts.swift
[24/26] Compiling Codedeck UInt16+ToBuffer.swift
[25/26] Emitting module Codedeck
/Users/admin/builder/spi-builder-workspace/Sources/Codedeck/Logging/Logger.swift:13:23: warning: static property 'verboseMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public class Logger {
12 |
13 |     public static var verboseMode = true
   |                       |- warning: static property 'verboseMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'verboseMode' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'verboseMode' 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
14 |
15 |     private enum Severity: String {
[26/26] Compiling Codedeck StreamDeckKey+Cocoa.swift
Build complete! (20.08s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Codedeck",
  "name" : "Codedeck",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Codedeck",
      "targets" : [
        "Codedeck"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HIDSwift",
      "targets" : [
        "HIDSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HIDSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "HIDSwiftTests",
      "path" : "Tests/HIDSwiftTests",
      "sources" : [
        "IOReturnMapperTests.swift"
      ],
      "target_dependencies" : [
        "HIDSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HIDSwift",
      "module_type" : "SwiftTarget",
      "name" : "HIDSwift",
      "path" : "Sources/HIDSwift",
      "product_memberships" : [
        "Codedeck",
        "HIDSwift"
      ],
      "sources" : [
        "Extensions/IOHIDDevice+Configure.swift",
        "Extensions/IOHIDDevice+FeatureReport.swift",
        "Extensions/IOHIDDevice+GetProperty.swift",
        "Extensions/IOHIDDevice+Write.swift",
        "Extensions/IOHIDManager+Configure.swift",
        "HIDDevice.swift",
        "HIDDeviceMonitor.swift",
        "HIDDeviceMonitorDelegate.swift",
        "IOReturnMapper.swift",
        "RawDeviceProtocols.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CodedeckTests",
      "module_type" : "SwiftTarget",
      "name" : "CodedeckTests",
      "path" : "Tests/CodedeckTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/CodedeckTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Helpers/HIDDevice+Mock.swift",
        "Helpers/TestDevice.swift",
        "Helpers/XCTHelperFunctions.swift",
        "Tests/DataConvenienceExtensionsTests.swift",
        "Tests/StreamDeckCreateKeyTests.swift",
        "Tests/StreamDeckKeyPressedTests.swift",
        "Tests/StreamDeckProductTests.swift",
        "Tests/StreamDeckSetColorTests.swift"
      ],
      "target_dependencies" : [
        "Codedeck"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Codedeck",
      "module_type" : "SwiftTarget",
      "name" : "Codedeck",
      "path" : "Sources/Codedeck",
      "product_memberships" : [
        "Codedeck"
      ],
      "sources" : [
        "Extensions/Data+Convenience.swift",
        "Extensions/Data+JPEG.swift",
        "Extensions/HIDDevice+StreamDeckProduct.swift",
        "Extensions/HIDDeviceMonitor+StreamDeckProducts.swift",
        "Extensions/StreamDeckKey+Cocoa.swift",
        "Extensions/UInt16+ToBuffer.swift",
        "Logging/Logger.swift",
        "StreamDeck.swift",
        "StreamDeckKey.swift",
        "StreamDeckKeyMapper.swift",
        "StreamDeckProduct.swift"
      ],
      "target_dependencies" : [
        "HIDSwift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.