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 UIImageColors, reference 2.2.0 (e49e6c), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 00:22:03 UTC.

Swift 6 data race errors: 0

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/jathu/UIImageColors.git
Reference: 2.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jathu/UIImageColors
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at e49e6c3 Merge pull request #73 from interstateone/spm
Cloned https://github.com/jathu/UIImageColors.git
Revision (git rev-parse @):
e49e6c32ea556e9fa0109dc79686bea4a10d41a2
SUCCESS checkout https://github.com/jathu/UIImageColors.git at 2.2.0
========================================
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": "uiimagecolors",
      "name": "UIImageColors",
      "url": "https://github.com/jathu/UIImageColors.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UIImageColors",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jathu/UIImageColors.git
[1/1129] Fetching uiimagecolors
Fetched https://github.com/jathu/UIImageColors.git from cache (2.62s)
Creating working copy for https://github.com/jathu/UIImageColors.git
Working copy of https://github.com/jathu/UIImageColors.git resolved at 2.2.0 (e49e6c3)
warning: '.resolve-product-dependencies': dependency 'uiimagecolors' 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/jathu/UIImageColors.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/4] Compiling UIImageColors UIImageColors.swift
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:209:26: warning: capture of 'self' with non-sendable type 'NSImage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 |     public func getColors(quality: UIImageColorsQuality = .high, _ completion: @escaping (UIImageColors?) -> Void) {
208 |         DispatchQueue.global().async {
209 |             let result = self.getColors(quality: quality)
    |                          `- warning: capture of 'self' with non-sendable type 'NSImage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 |             DispatchQueue.main.async {
211 |                 completion(result)
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/UIImageColors/Sources/UIImageColors.swift:209:50: warning: capture of 'quality' with non-sendable type 'UIImageColorsQuality' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | }
 29 |
 30 | public enum UIImageColorsQuality: CGFloat {
    |             `- note: consider making enum 'UIImageColorsQuality' conform to the 'Sendable' protocol
 31 |     case lowest = 50 // 50px
 32 |     case low = 100 // 100px
    :
207 |     public func getColors(quality: UIImageColorsQuality = .high, _ completion: @escaping (UIImageColors?) -> Void) {
208 |         DispatchQueue.global().async {
209 |             let result = self.getColors(quality: quality)
    |                                                  `- warning: capture of 'quality' with non-sendable type 'UIImageColorsQuality' in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 |             DispatchQueue.main.async {
211 |                 completion(result)
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:211:17: warning: capture of 'completion' with non-sendable type '(UIImageColors?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 |             let result = self.getColors(quality: quality)
210 |             DispatchQueue.main.async {
211 |                 completion(result)
    |                 |- warning: capture of 'completion' with non-sendable type '(UIImageColors?) -> 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'
212 |             }
213 |         }
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:211:17: warning: capture of 'completion' with non-sendable type '(UIImageColors?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 |             let result = self.getColors(quality: quality)
210 |             DispatchQueue.main.async {
211 |                 completion(result)
    |                 |- warning: capture of 'completion' with non-sendable type '(UIImageColors?) -> 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'
212 |             }
213 |         }
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:211:28: warning: capture of 'result' with non-sendable type 'UIImageColors?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 14 | #endif
 15 |
 16 | public struct UIImageColors {
    |               `- note: consider making struct 'UIImageColors' conform to the 'Sendable' protocol
 17 |     public var background: UIColor!
 18 |     public var primary: UIColor!
    :
209 |             let result = self.getColors(quality: quality)
210 |             DispatchQueue.main.async {
211 |                 completion(result)
    |                            `- warning: capture of 'result' with non-sendable type 'UIImageColors?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
212 |             }
213 |         }
[4/4] Emitting module UIImageColors
Build complete! (8.53s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UIImageColors",
  "name" : "UIImageColors",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UIImageColors",
      "targets" : [
        "UIImageColors"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UIImageColors",
      "module_type" : "SwiftTarget",
      "name" : "UIImageColors",
      "path" : "UIImageColors",
      "product_memberships" : [
        "UIImageColors"
      ],
      "sources" : [
        "Sources/UIImageColors.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.