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 Pailead, reference master (25b787), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 20:07:20 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/pducks32/Pailead.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pducks32/Pailead
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 25b7878 Add more install instructions for SwiftPM and carthage
Cloned https://github.com/pducks32/Pailead.git
Revision (git rev-parse @):
25b78789a8dddd98fb65b2dc1e93457611558ae0
SUCCESS checkout https://github.com/pducks32/Pailead.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": "pailead",
      "name": "Pailead",
      "url": "https://github.com/pducks32/Pailead.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Pailead",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/pducks32/Pailead.git
[1/447] Fetching pailead
Fetched https://github.com/pducks32/Pailead.git from cache (0.89s)
Creating working copy for https://github.com/pducks32/Pailead.git
Working copy of https://github.com/pducks32/Pailead.git resolved at master (25b7878)
warning: '.resolve-product-dependencies': dependency 'pailead' 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/pducks32/Pailead.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling Pailead VBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pailead/VBox.swift:16:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[VBox.Axis]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |     }
 14 |
 15 |     public enum Axis : CustomStringConvertible {
    |                 `- note: consider making enum 'Axis' conform to the 'Sendable' protocol
 16 |         public static let all : [Axis] = [.red, .green, .blue]
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[VBox.Axis]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'all' 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
 17 |         case red, green, blue
 18 |
[4/12] Compiling Pailead PriorityQueue.swift
[5/12] Compiling Pailead Palette.swift
[6/12] Compiling Pailead ModifiedMedianCutQuantizer.swift
[7/12] Compiling Pailead Pailead.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pailead/Pailead.swift:78:35: warning: capture of 'scaledImage' with non-sendable type 'Image' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 |         let scaledImage = Pailead.optimallyResizeImage(image)
77 |         chosenQueue.async {
78 |             guard let pixelData = scaledImage.pixelData() else { fatalError("Pixel Extraction Failed") }
   |                                   `- warning: capture of 'scaledImage' with non-sendable type 'Image' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 |             var pixels : [Pixel] = []
80 |             pixels.reserveCapacity(pixelData.count / 4)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
  1 | open class NSImage : NSObject {
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
  2 |     public /*not inherited*/ init?(named name: NSImage.Name)
  3 |     @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Pailead/Pailead.swift:91:17: warning: capture of 'completionHandler' with non-sendable type '(Set<Swatch>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 |             blockDelegate.onDidFinish = { mmcq in
90 |                 let swatches = mmcq.getSwatches()
91 |                 completionHandler(swatches)
   |                 |- warning: capture of 'completionHandler' with non-sendable type '(Set<Swatch>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 |             }
93 |             quantizer.delegate = blockDelegate
/Users/admin/builder/spi-builder-workspace/Sources/Pailead/Pailead.swift:91:17: warning: capture of 'completionHandler' with non-sendable type '(Set<Swatch>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
89 |             blockDelegate.onDidFinish = { mmcq in
90 |                 let swatches = mmcq.getSwatches()
91 |                 completionHandler(swatches)
   |                 |- warning: capture of 'completionHandler' with non-sendable type '(Set<Swatch>) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 |             }
93 |             quantizer.delegate = blockDelegate
[8/12] Compiling Pailead Swatch.swift
[9/12] Compiling Pailead Pixel.swift
[10/12] Compiling Pailead HSLConverter.swift
[11/12] Emitting module Pailead
/Users/admin/builder/spi-builder-workspace/Sources/Pailead/VBox.swift:16:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[VBox.Axis]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |     }
 14 |
 15 |     public enum Axis : CustomStringConvertible {
    |                 `- note: consider making enum 'Axis' conform to the 'Sendable' protocol
 16 |         public static let all : [Axis] = [.red, .green, .blue]
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[VBox.Axis]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'all' 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
 17 |         case red, green, blue
 18 |
[12/12] Compiling Pailead Extensions.swift
Build complete! (13.90s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pailead",
  "name" : "Pailead",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Pailead",
      "targets" : [
        "Pailead"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PaileadTests",
      "module_type" : "SwiftTarget",
      "name" : "PaileadTests",
      "path" : "Tests/PaileadTests",
      "sources" : [
        "HSLConverterTests.swift",
        "MMCQTests.swift",
        "PaileadTests.swift",
        "PaletteMakerPictureTests.swift",
        "PaletteMakerTests.swift",
        "PixelTests.swift",
        "PriorityQueueTests.swift",
        "SplitTests.swift",
        "VBoxTests.swift"
      ],
      "target_dependencies" : [
        "Pailead"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pailead",
      "module_type" : "SwiftTarget",
      "name" : "Pailead",
      "path" : "Sources/Pailead",
      "product_memberships" : [
        "Pailead"
      ],
      "sources" : [
        "Extensions.swift",
        "HSLConverter.swift",
        "ModifiedMedianCutQuantizer.swift",
        "Pailead.swift",
        "Palette.swift",
        "Pixel.swift",
        "PriorityQueue.swift",
        "Swatch.swift",
        "VBox.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.