The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DashDashSwift with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chrisladd/DashDashSwift.git
Reference: master
Cloned https://github.com/chrisladd/DashDashSwift.git into spi-builder-workspace
SUCCESS checkout https://github.com/chrisladd/DashDashSwift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/5] Emitting module DashDashSwift
[2/5] Compiling DashDashSwift CommandLineFlag.swift
[3/5] Compiling DashDashSwift CommandLineFormat.swift
[4/5] Compiling DashDashSwift CommandLineParser.swift
[5/5] Compiling DashDashSwift String+MaxLineLength.swift
/host/spi-builder-workspace/Sources/DashDashSwift/String+MaxLineLength.swift:14:22: error: cannot find 'NSLinguisticTagger' in scope
        let tagger = NSLinguisticTagger(tagSchemes: [.tokenType], options: 0)
                     ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DashDashSwift/String+MaxLineLength.swift:14:55: error: reference to member 'tokenType' cannot be resolved without a contextual type
        let tagger = NSLinguisticTagger(tagSchemes: [.tokenType], options: 0)
                                                      ^
/host/spi-builder-workspace/Sources/DashDashSwift/String+MaxLineLength.swift:26:52: error: cannot infer contextual base in reference to member 'word'
            tagger.enumerateTags(in: range, unit: .word, scheme: .tokenType, options: []) { _, tokenRange, _ in
                                                  ~^~~~
/host/spi-builder-workspace/Sources/DashDashSwift/String+MaxLineLength.swift:26:67: error: cannot infer contextual base in reference to member 'tokenType'
            tagger.enumerateTags(in: range, unit: .word, scheme: .tokenType, options: []) { _, tokenRange, _ in
                                                                 ~^~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2