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

Failed to build ContrastKit, reference main (faab70), with Swift 5.9 for macOS (SPM) on 13 Sep 2024 11:47:38 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
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 faab709 Delete .swiftpm/xcode/package.xcworkspace/xcshareddata directory
Cloned https://github.com/markbattistella/ContrastKit.git
Revision (git rev-parse @):
faab70962aa2682c25ed714bb23d46c91fcc9e63
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] Compiling ContrastKit AgnosticColor.swift
[3/10] Compiling ContrastKit Color+Convenience.swift
[4/10] Compiling ContrastKit UIColor+Ext.swift
[5/10] Emitting module ContrastKit
[6/10] Compiling ContrastKit Color+Helpers.swift
[7/10] Compiling ContrastKit Color+Ext.swift
[8/10] Compiling ContrastKit ContrastLevel.swift
[9/10] Compiling ContrastKit ColorLevel.swift
[10/10] Compiling ContrastKit Example+SwiftUI.swift
error: fatalError
BUILD FAILURE 5.9 macosSpm