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 Color, reference main (2fc682), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 23:33:17 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kudit/Color.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kudit/Color
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2fc6821 v1.1.3
Cloned https://github.com/kudit/Color.git
Revision (git rev-parse @):
2fc6821aba10da650d014847c7704dd9184e06c0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kudit/Color.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kudit/Color.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-117DEE11B69C53C9.txt
[4/38] Emitting module Compatibility
[5/41] Compiling Compatibility CloudStorageSync.swift
[6/41] Compiling Compatibility DataStore.swift
[7/41] Compiling Compatibility Debug.swift
[8/41] Compiling Compatibility FileManager.swift
[9/41] Compiling Compatibility Triangle.swift
[10/41] Compiling Compatibility SwiftUI.swift
[11/41] Compiling Compatibility TestUI.swift
[12/41] Compiling Compatibility Compatibility.swift
[13/41] Compiling Compatibility Application.swift
[14/41] Compiling Compatibility CloudStatus.swift
[15/41] Compiling Compatibility CloudStorage.swift
[16/41] Compiling Compatibility Double.swift
[17/41] Compiling Compatibility Enum.swift
[18/41] Compiling Compatibility Int.swift
[19/41] Compiling Compatibility OrderedDictionary.swift
[20/41] Compiling Compatibility OrderedSet.swift
[21/41] Compiling Compatibility String.swift
[22/41] Compiling Compatibility Threading.swift
[23/41] Compiling Compatibility URL.swift
[24/41] Compiling Compatibility UserDefaultsBacked.swift
[25/41] Compiling Compatibility Array.swift
[26/41] Compiling Compatibility Codable.swift
[27/41] Compiling Compatibility CodingFoundation.swift
[28/41] Compiling Compatibility Graphics.swift
[29/41] Compiling Compatibility Network.swift
[30/41] Compiling Compatibility ObservableObject.swift
[31/41] Compiling Compatibility Test.swift
[32/41] Compiling Compatibility ClearableTextField.swift
[33/41] Compiling Compatibility Menu.swift
[34/41] Compiling Compatibility Placard.swift
[35/41] Compiling Compatibility Version.swift
[36/41] Compiling Compatibility Backport.swift
[37/41] Compiling Compatibility BytesView.swift
[38/41] Compiling Compatibility CodingJSON.swift
[39/41] Compiling Compatibility CodingParameters.swift
[40/41] Compiling Compatibility Date.swift
[41/41] Compiling Compatibility Dictionary.swift
[42/47] Compiling Color Compatibility.swift
[43/47] Compiling Color Colorsets.swift
/Users/admin/builder/spi-builder-workspace/Sources/Colorsets.swift:99:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension [any KuColor]: Identifiable {
    | |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public var id: String {
101 |         map { $0.id }.joined(separator: ",")
[44/47] Compiling Color ColorUI.swift
[45/47] Compiling Color CSSColors.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CSSColors.swift:375:66: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 |         guard hexColor == self else {
374 |             main {
375 |                 debug("This color can't be represented as hex: \(self) != \(hexColor) (saving as: \(cssString))", level: !DebugLevel.colorLogging ? .SILENT : .NOTICE)
    |                                                                  `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 |             }
377 |             return cssString
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/CSSColors.swift:375:77: warning: capture of 'hexColor' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 |         guard hexColor == self else {
374 |             main {
375 |                 debug("This color can't be represented as hex: \(self) != \(hexColor) (saving as: \(cssString))", level: !DebugLevel.colorLogging ? .SILENT : .NOTICE)
    |                                                                             `- warning: capture of 'hexColor' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 |             }
377 |             return cssString
/Users/admin/builder/spi-builder-workspace/Sources/CSSColors.swift:375:66: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
373 |         guard hexColor == self else {
374 |             main {
375 |                 debug("This color can't be represented as hex: \(self) != \(hexColor) (saving as: \(cssString))", level: !DebugLevel.colorLogging ? .SILENT : .NOTICE)
    |                                                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                  `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
376 |             }
377 |             return cssString
/Users/admin/builder/spi-builder-workspace/Sources/CSSColors.swift:375:77: warning: sending 'hexColor' risks causing data races; this is an error in the Swift 6 language mode
373 |         guard hexColor == self else {
374 |             main {
375 |                 debug("This color can't be represented as hex: \(self) != \(hexColor) (saving as: \(cssString))", level: !DebugLevel.colorLogging ? .SILENT : .NOTICE)
    |                                                                             |- warning: sending 'hexColor' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                             `- note: task-isolated 'hexColor' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
376 |             }
377 |             return cssString
[46/47] Emitting module Color
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:264:1: warning: extension declares a conformance of imported type 'NSColor' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
262 | // TODO: Make this a protocol for adding this automatically for NSColor and UIColor without duplicating code.
263 | import AppKit
264 | extension NSColor: Identifiable {
    | |- warning: extension declares a conformance of imported type 'NSColor' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
265 |     public var id: String {
266 |         self.pretty
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:269:1: warning: extension declares a conformance of imported type 'NSColor' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
267 |     }
268 | }
269 | extension NSColor: KuColor {
    | |- warning: extension declares a conformance of imported type 'NSColor' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
270 |     public func getRed(_ red: UnsafeMutablePointer<CGFloat>?, green: UnsafeMutablePointer<CGFloat>?, blue: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> Bool {
271 |         // Make sure doesn't crash with extended colorspace colors.
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:393:1: warning: extension declares a conformance of imported type 'Color' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
391 | import SwiftUI
392 | @available(iOS 13, tvOS 13, watchOS 6, *)
393 | extension Color: Identifiable {
    | |- warning: extension declares a conformance of imported type 'Color' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
394 |     public var id: String {
395 |         self.pretty
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:403:1: warning: extension declares a conformance of imported type 'Color' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
401 | }
402 | @available(iOS 13, tvOS 13, watchOS 6, *)
403 | extension Color: KuColor {
    | |- warning: extension declares a conformance of imported type 'Color' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
404 |     // available in UIColor but not SwiftUI.Color
405 |     public static var lightGray: Color {
/Users/admin/builder/spi-builder-workspace/Sources/Colorsets.swift:99:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 97 | }
 98 |
 99 | extension [any KuColor]: Identifiable {
    | |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
100 |     public var id: String {
101 |         map { $0.id }.joined(separator: ",")
[47/47] Compiling Color Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:264:1: warning: extension declares a conformance of imported type 'NSColor' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
262 | // TODO: Make this a protocol for adding this automatically for NSColor and UIColor without duplicating code.
263 | import AppKit
264 | extension NSColor: Identifiable {
    | |- warning: extension declares a conformance of imported type 'NSColor' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
265 |     public var id: String {
266 |         self.pretty
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:269:1: warning: extension declares a conformance of imported type 'NSColor' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
267 |     }
268 | }
269 | extension NSColor: KuColor {
    | |- warning: extension declares a conformance of imported type 'NSColor' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
270 |     public func getRed(_ red: UnsafeMutablePointer<CGFloat>?, green: UnsafeMutablePointer<CGFloat>?, blue: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> Bool {
271 |         // Make sure doesn't crash with extended colorspace colors.
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:393:1: warning: extension declares a conformance of imported type 'Color' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
391 | import SwiftUI
392 | @available(iOS 13, tvOS 13, watchOS 6, *)
393 | extension Color: Identifiable {
    | |- warning: extension declares a conformance of imported type 'Color' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
394 |     public var id: String {
395 |         self.pretty
/Users/admin/builder/spi-builder-workspace/Sources/Color.swift:403:1: warning: extension declares a conformance of imported type 'Color' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
401 | }
402 | @available(iOS 13, tvOS 13, watchOS 6, *)
403 | extension Color: KuColor {
    | |- warning: extension declares a conformance of imported type 'Color' to imported protocols 'Encodable', 'Decodable'; this will not behave correctly if the owners of 'SwiftUICore' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
404 |     // available in UIColor but not SwiftUI.Color
405 |     public static var lightGray: Color {
Build complete! (30.25s)
Fetching https://github.com/kudit/Compatibility
[1/861] Fetching compatibility
Fetched https://github.com/kudit/Compatibility from cache (1.37s)
Computing version for https://github.com/kudit/Compatibility
Computed https://github.com/kudit/Compatibility at 1.3.7 (0.52s)
Creating working copy for https://github.com/kudit/Compatibility
Working copy of https://github.com/kudit/Compatibility resolved at 1.3.7
Build complete.
{
  "dependencies" : [
    {
      "identity" : "compatibility",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.6",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kudit/Compatibility"
    }
  ],
  "manifest_display_name" : "Color",
  "name" : "Color",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "11"
    },
    {
      "name" : "watchos",
      "version" : "4"
    },
    {
      "name" : "ios",
      "version" : "11"
    }
  ],
  "products" : [
    {
      "name" : "Color Library",
      "targets" : [
        "Color"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Color",
      "module_type" : "SwiftTarget",
      "name" : "Color",
      "path" : "Sources",
      "product_dependencies" : [
        "Compatibility Library"
      ],
      "product_memberships" : [
        "Color Library"
      ],
      "sources" : [
        "CSSColors.swift",
        "Color.swift",
        "ColorUI.swift",
        "Colorsets.swift",
        "Compatibility.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.