Build Information
Successful build of UIImageColors, reference master (f064be
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 00:22:11 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: 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.92s)
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.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:210:26: warning: capture of 'self' with non-sendable type 'NSImage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
211 | DispatchQueue.main.async {
212 | 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:210:50: warning: capture of 'quality' with non-sendable type 'UIImageColorsQuality' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
213 | }
214 | }
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
213 | }
214 | }
/Users/admin/builder/spi-builder-workspace/UIImageColors/Sources/UIImageColors.swift:212:28: warning: capture of 'result' with non-sendable type 'UIImageColors?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct UIImageColors {
| `- note: consider making struct 'UIImageColors' conform to the 'Sendable' protocol
18 | public var background: UIColor!
19 | public var primary: UIColor!
:
210 | let result = self.getColors(quality: quality)
211 | DispatchQueue.main.async {
212 | 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
213 | }
214 | }
[4/4] Emitting module UIImageColors
Build complete! (8.99s)
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.