The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTfIdf, reference v1.0.0 (72ef1c), with Swift 6.1 for macOS (SPM) on 2 May 2026 09:41:06 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.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/aziyan99/SwiftTfIdf.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aziyan99/SwiftTfIdf
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 72ef1cd Merge pull request #1 from aziyan99/add-license-1
Cloned https://github.com/aziyan99/SwiftTfIdf.git
Revision (git rev-parse @):
72ef1cd20c105765f5b8d7d3c6e917198ace541b
SUCCESS checkout https://github.com/aziyan99/SwiftTfIdf.git at v1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/aziyan99/SwiftTfIdf.git
https://github.com/aziyan99/SwiftTfIdf.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftTfIdf",
  "name" : "SwiftTfIdf",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftTfIdf",
      "targets" : [
        "SwiftTfIdf"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftTfIdfTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTfIdfTests",
      "path" : "Tests/SwiftTfIdfTests",
      "sources" : [
        "SwiftTfIdfTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTfIdf"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTfIdf",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTfIdf",
      "path" : "Sources/SwiftTfIdf",
      "product_memberships" : [
        "SwiftTfIdf"
      ],
      "sources" : [
        "SwiftTfIdf.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Emitting module SwiftTfIdf
[4/4] Compiling SwiftTfIdf SwiftTfIdf.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'NLTokenizer' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 26 |         for sentence in sentences {
 27 |             var words = [String]()
 28 |             let tokenizer = NLTokenizer(unit: .word)
    |                             |- error: 'NLTokenizer' is only available in macOS 10.14 or newer
    |                             `- note: add 'if #available' version check
 29 |             tokenizer.string = sentence
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'init(unit:)' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 26 |         for sentence in sentences {
 27 |             var words = [String]()
 28 |             let tokenizer = NLTokenizer(unit: .word)
    |                             |- error: 'init(unit:)' is only available in macOS 10.14 or newer
    |                             `- note: add 'if #available' version check
 29 |             tokenizer.string = sentence
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:29:23: error: 'string' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 27 |             var words = [String]()
 28 |             let tokenizer = NLTokenizer(unit: .word)
 29 |             tokenizer.string = sentence
    |                       |- error: 'string' is only available in macOS 10.14 or newer
    |                       `- note: add 'if #available' version check
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
 31 |                 let word = String(sentence[tokenRange])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:30:23: error: 'enumerateTokens(in:using:)' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 28 |             let tokenizer = NLTokenizer(unit: .word)
 29 |             tokenizer.string = sentence
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
    |                       |- error: 'enumerateTokens(in:using:)' is only available in macOS 10.14 or newer
    |                       `- note: add 'if #available' version check
 31 |                 let word = String(sentence[tokenRange])
 32 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/3] Emitting module SwiftTfIdf
[3/3] Compiling SwiftTfIdf SwiftTfIdf.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'NLTokenizer' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 26 |         for sentence in sentences {
 27 |             var words = [String]()
 28 |             let tokenizer = NLTokenizer(unit: .word)
    |                             |- error: 'NLTokenizer' is only available in macOS 10.14 or newer
    |                             `- note: add 'if #available' version check
 29 |             tokenizer.string = sentence
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:28:29: error: 'init(unit:)' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 26 |         for sentence in sentences {
 27 |             var words = [String]()
 28 |             let tokenizer = NLTokenizer(unit: .word)
    |                             |- error: 'init(unit:)' is only available in macOS 10.14 or newer
    |                             `- note: add 'if #available' version check
 29 |             tokenizer.string = sentence
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:29:23: error: 'string' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 27 |             var words = [String]()
 28 |             let tokenizer = NLTokenizer(unit: .word)
 29 |             tokenizer.string = sentence
    |                       |- error: 'string' is only available in macOS 10.14 or newer
    |                       `- note: add 'if #available' version check
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
 31 |                 let word = String(sentence[tokenRange])
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTfIdf/SwiftTfIdf.swift:30:23: error: 'enumerateTokens(in:using:)' is only available in macOS 10.14 or newer
  2 | import Foundation
  3 |
  4 | public class SwiftTfIdf {
    |              `- note: add @available attribute to enclosing class
  5 |     public var rawSentences = [String]() // raw sentences
  6 |     public var topN: Int // how many top word want to get
    :
 19 |
 20 |     // Convert a bunch of sentences to array of words
 21 |     func sentences2ArrayOfWords(sentences: [String]) -> [[String]]{
    |          `- note: add @available attribute to enclosing instance method
 22 |         var arrayOfWordInSentences = [[String]]()
 23 |
    :
 28 |             let tokenizer = NLTokenizer(unit: .word)
 29 |             tokenizer.string = sentence
 30 |             tokenizer.enumerateTokens(in: sentence.startIndex..<sentence.endIndex) { tokenRange, _ in
    |                       |- error: 'enumerateTokens(in:using:)' is only available in macOS 10.14 or newer
    |                       `- note: add 'if #available' version check
 31 |                 let word = String(sentence[tokenRange])
 32 |
BUILD FAILURE 6.1 macosSpm