The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DCLib, reference 1.3.0 (38999c), with Swift 6.2 for macOS (SPM) on 28 Oct 2026 01:04:46 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DenDmitriev/DominantColors.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DenDmitriev/DominantColors
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 38999cf Update README.md for up version to 1.3.0
Cloned https://github.com/DenDmitriev/DominantColors.git
Revision (git rev-parse @):
38999cf2f1aedc33e932ba0729fe441e250d7d8d
SUCCESS checkout https://github.com/DenDmitriev/DominantColors.git at 1.3.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/DenDmitriev/DominantColors.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--3CB7CFEC50E0D141.txt
[3/35] Emitting module DominantColors
[4/38] Compiling DominantColors DominantColors+UIColor.swift
[5/38] Compiling DominantColors DominantColors.swift
[6/38] Compiling DominantColors CGFloatExtensions.swift
[7/38] Compiling DominantColors UIImageExtension.swift
[8/38] Compiling DominantColors GradientColors.swift
[9/38] Compiling DominantColors ImageColorError.swift
[10/38] Compiling DominantColors ContrastRatio.swift
[11/38] Compiling DominantColors DeltaEFormula.swift
[12/38] Compiling DominantColors Difference.swift
[13/38] Compiling DominantColors DominantColorAlgorithm.swift
[14/38] Compiling DominantColors AverageColor+UIColor.swift
[15/38] Compiling DominantColors AverageColor.swift
[16/38] Compiling DominantColors ColorFrequency.swift
[17/38] Compiling DominantColors ContrastColors.swift
[18/38] Compiling DominantColors ImageFIlter.swift
[19/38] Compiling DominantColors ImageTrimAlpha.swift
[20/38] Compiling DominantColors RelativeLuminance.swift
[21/38] Compiling DominantColors CGImageExtensions.swift
[22/38] Compiling DominantColors CGSizeExtensions.swift
[23/38] Compiling DominantColors NSImageExtension.swift
[24/38] Compiling DominantColors RGB.swift
[25/38] Compiling DominantColors RGB255.swift
[26/38] Compiling DominantColors XYZ.swift
[27/38] Compiling DominantColors ComplementaryColor.swift
[28/38] Compiling DominantColors ColorShade.swift
[29/38] Compiling DominantColors HSL.swift
[30/38] Compiling DominantColors Hex.swift
[31/38] Compiling DominantColors Lab.swift
[32/38] Compiling DominantColors DominantColorQuality.swift
[33/38] Compiling DominantColors DominantColors+CIAreaAverage.swift
[34/38] Compiling DominantColors DominantColors+CIE.swift
[35/38] Compiling DominantColors DominantColors+CIKMeans.swift
[36/38] Compiling DominantColors DominantColors+Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/DominantColors/DominantColors+Color.swift:50:16: error: 'init(cgColor:)' is only available in macOS 12.0 or newer
26 |     ///  - timeLog: Logs each step of the algorithm with time for debug.
27 |     /// - Returns: The dominant colors as array of `Color` instances.
28 |     public static func dominantSwiftUIColors(
   |                        `- note: add '@available' attribute to enclosing static method
29 |         image: CGImage,
30 |         quality: DominantColorQuality = .fair,
   :
48 |             timeLog: timeLog
49 |         )
50 |         .map { Color(cgColor: $0) }
   |                |- error: 'init(cgColor:)' is only available in macOS 12.0 or newer
   |                `- note: add 'if #available' version check
51 |     }
52 | }
[37/38] Compiling DominantColors DominantColors+ColorResolved.swift
/Users/admin/builder/spi-builder-workspace/Sources/DominantColors/DominantColors+Color.swift:50:16: error: 'init(cgColor:)' is only available in macOS 12.0 or newer
26 |     ///  - timeLog: Logs each step of the algorithm with time for debug.
27 |     /// - Returns: The dominant colors as array of `Color` instances.
28 |     public static func dominantSwiftUIColors(
   |                        `- note: add '@available' attribute to enclosing static method
29 |         image: CGImage,
30 |         quality: DominantColorQuality = .fair,
   :
48 |             timeLog: timeLog
49 |         )
50 |         .map { Color(cgColor: $0) }
   |                |- error: 'init(cgColor:)' is only available in macOS 12.0 or newer
   |                `- note: add 'if #available' version check
51 |     }
52 | }
[38/38] Compiling DominantColors DominantColors+NSColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/DominantColors/DominantColors+Color.swift:50:16: error: 'init(cgColor:)' is only available in macOS 12.0 or newer
26 |     ///  - timeLog: Logs each step of the algorithm with time for debug.
27 |     /// - Returns: The dominant colors as array of `Color` instances.
28 |     public static func dominantSwiftUIColors(
   |                        `- note: add '@available' attribute to enclosing static method
29 |         image: CGImage,
30 |         quality: DominantColorQuality = .fair,
   :
48 |             timeLog: timeLog
49 |         )
50 |         .map { Color(cgColor: $0) }
   |                |- error: 'init(cgColor:)' is only available in macOS 12.0 or newer
   |                `- note: add 'if #available' version check
51 |     }
52 | }
BUILD FAILURE 6.2 macosSpm