The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Pailead, reference 1.4.1 (c6ce68), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 10:37:11 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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pducks32/Pailead.git
Reference: 1.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pducks32/Pailead
 * tag               1.4.1      -> FETCH_HEAD
HEAD is now at c6ce687 bump version
Cloned https://github.com/pducks32/Pailead.git
Revision (git rev-parse @):
c6ce6877a7c34f32f0ad37e4efb1832e0bebf8e7
SUCCESS checkout https://github.com/pducks32/Pailead.git at 1.4.1
========================================
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
[9/447] Fetching pailead
Fetched https://github.com/pducks32/Pailead.git from cache (0.91s)
Creating working copy for https://github.com/pducks32/Pailead.git
Working copy of https://github.com/pducks32/Pailead.git resolved at 1.4.1 (c6ce687)
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
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 Swatch.swift
[5/12] Compiling Pailead Palette.swift
[6/12] Compiling Pailead PriorityQueue.swift
[7/12] Compiling Pailead HSLConverter.swift
[8/12] Compiling Pailead Extensions.swift
[9/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 |
[10/12] Compiling Pailead ModifiedMedianCutQuantizer.swift
[11/12] Compiling Pailead Pixel.swift
[12/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
Build complete! (17.09s)
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.