The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SmoothReading, reference main (b07b07), with Swift 6.2 for Linux on 4 Nov 2026 20:27:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PythonShe/Smooth_Reading.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/PythonShe/Smooth_Reading
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b07b070 docs(agents): trim instruction files and drop rules now global
Cloned https://github.com/PythonShe/Smooth_Reading.git
Revision (git rev-parse @):
b07b070406d8c8e271fda0f5aa655193d1c96790
SUCCESS checkout https://github.com/PythonShe/Smooth_Reading.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/PythonShe/Smooth_Reading.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:3b8ac581d32055e8615440d6f2242826e343275e8abdb3534700e4187075d534
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling SmoothReading Tokenizer.swift
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:51:28: error: cannot find 'CFStringTokenizerCopyBestStringLanguage' in scope
 49 |         let utf16Length = text.utf16.distance(from: range.lowerBound, to: range.upperBound)
 50 |         guard
 51 |             let detected = CFStringTokenizerCopyBestStringLanguage(
    |                            `- error: cannot find 'CFStringTokenizerCopyBestStringLanguage' in scope
 52 |                 text as CFString, CFRangeMake(utf16Start, utf16Length)) as String?
 53 |         else { return .current }
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:52:35: error: cannot find 'CFRangeMake' in scope
 50 |         guard
 51 |             let detected = CFStringTokenizerCopyBestStringLanguage(
 52 |                 text as CFString, CFRangeMake(utf16Start, utf16Length)) as String?
    |                                   `- error: cannot find 'CFRangeMake' in scope
 53 |         else { return .current }
 54 |         let language = detected.prefix { $0 != "-" && $0 != "_" }
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:52:25: error: cannot find type 'CFString' in scope
 50 |         guard
 51 |             let detected = CFStringTokenizerCopyBestStringLanguage(
 52 |                 text as CFString, CFRangeMake(utf16Start, utf16Length)) as String?
    |                         `- error: cannot find type 'CFString' in scope
 53 |         else { return .current }
 54 |         let language = detected.prefix { $0 != "-" && $0 != "_" }
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:61:26: error: cannot find type 'CFString' in scope
 59 |         in text: String, range: Range<String.Index>, locale: Locale
 60 |     ) -> [Range<String.Index>] {
 61 |         let cf = text as CFString
    |                          `- error: cannot find type 'CFString' in scope
 62 |         let utf16Start = text.utf16.distance(from: text.startIndex, to: range.lowerBound)
 63 |         let utf16Length = text.utf16.distance(from: range.lowerBound, to: range.upperBound)
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:64:25: error: cannot find 'CFStringTokenizerCreate' in scope
 62 |         let utf16Start = text.utf16.distance(from: text.startIndex, to: range.lowerBound)
 63 |         let utf16Length = text.utf16.distance(from: range.lowerBound, to: range.upperBound)
 64 |         let tokenizer = CFStringTokenizerCreate(
    |                         `- error: cannot find 'CFStringTokenizerCreate' in scope
 65 |             kCFAllocatorDefault, cf, CFRangeMake(utf16Start, utf16Length),
 66 |             kCFStringTokenizerUnitWordBoundary, locale as CFLocale)
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:65:13: error: cannot find 'kCFAllocatorDefault' in scope
 63 |         let utf16Length = text.utf16.distance(from: range.lowerBound, to: range.upperBound)
 64 |         let tokenizer = CFStringTokenizerCreate(
 65 |             kCFAllocatorDefault, cf, CFRangeMake(utf16Start, utf16Length),
    |             `- error: cannot find 'kCFAllocatorDefault' in scope
 66 |             kCFStringTokenizerUnitWordBoundary, locale as CFLocale)
 67 |         var ranges: [Range<String.Index>] = []
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:65:38: error: cannot find 'CFRangeMake' in scope
 63 |         let utf16Length = text.utf16.distance(from: range.lowerBound, to: range.upperBound)
 64 |         let tokenizer = CFStringTokenizerCreate(
 65 |             kCFAllocatorDefault, cf, CFRangeMake(utf16Start, utf16Length),
    |                                      `- error: cannot find 'CFRangeMake' in scope
 66 |             kCFStringTokenizerUnitWordBoundary, locale as CFLocale)
 67 |         var ranges: [Range<String.Index>] = []
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:66:13: error: cannot find 'kCFStringTokenizerUnitWordBoundary' in scope
 64 |         let tokenizer = CFStringTokenizerCreate(
 65 |             kCFAllocatorDefault, cf, CFRangeMake(utf16Start, utf16Length),
 66 |             kCFStringTokenizerUnitWordBoundary, locale as CFLocale)
    |             `- error: cannot find 'kCFStringTokenizerUnitWordBoundary' in scope
 67 |         var ranges: [Range<String.Index>] = []
 68 |         while CFStringTokenizerAdvanceToNextToken(tokenizer) != [] {
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:66:59: error: cannot find type 'CFLocale' in scope
 64 |         let tokenizer = CFStringTokenizerCreate(
 65 |             kCFAllocatorDefault, cf, CFRangeMake(utf16Start, utf16Length),
 66 |             kCFStringTokenizerUnitWordBoundary, locale as CFLocale)
    |                                                           `- error: cannot find type 'CFLocale' in scope
 67 |         var ranges: [Range<String.Index>] = []
 68 |         while CFStringTokenizerAdvanceToNextToken(tokenizer) != [] {
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:68:15: error: cannot find 'CFStringTokenizerAdvanceToNextToken' in scope
 66 |             kCFStringTokenizerUnitWordBoundary, locale as CFLocale)
 67 |         var ranges: [Range<String.Index>] = []
 68 |         while CFStringTokenizerAdvanceToNextToken(tokenizer) != [] {
    |               `- error: cannot find 'CFStringTokenizerAdvanceToNextToken' in scope
 69 |             let cfRange = CFStringTokenizerGetCurrentTokenRange(tokenizer)
 70 |             guard cfRange.location != kCFNotFound, cfRange.length > 0 else { continue }
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:69:27: error: cannot find 'CFStringTokenizerGetCurrentTokenRange' in scope
 67 |         var ranges: [Range<String.Index>] = []
 68 |         while CFStringTokenizerAdvanceToNextToken(tokenizer) != [] {
 69 |             let cfRange = CFStringTokenizerGetCurrentTokenRange(tokenizer)
    |                           `- error: cannot find 'CFStringTokenizerGetCurrentTokenRange' in scope
 70 |             guard cfRange.location != kCFNotFound, cfRange.length > 0 else { continue }
 71 |             // ICU reports UTF-16 offsets and happily ends a token in the middle
/host/spi-builder-workspace/swift/Sources/SmoothReading/Tokenizer.swift:70:39: error: cannot find 'kCFNotFound' in scope
 68 |         while CFStringTokenizerAdvanceToNextToken(tokenizer) != [] {
 69 |             let cfRange = CFStringTokenizerGetCurrentTokenRange(tokenizer)
 70 |             guard cfRange.location != kCFNotFound, cfRange.length > 0 else { continue }
    |                                       `- error: cannot find 'kCFNotFound' in scope
 71 |             // ICU reports UTF-16 offsets and happily ends a token in the middle
 72 |             // of a grapheme cluster: `我́` (U+6211 U+0301) comes back as the
[4/10] Compiling SmoothReading SmoothReading.swift
[5/10] Compiling SmoothReading SmoothToken.swift
[6/10] Compiling SmoothReading SmoothOptions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling SmoothReading Html.swift
[8/10] Compiling SmoothReading PlatformViews+SmoothReading.swift
[9/10] Emitting module SmoothReading
/host/spi-builder-workspace/swift/Sources/SmoothReading/AttributedString+SmoothReading.swift:128:19: error: reference to member 'inlinePresentationIntent' cannot be resolved without a contextual type
126 |     public static let defaultFixationAttributes: AttributeContainer = {
127 |         var container = AttributeContainer()
128 |         container.inlinePresentationIntent = .stronglyEmphasized
    |                   `- error: reference to member 'inlinePresentationIntent' cannot be resolved without a contextual type
129 |         return container
130 |     }()
[10/10] Compiling SmoothReading AttributedString+SmoothReading.swift
/host/spi-builder-workspace/swift/Sources/SmoothReading/AttributedString+SmoothReading.swift:128:19: error: reference to member 'inlinePresentationIntent' cannot be resolved without a contextual type
126 |     public static let defaultFixationAttributes: AttributeContainer = {
127 |         var container = AttributeContainer()
128 |         container.inlinePresentationIntent = .stronglyEmphasized
    |                   `- error: reference to member 'inlinePresentationIntent' cannot be resolved without a contextual type
129 |         return container
130 |     }()
BUILD FAILURE 6.2 linux