This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/pducks32/Pailead.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/12] Compiling Pailead Swatch.swift
[4/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 |
[5/12] Compiling Pailead PriorityQueue.swift
[6/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
[7/12] Compiling Pailead Palette.swift
[8/12] Compiling Pailead Pixel.swift
[9/12] Compiling Pailead HSLConverter.swift
[10/12] Compiling Pailead ModifiedMedianCutQuantizer.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! (28.01s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.