The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TranscriptDebugMenu, reference main (c50d3e), with Swift 6.2 for macOS (SPM) on 24 Apr 2026 02:37:21 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/artemnovichkov/TranscriptDebugMenu.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/artemnovichkov/TranscriptDebugMenu
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c50d3e5 Use #available guard in TokenCounter for backward compat
Cloned https://github.com/artemnovichkov/TranscriptDebugMenu.git
Revision (git rev-parse @):
c50d3e56a9570a99c73ca763136bc67376c67f12
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/artemnovichkov/TranscriptDebugMenu.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/artemnovichkov/TranscriptDebugMenu.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Write sources
[3/5] Copying PrivacyInfo.xcprivacy
[4/5] Write swift-version--3CB7CFEC50E0D141.txt
[6/13] Compiling TranscriptDebugMenu resource_bundle_accessor.swift
[7/13] Compiling TranscriptDebugMenu View+TranscriptDebugMenu.swift
[8/13] Compiling TranscriptDebugMenu TranscriptEntryDetailView.swift
[9/13] Compiling TranscriptDebugMenu SearchScope.swift
[10/13] Compiling TranscriptDebugMenu TranscriptDebugMenu.swift
[11/13] Compiling TranscriptDebugMenu Mocks.swift
[12/13] Emitting module TranscriptDebugMenu
[13/13] Compiling TranscriptDebugMenu TokenCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/TranscriptDebugMenu/TokenCounter.swift:20:46: error: value of type 'SystemLanguageModel' has no member 'tokenCount'
18 |         }
19 |         do {
20 |             let tokenCount = try await model.tokenCount(for: entries)
   |                                              `- error: value of type 'SystemLanguageModel' has no member 'tokenCount'
21 |             let contextSize = model.contextSize
22 |             let percent = contextSize > 0 ? Float(tokenCount) / Float(contextSize) : 0
/Users/admin/builder/spi-builder-workspace/Sources/TranscriptDebugMenu/TokenCounter.swift:21:37: error: value of type 'SystemLanguageModel' has no member 'contextSize'
19 |         do {
20 |             let tokenCount = try await model.tokenCount(for: entries)
21 |             let contextSize = model.contextSize
   |                                     `- error: value of type 'SystemLanguageModel' has no member 'contextSize'
22 |             let percent = contextSize > 0 ? Float(tokenCount) / Float(contextSize) : 0
23 |             let formattedPercent = percent.formatted(.percent.precision(.fractionLength(1)).rounded(rule: .down))
/Users/admin/builder/spi-builder-workspace/Sources/TranscriptDebugMenu/TokenCounter.swift:23:55: error: cannot infer contextual base in reference to member 'percent'
21 |             let contextSize = model.contextSize
22 |             let percent = contextSize > 0 ? Float(tokenCount) / Float(contextSize) : 0
23 |             let formattedPercent = percent.formatted(.percent.precision(.fractionLength(1)).rounded(rule: .down))
   |                                                       `- error: cannot infer contextual base in reference to member 'percent'
24 |             return "^[\(tokenCount) token](inflect: true) (\(formattedPercent) of context size)"
25 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/TranscriptDebugMenu/TokenCounter.swift:23:74: error: cannot infer contextual base in reference to member 'fractionLength'
21 |             let contextSize = model.contextSize
22 |             let percent = contextSize > 0 ? Float(tokenCount) / Float(contextSize) : 0
23 |             let formattedPercent = percent.formatted(.percent.precision(.fractionLength(1)).rounded(rule: .down))
   |                                                                          `- error: cannot infer contextual base in reference to member 'fractionLength'
24 |             return "^[\(tokenCount) token](inflect: true) (\(formattedPercent) of context size)"
25 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/TranscriptDebugMenu/TokenCounter.swift:23:108: error: cannot infer contextual base in reference to member 'down'
21 |             let contextSize = model.contextSize
22 |             let percent = contextSize > 0 ? Float(tokenCount) / Float(contextSize) : 0
23 |             let formattedPercent = percent.formatted(.percent.precision(.fractionLength(1)).rounded(rule: .down))
   |                                                                                                            `- error: cannot infer contextual base in reference to member 'down'
24 |             return "^[\(tokenCount) token](inflect: true) (\(formattedPercent) of context size)"
25 |         } catch {
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.27s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (4.47s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3674] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.05s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.82s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
BUILD FAILURE 6.2 macosSpm