The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build ContrastKit, reference main (9d8865), with Swift 5.9 for macOS (SPM) on 27 May 2025 01:42:59 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/markbattistella/ContrastKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/markbattistella/ContrastKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9d88652 Delete Documentation directory
Cloned https://github.com/markbattistella/ContrastKit.git
Revision (git rev-parse @):
9d88652723f702167ec8a6d1bdcc8801cfed5ed8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/markbattistella/ContrastKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD
https://github.com/markbattistella/ContrastKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/10] Compiling ContrastKit PreviewTesting.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContrastKit/UITesting/PreviewTesting.swift:112:24: error: no exact matches in call to instance method 'appendInterpolation'
                Text("\(level)")
                       ^
SwiftUI.LocalizedStringKey:10:30: note: candidate requires that 'ColorLevel' conform to 'ReferenceConvertible' (requirement specified as 'Subject' : 'ReferenceConvertible')
        public mutating func appendInterpolation<Subject>(_ subject: Subject, formatter: Formatter? = nil) where Subject : ReferenceConvertible
                             ^
SwiftUI.LocalizedStringKey:11:30: note: candidate requires that 'NSObject' inherit from 'Subject' (requirement specified as 'Subject' : 'NSObject')
        public mutating func appendInterpolation<Subject>(_ subject: Subject, formatter: Formatter? = nil) where Subject : NSObject
                             ^
SwiftUI.LocalizedStringKey:14:30: note: candidate requires that 'ColorLevel' conform to '_FormatSpecifiable' (requirement specified as 'T' : '_FormatSpecifiable')
        public mutating func appendInterpolation<T>(_ value: T) where T : _FormatSpecifiable
                             ^
[2/10] Emitting module ContrastKit
[3/10] Compiling ContrastKit ContrastLevel.swift
[4/10] Compiling ContrastKit Color+Convenience.swift
[5/10] Compiling ContrastKit Color+Helpers.swift
[6/10] Compiling ContrastKit ColorLevel.swift
[7/10] Compiling ContrastKit UIColor+Ext.swift
[8/10] Compiling ContrastKit Color+Ext.swift
[9/10] Compiling ContrastKit AgnosticColor.swift
[10/10] Compiling ContrastKit Example+SwiftUI.swift
error: fatalError
BUILD FAILURE 5.9 macosSpm