Build Information
Failed to build SwiftTfIdf with Swift 5.10 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aziyan99/SwiftTfIdf.git
Reference: main
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/aziyan99/SwiftTfIdf
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0300678 Create CONTRIBUTING.md
Cloned https://github.com/aziyan99/SwiftTfIdf.git
Revision (git rev-parse @):
030067817e1f4867d0177e5d3d3bc01e2d505a90
SUCCESS checkout https://github.com/aziyan99/SwiftTfIdf.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $workDir
https://github.com/aziyan99/SwiftTfIdf.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--423B1241ED78D482.txt
[3/4] Emitting module SwiftTfIdf
[4/4] Compiling SwiftTfIdf SwiftTfIdf.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'NLTokenizer' is only available in macOS 10.14 or newer
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: note: add 'if #available' version check
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'init(unit:)' is only available in macOS 10.14 or newer
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: note: add 'if #available' version check
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:29:23: error: 'string' is only available in macOS 10.14 or newer
tokenizer.string = sentence
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:29:23: note: add 'if #available' version check
tokenizer.string = sentence
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:30:23: error: 'enumerateTokens(in:using:)' is only available in macOS 10.14 or newer
tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:30:23: note: add 'if #available' version check
tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version--423B1241ED78D482.txt
[2/3] Emitting module SwiftTfIdf
[3/3] Compiling SwiftTfIdf SwiftTfIdf.swift
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'NLTokenizer' is only available in macOS 10.14 or newer
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: note: add 'if #available' version check
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'init(unit:)' is only available in macOS 10.14 or newer
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: note: add 'if #available' version check
let tokenizer = NLTokenizer(unit: .word)
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:29:23: error: 'string' is only available in macOS 10.14 or newer
tokenizer.string = sentence
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:29:23: note: add 'if #available' version check
tokenizer.string = sentence
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:30:23: error: 'enumerateTokens(in:using:)' is only available in macOS 10.14 or newer
tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:30:23: note: add 'if #available' version check
tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:21:10: note: add @available attribute to enclosing instance method
func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
^
/Users/builder/builds/UKfvDsi8u/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:4:14: note: add @available attribute to enclosing class
public class SwiftTfIdf {
^
error: fatalError
BUILD FAILURE 5.10 macosSpm