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 master (f064be), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 19:35:03 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jathu/UIImageColors.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jathu/UIImageColors
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f064be8 Merge pull request #81 from YuAo/patch-1
Cloned https://github.com/jathu/UIImageColors.git
Revision (git rev-parse @):
f064be8ee0b03158e61135e6c384aee18d7a5414
SUCCESS checkout https://github.com/jathu/UIImageColors.git at master
========================================
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.19s)
Creating working copy for https://github.com/jathu/UIImageColors.git
Working copy of https://github.com/jathu/UIImageColors.git resolved at master (f064be8)
warning: '.resolve-product-dependencies': dependency 'uiimagecolors' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jathu/UIImageColors.git
https://github.com/jathu/UIImageColors.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Compiling UIImageColors UIImageColors.swift
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:210:26: warning: capture of 'self' with non-sendable type 'NSImage' in a '@Sendable' closure
208 |     public func getColors(quality: UIImageColorsQuality = .high, _ completion: @escaping (UIImageColors?) -> Void) {
209 |         DispatchQueue.global().async {
210 |             let result = self.getColors(quality: quality)
    |                          `- warning: capture of 'self' with non-sendable type 'NSImage' in a '@Sendable' closure
211 |             DispatchQueue.main.async {
212 |                 completion(result)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:210:50: warning: capture of 'quality' with non-sendable type 'UIImageColorsQuality' in a '@Sendable' closure
 29 | }
 30 |
 31 | public enum UIImageColorsQuality: CGFloat {
    |             `- note: consider making enum 'UIImageColorsQuality' conform to the 'Sendable' protocol
 32 |     case lowest = 50 // 50px
 33 |     case low = 100 // 100px
    :
208 |     public func getColors(quality: UIImageColorsQuality = .high, _ completion: @escaping (UIImageColors?) -> Void) {
209 |         DispatchQueue.global().async {
210 |             let result = self.getColors(quality: quality)
    |                                                  `- warning: capture of 'quality' with non-sendable type 'UIImageColorsQuality' in a '@Sendable' closure
211 |             DispatchQueue.main.async {
212 |                 completion(result)
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:212:17: warning: capture of 'completion' with non-sendable type '(UIImageColors?) -> Void' in a '@Sendable' closure
210 |             let result = self.getColors(quality: quality)
211 |             DispatchQueue.main.async {
212 |                 completion(result)
    |                 |- warning: capture of 'completion' with non-sendable type '(UIImageColors?) -> Void' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
213 |             }
214 |         }
[4/4] Emitting module UIImageColors
Build complete! (6.47s)
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.