Build Information
Failed to build Khac, reference 0.4.0 (7e5ed5), with Swift 6.2 for macOS (SPM) on 16 Aug 2026 20:22:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nhannht/Khac.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nhannht/Khac
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 7e5ed56 chore: release 0.4.0
Cloned https://github.com/nhannht/Khac.git
Revision (git rev-parse @):
7e5ed5638c0c2f743beb02a2b5181a12f7281ba7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/nhannht/Khac.git at 0.4.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/nhannht/Khac.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Write sources
[1/8] Write khac-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version--3CB7CFEC50E0D141.txt
[6/59] Emitting module Khac
[7/64] Compiling Khac MergeRelativeAnchorRefiner.swift
[8/64] Compiling Khac MergeWeekdayRefiner.swift
[9/64] Compiling Khac MergingRefiner.swift
[10/64] Compiling Khac OverlapFilterRefiner.swift
[11/64] Compiling Khac UnlikelyFilterRefiner.swift
[12/64] Compiling Khac ExtractTimezoneOffsetRefiner.swift
[13/64] Compiling Khac ExtractYearSuffixRefiner.swift
[14/64] Compiling Khac ForwardDateRefiner.swift
[15/64] Compiling Khac MergeDateRangeRefiner.swift
[16/64] Compiling Khac MergeDateTimeRefiner.swift
[17/64] Compiling Khac ENRefiners.swift
[18/64] Compiling Khac ESLocale.swift
[19/64] Compiling Khac FILocale.swift
[20/64] Compiling Khac FIParsers.swift
[21/64] Compiling Khac FRLocale.swift
[22/64] Compiling Khac ITLocale.swift
[23/64] Compiling Khac JALocale.swift
[24/64] Compiling Khac JAParsers.swift
[25/64] Compiling Khac Locale.swift
[26/64] Compiling Khac NLLocale.swift
[27/64] Compiling Khac PTLocale.swift
[28/64] Compiling Khac RULocale.swift
[29/64] Compiling Khac ZHLocale.swift
[30/64] Compiling Khac ZHParsers.swift
[31/64] Compiling Khac CasualDateParser.swift
[32/64] Compiling Khac ISOParser.swift
[33/64] Compiling Khac MonthNameParser.swift
[34/64] Compiling Khac ReferencePoint.swift
[35/64] Compiling Khac Regex.swift
[36/64] Compiling Khac ParserSupport.swift
[37/64] Compiling Khac PrecedingText.swift
[38/64] Compiling Khac RelativeDuration.swift
[39/64] Compiling Khac Normalization.swift
[40/64] Compiling Khac Khac.swift
[41/64] Compiling Khac CJKNumerals.swift
[42/64] Compiling Khac DELocale.swift
[43/64] Compiling Khac DEParsers.swift
[44/64] Compiling Khac ENLocale.swift
[45/64] Compiling Khac ENParsers.swift
[46/64] Compiling Khac NumericDateParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 | resolveRange(&start, &end)
188 |
189 | var startComponents = components(context, start)
| `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 | var endComponents = components(context, end)
191 |
[47/64] Compiling Khac RelativeUnitParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 | resolveRange(&start, &end)
188 |
189 | var startComponents = components(context, start)
| `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 | var endComponents = components(context, end)
191 |
[48/64] Compiling Khac TimeExpressionParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 | resolveRange(&start, &end)
188 |
189 | var startComponents = components(context, start)
| `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 | var endComponents = components(context, end)
191 |
[49/64] Compiling Khac WeekdayParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 | resolveRange(&start, &end)
188 |
189 | var startComponents = components(context, start)
| `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 | var endComponents = components(context, end)
191 |
[50/64] Compiling Khac YearParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Parsers/TimeExpressionParser.swift:189:13: warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
187 | resolveRange(&start, &end)
188 |
189 | var startComponents = components(context, start)
| `- warning: variable 'startComponents' was never mutated; consider changing to 'let' constant
190 | var endComponents = components(context, end)
191 |
[51/64] Compiling Khac Engine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
72 |
73 | for (localeIndex, prepared) in locales.enumerated() {
74 | let locale = prepared.locale
| `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
75 | let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
76 | lastContext = context
[52/64] Compiling Khac Options.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
72 |
73 | for (localeIndex, prepared) in locales.enumerated() {
74 | let locale = prepared.locale
| `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
75 | let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
76 | lastContext = context
[53/64] Compiling Khac ParsedResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
72 |
73 | for (localeIndex, prepared) in locales.enumerated() {
74 | let locale = prepared.locale
| `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
75 | let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
76 | lastContext = context
[54/64] Compiling Khac ParsingComponents.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
72 |
73 | for (localeIndex, prepared) in locales.enumerated() {
74 | let locale = prepared.locale
| `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
75 | let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
76 | lastContext = context
[55/64] Compiling Khac ParsingContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
72 |
73 | for (localeIndex, prepared) in locales.enumerated() {
74 | let locale = prepared.locale
| `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
75 | let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
76 | lastContext = context
[56/64] Compiling Khac PreparedLocale.swift
/Users/admin/builder/spi-builder-workspace/Sources/Khac/Core/Engine.swift:74:17: warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
72 |
73 | for (localeIndex, prepared) in locales.enumerated() {
74 | let locale = prepared.locale
| `- warning: initialization of immutable value 'locale' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
75 | let context = ParsingContext(reference: reference, options: options, prepared: prepared, normalization: normalization)
76 | lastContext = context
[57/64] Compiling Khac RUParsers.swift
[58/64] Compiling Khac SVLocale.swift
[59/64] Compiling Khac UKLocale.swift
[60/64] Compiling Khac UKParsers.swift
[61/64] Compiling Khac VILocale.swift
[62/71] Compiling KhacCLICore SourceLoader.swift
[63/71] Compiling KhacCLICore Run.swift
[64/71] Compiling KhacCLICore Event.swift
[65/71] Compiling KhacCLICore Output.swift
[66/71] Compiling KhacCLICore LineIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/KhacCLICore/LineIndex.swift:228:27: error: subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent
226 | let head = windowStart > 0 ? "..." : ""
227 | let tail = windowEnd < text.count ? "..." : ""
228 | return head + text[lower ..< upper] + tail
| `- error: subscript 'subscript(_:)' requires the types 'String.Index' and 'Int' be equivalent
229 | }
230 | }
Swift.String.subscript:3:10: note: where 'R.Bound' = 'String.Index'
1 | struct String {
2 | @available(*, unavailable, message: "cannot subscript String with an integer range, use a String.Index range instead.")
3 | public subscript<R>(bounds: R) -> String where R : RangeExpression, R.Bound == Int { get }}
| `- note: where 'R.Bound' = 'String.Index'
4 |
[67/71] Emitting module KhacCLICore
[68/71] Compiling KhacCLICore Arguments.swift
BUILD FAILURE 6.2 macosSpm