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 5 Nov 2024 04:05:52 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
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
[11/1075] Fetching similarity-search-kit
Fetched https://github.com/ZachNagengast/similarity-search-kit.git from cache (10.78s)
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
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
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 VectorStoreProtocol.swift
[8/25] Compiling SimilaritySearchKit CharacterSplitter.swift
[9/25] Compiling SimilaritySearchKit RecursiveCharacterSplitter.swift
[10/25] Compiling SimilaritySearchKit resource_bundle_accessor.swift
[11/25] Compiling SimilaritySearchKit JsonStore.swift
[12/25] Compiling SimilaritySearchKit MLModelStore.swift
[13/25] 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?()
[14/25] 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?()
[15/25] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
[16/25] Compiling SimilaritySearchKit TokenSplitter.swift
[17/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 |
[18/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 |
[19/25] Compiling SimilaritySearchKit BertTokenizer.swift
[20/25] Compiling SimilaritySearchKit NativeTokenizer.swift
[21/25] Compiling SimilaritySearchKit DistanceMetrics.swift
[22/25] Compiling SimilaritySearchKit TopK.swift
[23/25] Emitting module SimilaritySearchKit
[24/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)
[25/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)
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.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/31] Emitting module SimilaritySearchKitDistilbert
/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
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/DistilbertEmbeddings.swift:13:14: error: type 'DistilbertEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 13.0, iOS 16.0, *)
13 | public class DistilbertEmbeddings: EmbeddingsProtocol {
   |              `- error: type 'DistilbertEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
14 |     public let model: msmarco_distilbert_base_tas_b_512_single_quantized
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.
[28/31] Compiling SimilaritySearchKitDistilbert DistilbertEmbeddings.swift
/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
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/DistilbertEmbeddings.swift:13:14: error: type 'DistilbertEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 13.0, iOS 16.0, *)
13 | public class DistilbertEmbeddings: EmbeddingsProtocol {
   |              `- error: type 'DistilbertEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
14 |     public let model: msmarco_distilbert_base_tas_b_512_single_quantized
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/Distilbert/DistilbertEmbeddings.swift:24:30: error: cannot find 'msmarco_distilbert_base_tas_b_512_single_quantized' in scope
22 |
23 |         do {
24 |             self.model = try msmarco_distilbert_base_tas_b_512_single_quantized(configuration: modelConfig)
   |                              `- error: cannot find 'msmarco_distilbert_base_tas_b_512_single_quantized' 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/Distilbert/DistilbertEmbeddings.swift:25:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
23 |         do {
24 |             self.model = try msmarco_distilbert_base_tas_b_512_single_quantized(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/Distilbert/DistilbertEmbeddings.swift:46:29: error: cannot find 'msmarco_distilbert_base_tas_b_512_single_quantizedInput' in scope
44 |
45 |     public func generateDistilbertEmbeddings(inputIds: MLMultiArray, attentionMask: MLMultiArray) -> [Float]? {
46 |         let inputFeatures = msmarco_distilbert_base_tas_b_512_single_quantizedInput(
   |                             `- error: cannot find 'msmarco_distilbert_base_tas_b_512_single_quantizedInput' in scope
47 |             input_ids: inputIds,
48 |             attention_mask: attentionMask
error: emit-module command failed with exit code 1 (use -v to see invocation)
/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 |         }
[29/31] Emitting module SimilaritySearchKitMiniLMAll
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/MiniLMAllEmbeddings.swift:14:23: error: cannot find type 'all_MiniLM_L6_v2' in scope
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MiniLMEmbeddings: EmbeddingsProtocol {
14 |     public let model: all_MiniLM_L6_v2
   |                       `- error: cannot find type 'all_MiniLM_L6_v2' in scope
15 |     public let tokenizer: BertTokenizer
16 |     public let inputDimention: Int = 512
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/MiniLMAllEmbeddings.swift:13:14: error: type 'MiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MiniLMEmbeddings: EmbeddingsProtocol {
   |              `- error: type 'MiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
14 |     public let model: all_MiniLM_L6_v2
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/MiniLMAll/MiniLMAllEmbeddings.swift:14:23: error: cannot find type 'all_MiniLM_L6_v2' in scope
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MiniLMEmbeddings: EmbeddingsProtocol {
14 |     public let model: all_MiniLM_L6_v2
   |                       `- error: cannot find type 'all_MiniLM_L6_v2' in scope
15 |     public let tokenizer: BertTokenizer
16 |     public let inputDimention: Int = 512
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/MiniLMAllEmbeddings.swift:13:14: error: type 'MiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MiniLMEmbeddings: EmbeddingsProtocol {
   |              `- error: type 'MiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
14 |     public let model: all_MiniLM_L6_v2
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/MiniLMAll/MiniLMAllEmbeddings.swift:24:30: error: cannot find 'all_MiniLM_L6_v2' in scope
22 |
23 |         do {
24 |             self.model = try all_MiniLM_L6_v2(configuration: modelConfig)
   |                              `- error: cannot find 'all_MiniLM_L6_v2' 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/MiniLMAll/MiniLMAllEmbeddings.swift:25:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
23 |         do {
24 |             self.model = try all_MiniLM_L6_v2(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 |         }
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/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/FeatureDescriptions.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/Metadata.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/model.mlmodel
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/weights/weight.bin
    /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/FeatureDescriptions.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/Manifest.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/model.mlmodel
    /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/weights/weight.bin
BUILD FAILURE 6.0 macosSpm