The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SimilaritySearchKit, reference 0.0.15 (9bec54), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 04:16:50 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZachNagengast/similarity-search-kit.git
Reference: 0.0.15
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZachNagengast/similarity-search-kit
 * tag               0.0.15     -> FETCH_HEAD
HEAD is now at 9bec547 Formatting, and replace precondition with default value to prevent crashing
Cloned https://github.com/ZachNagengast/similarity-search-kit.git
Revision (git rev-parse @):
9bec54706c8124bb9b20a3a06d566066a9f55712
SUCCESS checkout https://github.com/ZachNagengast/similarity-search-kit.git at 0.0.15
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "similarity-search-kit",
      "name": "SimilaritySearchKit",
      "url": "https://github.com/ZachNagengast/similarity-search-kit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/similarity-search-kit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ZachNagengast/similarity-search-kit.git
[1/1075] Fetching similarity-search-kit
Fetched https://github.com/ZachNagengast/similarity-search-kit.git from cache (10.31s)
Creating working copy for https://github.com/ZachNagengast/similarity-search-kit.git
Working copy of https://github.com/ZachNagengast/similarity-search-kit.git resolved at 0.0.15 (9bec547)
warning: '.resolve-product-dependencies': dependency 'similarity-search-kit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ZachNagengast/similarity-search-kit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimilaritySearchKit",
  "name" : "SimilaritySearchKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SimilaritySearchKit",
      "targets" : [
        "SimilaritySearchKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SimilaritySearchKitDistilbert",
      "targets" : [
        "SimilaritySearchKitDistilbert"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SimilaritySearchKitMiniLMAll",
      "targets" : [
        "SimilaritySearchKitMiniLMAll"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SimilaritySearchKitMiniLMMultiQA",
      "targets" : [
        "SimilaritySearchKitMiniLMMultiQA"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimilaritySearchKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SimilaritySearchKitTests",
      "path" : "Tests/SimilaritySearchKitTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/SimilaritySearchKitTests/Resources/ms_marco_validation_v2.1_subset.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "BenchmarkTests.swift",
        "DistanceTest.swift",
        "Fixtures/MSMarcoFixture.swift",
        "SimilaritySearchKitTests.swift"
      ],
      "target_dependencies" : [
        "SimilaritySearchKit",
        "SimilaritySearchKitDistilbert",
        "SimilaritySearchKitMiniLMAll",
        "SimilaritySearchKitMiniLMMultiQA"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimilaritySearchKitMiniLMMultiQA",
      "module_type" : "SwiftTarget",
      "name" : "SimilaritySearchKitMiniLMMultiQA",
      "path" : "Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA",
      "product_memberships" : [
        "SimilaritySearchKitMiniLMMultiQA"
      ],
      "sources" : [
        "MiniLMMultiQAEmbeddings.swift"
      ],
      "target_dependencies" : [
        "SimilaritySearchKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SimilaritySearchKitMiniLMAll",
      "module_type" : "SwiftTarget",
      "name" : "SimilaritySearchKitMiniLMAll",
      "path" : "Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll",
      "product_memberships" : [
        "SimilaritySearchKitMiniLMAll"
      ],
      "sources" : [
        "MiniLMAllEmbeddings.swift"
      ],
      "target_dependencies" : [
        "SimilaritySearchKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SimilaritySearchKitDistilbert",
      "module_type" : "SwiftTarget",
      "name" : "SimilaritySearchKitDistilbert",
      "path" : "Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert",
      "product_memberships" : [
        "SimilaritySearchKitDistilbert"
      ],
      "sources" : [
        "DistilbertEmbeddings.swift"
      ],
      "target_dependencies" : [
        "SimilaritySearchKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SimilaritySearchKit",
      "module_type" : "SwiftTarget",
      "name" : "SimilaritySearchKit",
      "path" : "Sources/SimilaritySearchKit/Core",
      "product_memberships" : [
        "SimilaritySearchKit",
        "SimilaritySearchKitDistilbert",
        "SimilaritySearchKitMiniLMAll",
        "SimilaritySearchKitMiniLMMultiQA"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Resources/bert_tokenizer_vocab.txt",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Embeddings/EmbeddingProtocols.swift",
        "Embeddings/Loaders/Files.swift",
        "Embeddings/Metrics/DistanceMetrics.swift",
        "Embeddings/Metrics/TopK.swift",
        "Embeddings/Models/NativeContextualEmbeddings.swift",
        "Embeddings/Models/NativeEmbeddings.swift",
        "Embeddings/Splitters/CharacterSplitter.swift",
        "Embeddings/Splitters/RecursiveCharacterSplitter.swift",
        "Embeddings/Splitters/RecursiveTokenSplitter.swift",
        "Embeddings/Splitters/TokenSplitter.swift",
        "Embeddings/Tokenizers/BertTokenizer.swift",
        "Embeddings/Tokenizers/NativeTokenizer.swift",
        "Index/SimilarityIndex.swift",
        "Persistence/BinaryStore/BinaryStore.swift",
        "Persistence/Json/JsonStore.swift",
        "Persistence/MLModel/MLModelStore.swift",
        "Persistence/VectorStoreProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/6] Write sources
[4/6] Copying bert_tokenizer_vocab.txt
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/24] Compiling SimilaritySearchKit SimilarityIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Persistence/BinaryStore/BinaryStore.swift:23:31: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
21 |             var length = Int32(itemData.count)
22 |             var lengthData = Data()
23 |             lengthData.append(UnsafeBufferPointer(start: &length, count: 1))
   |                               |                          |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                               |                          `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                               `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
24 |             data.append(lengthData)
25 |             data.append(itemData)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Persistence/BinaryStore/BinaryStore.swift:52:44: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
50 |         while start < decompressedData.endIndex {
51 |             let lengthData = decompressedData[start..<(start+4)]
52 |             let length: Int32 = lengthData.withUnsafeBytes { $0.pointee }
   |                                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
53 |             start += 4
54 |             let end = start + Int(length)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:248:61: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
246 |                 let meta = metadata[i]
247 |
248 |                 taskGroup.addTask(priority: .userInitiated) {
    |                                                             `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
249 |                     // Add the item using the addItem method
250 |                     await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
251 |                     onProgress?(id)
    |                     `- note: closure captures 'onProgress' which is accessible to code in the current task
252 |                 }
253 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:259:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
257 |
258 |     func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
259 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
260 |             for item in items {
261 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
    |                       `- note: closure captures 'self' which is accessible to code in the current task
262 |             }
263 |             completion?()
[8/24] Compiling SimilaritySearchKit BinaryStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Persistence/BinaryStore/BinaryStore.swift:23:31: warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
21 |             var length = Int32(itemData.count)
22 |             var lengthData = Data()
23 |             lengthData.append(UnsafeBufferPointer(start: &length, count: 1))
   |                               |                          |- note: implicit argument conversion from 'Int32' to 'UnsafePointer<Int32>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                               |                          `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                               `- warning: initialization of 'UnsafeBufferPointer<Int32>' results in a dangling buffer pointer
24 |             data.append(lengthData)
25 |             data.append(itemData)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Persistence/BinaryStore/BinaryStore.swift:52:44: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
50 |         while start < decompressedData.endIndex {
51 |             let lengthData = decompressedData[start..<(start+4)]
52 |             let length: Int32 = lengthData.withUnsafeBytes { $0.pointee }
   |                                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
53 |             start += 4
54 |             let end = start + Int(length)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:248:61: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
246 |                 let meta = metadata[i]
247 |
248 |                 taskGroup.addTask(priority: .userInitiated) {
    |                                                             `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
249 |                     // Add the item using the addItem method
250 |                     await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
251 |                     onProgress?(id)
    |                     `- note: closure captures 'onProgress' which is accessible to code in the current task
252 |                 }
253 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:259:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
257 |
258 |     func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
259 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
260 |             for item in items {
261 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
    |                       `- note: closure captures 'self' which is accessible to code in the current task
262 |             }
263 |             completion?()
[9/25] Compiling SimilaritySearchKit resource_bundle_accessor.swift
[10/25] Emitting module SimilaritySearchKit
[11/25] Compiling SimilaritySearchKit EmbeddingProtocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:250:19: warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |
194 | @available(macOS 13.0, iOS 16.0, *)
195 | public struct DiskItem: Identifiable, Hashable {
    |               `- note: consider making struct 'DiskItem' conform to the 'Sendable' protocol
196 |     public var id = UUID()
197 |     public let fileId = UUID()
    :
248 |         var folders: Int = 0
249 |
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
    |                   `- warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:250:61: warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |
194 | @available(macOS 13.0, iOS 16.0, *)
195 | public struct DiskItem: Identifiable, Hashable {
    |               `- note: consider making struct 'DiskItem' conform to the 'Sendable' protocol
196 |     public var id = UUID()
197 |     public let fileId = UUID()
    :
248 |         var folders: Int = 0
249 |
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
    |                                                             `- warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:252:27: warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |
194 | @available(macOS 13.0, iOS 16.0, *)
195 | public struct DiskItem: Identifiable, Hashable {
    |               `- note: consider making struct 'DiskItem' conform to the 'Sendable' protocol
196 |     public var id = UUID()
197 |     public let fileId = UUID()
    :
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
    |                           `- warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
253 |                     do {
254 |                         let path = content.path
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:252:52: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
    |                                                    `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 |                     do {
254 |                         let path = content.path
    :
263 |
264 |                         if isDirectory {
265 |                             return try await DiskItem(url: content, isDirectory: isDirectory, fileSize: Int64(fileSize), onProgress: onProgress)
    |                                                                                                                                      `- note: closure captures 'onProgress' which is accessible to code in the current task
266 |                         } else {
267 |                             let diskSize = Int64(fileSize)
[12/25] Compiling SimilaritySearchKit Files.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:250:19: warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |
194 | @available(macOS 13.0, iOS 16.0, *)
195 | public struct DiskItem: Identifiable, Hashable {
    |               `- note: consider making struct 'DiskItem' conform to the 'Sendable' protocol
196 |     public var id = UUID()
197 |     public let fileId = UUID()
    :
248 |         var folders: Int = 0
249 |
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
    |                   `- warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:250:61: warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |
194 | @available(macOS 13.0, iOS 16.0, *)
195 | public struct DiskItem: Identifiable, Hashable {
    |               `- note: consider making struct 'DiskItem' conform to the 'Sendable' protocol
196 |     public var id = UUID()
197 |     public let fileId = UUID()
    :
248 |         var folders: Int = 0
249 |
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
    |                                                             `- warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:252:27: warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |
194 | @available(macOS 13.0, iOS 16.0, *)
195 | public struct DiskItem: Identifiable, Hashable {
    |               `- note: consider making struct 'DiskItem' conform to the 'Sendable' protocol
196 |     public var id = UUID()
197 |     public let fileId = UUID()
    :
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
    |                           `- warning: type 'DiskItem' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
253 |                     do {
254 |                         let path = content.path
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Loaders/Files.swift:252:52: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 |         try await withThrowingTaskGroup(of: DiskItem?.self) { taskGroup in
251 |             for content in contents {
252 |                 taskGroup.addTask(priority: .high) {
    |                                                    `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 |                     do {
254 |                         let path = content.path
    :
263 |
264 |                         if isDirectory {
265 |                             return try await DiskItem(url: content, isDirectory: isDirectory, fileSize: Int64(fileSize), onProgress: onProgress)
    |                                                                                                                                      `- note: closure captures 'onProgress' which is accessible to code in the current task
266 |                         } else {
267 |                             let diskSize = Int64(fileSize)
[13/25] Compiling SimilaritySearchKit CharacterSplitter.swift
[14/25] Compiling SimilaritySearchKit RecursiveCharacterSplitter.swift
[15/25] Compiling SimilaritySearchKit JsonStore.swift
[16/25] Compiling SimilaritySearchKit MLModelStore.swift
[17/25] Compiling SimilaritySearchKit BertTokenizer.swift
[18/25] Compiling SimilaritySearchKit NativeTokenizer.swift
[19/25] Compiling SimilaritySearchKit VectorStoreProtocol.swift
[20/25] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
[21/25] Compiling SimilaritySearchKit TokenSplitter.swift
[22/25] Compiling SimilaritySearchKit DistanceMetrics.swift
[23/25] Compiling SimilaritySearchKit TopK.swift
[24/25] Compiling SimilaritySearchKit NativeContextualEmbeddings.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Models/NativeEmbeddings.swift:23:22: warning: sending 'type' risks causing data races; this is an error in the Swift 6 language mode
 21 |     public init(language: NLLanguage = .english, type: NativeEmbeddingType = .sentenceEmbedding) {
 22 |         self.tokenizer = NativeTokenizer()
 23 |         self.model = ModelActor(language: language, type: type)
    |                      |- warning: sending 'type' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'type' to actor-isolated initializer 'init(language:type:)' risks causing data races between actor-isolated and task-isolated uses
 24 |     }
 25 |
[25/25] Compiling SimilaritySearchKit NativeEmbeddings.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/Models/NativeEmbeddings.swift:23:22: warning: sending 'type' risks causing data races; this is an error in the Swift 6 language mode
 21 |     public init(language: NLLanguage = .english, type: NativeEmbeddingType = .sentenceEmbedding) {
 22 |         self.tokenizer = NativeTokenizer()
 23 |         self.model = ModelActor(language: language, type: type)
    |                      |- warning: sending 'type' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: sending task-isolated 'type' to actor-isolated initializer 'init(language:type:)' risks causing data races between actor-isolated and task-isolated uses
 24 |     }
 25 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/31] Emitting module SimilaritySearchKitMiniLMMultiQA
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:14:23: error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
14 |     public let model: multi_qa_MiniLM_L6_cos_v1
   |                       `- error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
15 |     public let tokenizer: BertTokenizer
16 |     public let inputDimention: Int = 512
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:13:14: error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
   |              `- error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
14 |     public let model: multi_qa_MiniLM_L6_cos_v1
15 |     public let tokenizer: BertTokenizer
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:18:20: note: protocol requires nested type 'TokenizerType'; add nested type 'TokenizerType' for conformance
16 | public protocol EmbeddingsProtocol {
17 |     /// The associated tokenizer type for the embedding model.
18 |     associatedtype TokenizerType
   |                    `- note: protocol requires nested type 'TokenizerType'; add nested type 'TokenizerType' for conformance
19 |
20 |     /// The associated Core ML model type for the embedding model.
21 |     associatedtype ModelType
   |                    `- note: protocol requires nested type 'ModelType'; add nested type 'ModelType' for conformance
22 |
23 |     /// The tokenizer used to tokenize input text.
[27/31] Compiling SimilaritySearchKitMiniLMMultiQA MiniLMMultiQAEmbeddings.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:14:23: error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
14 |     public let model: multi_qa_MiniLM_L6_cos_v1
   |                       `- error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
15 |     public let tokenizer: BertTokenizer
16 |     public let inputDimention: Int = 512
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:13:14: error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
   |              `- error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
14 |     public let model: multi_qa_MiniLM_L6_cos_v1
15 |     public let tokenizer: BertTokenizer
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Embeddings/EmbeddingProtocols.swift:18:20: note: protocol requires nested type 'TokenizerType'; add nested type 'TokenizerType' for conformance
16 | public protocol EmbeddingsProtocol {
17 |     /// The associated tokenizer type for the embedding model.
18 |     associatedtype TokenizerType
   |                    `- note: protocol requires nested type 'TokenizerType'; add nested type 'TokenizerType' for conformance
19 |
20 |     /// The associated Core ML model type for the embedding model.
21 |     associatedtype ModelType
   |                    `- note: protocol requires nested type 'ModelType'; add nested type 'ModelType' for conformance
22 |
23 |     /// The tokenizer used to tokenize input text.
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:24:30: error: cannot find 'multi_qa_MiniLM_L6_cos_v1' in scope
22 |
23 |         do {
24 |             self.model = try multi_qa_MiniLM_L6_cos_v1(configuration: modelConfig)
   |                              `- error: cannot find 'multi_qa_MiniLM_L6_cos_v1' in scope
25 |         } catch {
26 |             fatalError("Failed to load the Core ML model. Error: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:25:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
23 |         do {
24 |             self.model = try multi_qa_MiniLM_L6_cos_v1(configuration: modelConfig)
25 |         } catch {
   |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
26 |             fatalError("Failed to load the Core ML model. Error: \(error.localizedDescription)")
27 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:46:29: error: cannot find 'multi_qa_MiniLM_L6_cos_v1Input' in scope
44 |
45 |     public func generateEmbeddings(inputIds: MLMultiArray, attentionMask: MLMultiArray) -> [Float]? {
46 |         let inputFeatures = multi_qa_MiniLM_L6_cos_v1Input(input_ids: inputIds, attention_mask: attentionMask)
   |                             `- error: cannot find 'multi_qa_MiniLM_L6_cos_v1Input' in scope
47 |
48 |         let output = try? model.prediction(input: inputFeatures)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/DistilbertEmbeddings.swift:14:23: error: cannot find type 'msmarco_distilbert_base_tas_b_512_single_quantized' in scope
12 | @available(macOS 13.0, iOS 16.0, *)
13 | public class DistilbertEmbeddings: EmbeddingsProtocol {
14 |     public let model: msmarco_distilbert_base_tas_b_512_single_quantized
   |                       `- error: cannot find type 'msmarco_distilbert_base_tas_b_512_single_quantized' in scope
15 |     public let tokenizer: BertTokenizer
16 |     public let inputDimention: Int = 512
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Manifest.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/weights/weight.bin
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/model.mlmodel
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/Metadata.json
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/Metadata.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/model.mlmodel
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/weights/weight.bin
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Manifest.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Manifest.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/Metadata.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/model.mlmodel
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/weights/weight.bin
BUILD FAILURE 6.0 macosSpm