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 PixelColor, reference main (985d12), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 09:26:40 UTC.

Swift 6 data race errors: 13

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/heestand-xyz/PixelColor.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heestand-xyz/PixelColor
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 985d12c P3 Fix
Cloned https://github.com/heestand-xyz/PixelColor.git
Revision (git rev-parse @):
985d12c8339bc0ae08803a0abde32c2e4696c4ce
SUCCESS checkout https://github.com/heestand-xyz/PixelColor.git at main
========================================
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": "pixelcolor",
      "name": "PixelColor",
      "url": "https://github.com/heestand-xyz/PixelColor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PixelColor",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/heestand-xyz/PixelColor.git
[1/417] Fetching pixelcolor
Fetched https://github.com/heestand-xyz/PixelColor.git from cache (0.86s)
Creating working copy for https://github.com/heestand-xyz/PixelColor.git
Working copy of https://github.com/heestand-xyz/PixelColor.git resolved at main (985d12c)
warning: '.resolve-product-dependencies': dependency 'pixelcolor' 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/heestand-xyz/PixelColor.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/19] Compiling PixelColor PixelColor+Operators.swift
[4/19] Compiling PixelColor PixelColor+Random.swift
[5/20] Compiling PixelColor PixelColor+Decode.swift
[6/20] Compiling PixelColor PixelColor+Funcs.swift
[7/20] Compiling PixelColor PixelColor+HSV.swift
[8/20] Compiling PixelColor PixelColor+Hashable.swift
[9/20] Compiling PixelColor PixelColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:21:23: warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
   |                       |- warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clear' 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
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
[10/20] Compiling PixelColor PixelColor+sRGB.swift
[11/20] Compiling PixelColor PixelColor+Types.swift
[12/20] Compiling PixelColor PixelColor+Channel.swift
[13/20] Compiling PixelColor PixelColor+Codable.swift
[14/20] Compiling PixelColor DynamicColor+Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
[15/20] Compiling PixelColor DynamicColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
[16/20] Compiling PixelColor CodableColor+Deocde.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/Codable/CodableColor.swift:10:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftUI
 3 |
 4 | public enum CodableColor: Codable, Equatable, Hashable {
   |             `- note: consider making enum 'CodableColor' conform to the 'Sendable' protocol
 5 |     case `static`(PixelColor)
 6 |     case dynamic(DynamicColor, opacity: CGFloat)
   :
 8 |
 9 | extension CodableColor {
10 |     public static let black: CodableColor = .static(.black)
   |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'black' 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
11 |     public static let white: CodableColor = .static(.white)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/Codable/CodableColor.swift:11:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftUI
 3 |
 4 | public enum CodableColor: Codable, Equatable, Hashable {
   |             `- note: consider making enum 'CodableColor' conform to the 'Sendable' protocol
 5 |     case `static`(PixelColor)
 6 |     case dynamic(DynamicColor, opacity: CGFloat)
   :
 9 | extension CodableColor {
10 |     public static let black: CodableColor = .static(.black)
11 |     public static let white: CodableColor = .static(.white)
   |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'white' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
[17/20] Compiling PixelColor CodableColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/Codable/CodableColor.swift:10:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftUI
 3 |
 4 | public enum CodableColor: Codable, Equatable, Hashable {
   |             `- note: consider making enum 'CodableColor' conform to the 'Sendable' protocol
 5 |     case `static`(PixelColor)
 6 |     case dynamic(DynamicColor, opacity: CGFloat)
   :
 8 |
 9 | extension CodableColor {
10 |     public static let black: CodableColor = .static(.black)
   |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'black' 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
11 |     public static let white: CodableColor = .static(.white)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/Codable/CodableColor.swift:11:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftUI
 3 |
 4 | public enum CodableColor: Codable, Equatable, Hashable {
   |             `- note: consider making enum 'CodableColor' conform to the 'Sendable' protocol
 5 |     case `static`(PixelColor)
 6 |     case dynamic(DynamicColor, opacity: CGFloat)
   :
 9 | extension CodableColor {
10 |     public static let black: CodableColor = .static(.black)
11 |     public static let white: CodableColor = .static(.white)
   |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'white' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
[18/20] Emitting module PixelColor
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/Codable/CodableColor.swift:10:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftUI
 3 |
 4 | public enum CodableColor: Codable, Equatable, Hashable {
   |             `- note: consider making enum 'CodableColor' conform to the 'Sendable' protocol
 5 |     case `static`(PixelColor)
 6 |     case dynamic(DynamicColor, opacity: CGFloat)
   :
 8 |
 9 | extension CodableColor {
10 |     public static let black: CodableColor = .static(.black)
   |                       |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'black' 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
11 |     public static let white: CodableColor = .static(.white)
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/Codable/CodableColor.swift:11:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import SwiftUI
 3 |
 4 | public enum CodableColor: Codable, Equatable, Hashable {
   |             `- note: consider making enum 'CodableColor' conform to the 'Sendable' protocol
 5 |     case `static`(PixelColor)
 6 |     case dynamic(DynamicColor, opacity: CGFloat)
   :
 9 | extension CodableColor {
10 |     public static let black: CodableColor = .static(.black)
11 |     public static let white: CodableColor = .static(.white)
   |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'CodableColor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'white' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:21:23: warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
   |                       |- warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clear' 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
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:22:23: warning: static property 'clearWhite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
   |                       |- warning: static property 'clearWhite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clearWhite' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clearWhite' 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
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:27:23: warning: static property 'rawGray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
   |                       |- warning: static property 'rawGray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawGray' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawGray' 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
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:28:23: warning: static property 'rawRed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
   |                       |- warning: static property 'rawRed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawRed' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawRed' 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
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:29:23: warning: static property 'rawYellow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
   |                       |- warning: static property 'rawYellow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawYellow' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawYellow' 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
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:30:23: warning: static property 'rawGreen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
   |                       |- warning: static property 'rawGreen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawGreen' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawGreen' 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
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:31:23: warning: static property 'rawCyan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
   |                       |- warning: static property 'rawCyan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawCyan' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawCyan' 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
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:32:23: warning: static property 'rawBlue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
   |                       |- warning: static property 'rawBlue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawBlue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawBlue' 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
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
34 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:33:23: warning: static property 'rawMagenta' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
   |                       |- warning: static property 'rawMagenta' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawMagenta' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawMagenta' 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
34 |
35 |     public static func brightness(_ brightness: CGFloat, alpha: CGFloat = 1.0) -> PixelColor {
[19/20] Compiling PixelColor PixelColor+Colors.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:21:23: warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
   |                       |- warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clear' 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
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:22:23: warning: static property 'clearWhite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
   |                       |- warning: static property 'clearWhite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clearWhite' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clearWhite' 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
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:27:23: warning: static property 'rawGray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
   |                       |- warning: static property 'rawGray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawGray' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawGray' 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
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:28:23: warning: static property 'rawRed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
   |                       |- warning: static property 'rawRed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawRed' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawRed' 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
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:29:23: warning: static property 'rawYellow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
   |                       |- warning: static property 'rawYellow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawYellow' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawYellow' 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
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:30:23: warning: static property 'rawGreen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
   |                       |- warning: static property 'rawGreen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawGreen' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawGreen' 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
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:31:23: warning: static property 'rawCyan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
   |                       |- warning: static property 'rawCyan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawCyan' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawCyan' 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
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:32:23: warning: static property 'rawBlue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
   |                       |- warning: static property 'rawBlue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawBlue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawBlue' 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
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
34 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:33:23: warning: static property 'rawMagenta' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
   |                       |- warning: static property 'rawMagenta' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawMagenta' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawMagenta' 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
34 |
35 |     public static func brightness(_ brightness: CGFloat, alpha: CGFloat = 1.0) -> PixelColor {
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:21:20: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |     public static var appearance: Appearance {
19 |         #if os(macOS)
20 |         func darkMode() -> Bool {
   |              `- note: add '@MainActor' to make local function 'darkMode()' part of global actor 'MainActor'
21 |             NSApp?.effectiveAppearance.name == .darkAqua
   |                    `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 |         }
23 |         if Thread.isMainThread {
AppKit.NSApplication:5:25: note: property declared here
3 |     open var appearance: NSAppearance? { get set }
4 |     @available(macOS 10.14, *)
5 |     @MainActor open var effectiveAppearance: NSAppearance { get }
  |                         `- note: property declared here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:21:13: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |     public static var appearance: Appearance {
19 |         #if os(macOS)
20 |         func darkMode() -> Bool {
   |              `- note: add '@MainActor' to make local function 'darkMode()' part of global actor 'MainActor'
21 |             NSApp?.effectiveAppearance.name == .darkAqua
   |             `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 |         }
23 |         if Thread.isMainThread {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
  |                       `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:17: warning: capture of 'appearance' with non-sendable type 'PixelColor.Appearance?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | extension PixelColor {
12 |
13 |     public enum Appearance: Hashable {
   |                 `- note: consider making enum 'Appearance' conform to the 'Sendable' protocol
14 |         case light
15 |         case dark
   :
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                 `- warning: capture of 'appearance' with non-sendable type 'PixelColor.Appearance?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |                 semaphore.signal()
31 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:30: warning: capture of 'darkMode()' with non-sendable type '() -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                              |- warning: capture of 'darkMode()' with non-sendable type '() -> Bool' 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'
30 |                 semaphore.signal()
31 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:17: warning: mutation of captured var 'appearance' in concurrently-executing code; this is an error in the Swift 6 language mode
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                 `- warning: mutation of captured var 'appearance' in concurrently-executing code; this is an error in the Swift 6 language mode
30 |                 semaphore.signal()
31 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:20:14: warning: concurrently-executed local function 'darkMode()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
18 |     public static var appearance: Appearance {
19 |         #if os(macOS)
20 |         func darkMode() -> Bool {
   |              `- warning: concurrently-executed local function 'darkMode()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
21 |             NSApp?.effectiveAppearance.name == .darkAqua
22 |         }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:17: warning: sending 'appearance' risks causing data races; this is an error in the Swift 6 language mode
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                 |- warning: sending 'appearance' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: 'appearance' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
30 |                 semaphore.signal()
31 |             }
32 |             _ = semaphore.wait(timeout: .distantFuture)
33 |             return appearance
   |                    `- note: access can happen concurrently
34 |         }
35 |         #elseif os(visionOS)
[20/20] Compiling PixelColor PixelColor+DarkMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:21:23: warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     }
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
   |                       |- warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clear' 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
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:22:23: warning: static property 'clearWhite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |     public static var clear: PixelColor = .init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
   |                       |- warning: static property 'clearWhite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'clearWhite' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'clearWhite' 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
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:24:23: warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     public static var clearWhite: PixelColor = .init(red: 1.0, green: 1.0, blue: 1.0, alpha: 0.0)
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
   |                       |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'white' 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
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:25:23: warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 |     public static var white: PixelColor = .init(white: 1.0)
25 |     public static var black: PixelColor = .init(white: 0.0)
   |                       |- warning: static property 'black' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'black' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'black' 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
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:27:23: warning: static property 'rawGray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     public static var black: PixelColor = .init(white: 0.0)
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
   |                       |- warning: static property 'rawGray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawGray' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawGray' 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
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:28:23: warning: static property 'rawRed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
   |                       |- warning: static property 'rawRed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawRed' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawRed' 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
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:29:23: warning: static property 'rawYellow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |     public static var rawGray: PixelColor = .init(white: 0.5)
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
   |                       |- warning: static property 'rawYellow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawYellow' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawYellow' 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
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:30:23: warning: static property 'rawGreen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |     public static var rawRed: PixelColor = .init(red: 1.0, green: 0.0, blue: 0.0)
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
   |                       |- warning: static property 'rawGreen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawGreen' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawGreen' 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
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:31:23: warning: static property 'rawCyan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |     public static var rawYellow: PixelColor = .init(red: 1.0, green: 1.0, blue: 0.0)
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
   |                       |- warning: static property 'rawCyan' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawCyan' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawCyan' 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
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:32:23: warning: static property 'rawBlue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |     public static var rawGreen: PixelColor = .init(red: 0.0, green: 1.0, blue: 0.0)
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
   |                       |- warning: static property 'rawBlue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawBlue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawBlue' 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
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
34 |
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+Colors.swift:33:23: warning: static property 'rawMagenta' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |     public static var rawCyan: PixelColor = .init(red: 0.0, green: 1.0, blue: 1.0)
32 |     public static var rawBlue: PixelColor = .init(red: 0.0, green: 0.0, blue: 1.0)
33 |     public static var rawMagenta: PixelColor = .init(red: 1.0, green: 0.0, blue: 1.0)
   |                       |- warning: static property 'rawMagenta' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'rawMagenta' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'rawMagenta' 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
34 |
35 |     public static func brightness(_ brightness: CGFloat, alpha: CGFloat = 1.0) -> PixelColor {
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:21:20: warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |     public static var appearance: Appearance {
19 |         #if os(macOS)
20 |         func darkMode() -> Bool {
   |              `- note: add '@MainActor' to make local function 'darkMode()' part of global actor 'MainActor'
21 |             NSApp?.effectiveAppearance.name == .darkAqua
   |                    `- warning: main actor-isolated property 'effectiveAppearance' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 |         }
23 |         if Thread.isMainThread {
AppKit.NSApplication:5:25: note: property declared here
3 |     open var appearance: NSAppearance? { get set }
4 |     @available(macOS 10.14, *)
5 |     @MainActor open var effectiveAppearance: NSAppearance { get }
  |                         `- note: property declared here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:21:13: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |     public static var appearance: Appearance {
19 |         #if os(macOS)
20 |         func darkMode() -> Bool {
   |              `- note: add '@MainActor' to make local function 'darkMode()' part of global actor 'MainActor'
21 |             NSApp?.effectiveAppearance.name == .darkAqua
   |             `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 |         }
23 |         if Thread.isMainThread {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
  |                       `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:17: warning: capture of 'appearance' with non-sendable type 'PixelColor.Appearance?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | extension PixelColor {
12 |
13 |     public enum Appearance: Hashable {
   |                 `- note: consider making enum 'Appearance' conform to the 'Sendable' protocol
14 |         case light
15 |         case dark
   :
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                 `- warning: capture of 'appearance' with non-sendable type 'PixelColor.Appearance?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |                 semaphore.signal()
31 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:30: warning: capture of 'darkMode()' with non-sendable type '() -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                              |- warning: capture of 'darkMode()' with non-sendable type '() -> Bool' 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'
30 |                 semaphore.signal()
31 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:17: warning: mutation of captured var 'appearance' in concurrently-executing code; this is an error in the Swift 6 language mode
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                 `- warning: mutation of captured var 'appearance' in concurrently-executing code; this is an error in the Swift 6 language mode
30 |                 semaphore.signal()
31 |             }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:20:14: warning: concurrently-executed local function 'darkMode()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
18 |     public static var appearance: Appearance {
19 |         #if os(macOS)
20 |         func darkMode() -> Bool {
   |              `- warning: concurrently-executed local function 'darkMode()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
21 |             NSApp?.effectiveAppearance.name == .darkAqua
22 |         }
/Users/admin/builder/spi-builder-workspace/Sources/PixelColor/PixelColor+DarkMode.swift:29:17: warning: sending 'appearance' risks causing data races; this is an error in the Swift 6 language mode
27 |             let semaphore = DispatchSemaphore(value: 0)
28 |             DispatchQueue.main.async {
29 |                 appearance = darkMode() ? .dark : .light
   |                 |- warning: sending 'appearance' risks causing data races; this is an error in the Swift 6 language mode
   |                 `- note: 'appearance' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
30 |                 semaphore.signal()
31 |             }
32 |             _ = semaphore.wait(timeout: .distantFuture)
33 |             return appearance
   |                    `- note: access can happen concurrently
34 |         }
35 |         #elseif os(visionOS)
Build complete! (17.13s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PixelColor",
  "name" : "PixelColor",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "PixelColor",
      "targets" : [
        "PixelColor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PixelColorTests",
      "module_type" : "SwiftTarget",
      "name" : "PixelColorTests",
      "path" : "Tests/PixelColorTests",
      "sources" : [
        "ConsistencyTests.swift",
        "HueTests.swift"
      ],
      "target_dependencies" : [
        "PixelColor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PixelColor",
      "module_type" : "SwiftTarget",
      "name" : "PixelColor",
      "path" : "Sources/PixelColor",
      "product_memberships" : [
        "PixelColor"
      ],
      "sources" : [
        "Codable/CodableColor+Deocde.swift",
        "Codable/CodableColor.swift",
        "Dynamic/DynamicColor+Color.swift",
        "Dynamic/DynamicColor.swift",
        "PixelColor+Channel.swift",
        "PixelColor+Codable.swift",
        "PixelColor+Colors.swift",
        "PixelColor+DarkMode.swift",
        "PixelColor+Decode.swift",
        "PixelColor+Funcs.swift",
        "PixelColor+HSV.swift",
        "PixelColor+Hashable.swift",
        "PixelColor+Operators.swift",
        "PixelColor+Random.swift",
        "PixelColor+Types.swift",
        "PixelColor+sRGB.swift",
        "PixelColor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.