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 main (39bbd0), with Swift 6.0 (beta) for macOS (SPM) on 15 Sep 2024 08:48:35 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buhe/similarity-search-kit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buhe/similarity-search-kit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 39bbd0b "Refactor loadIndex method to assign loaded index items directly to indexItems variable."
Cloned https://github.com/buhe/similarity-search-kit.git
Revision (git rev-parse @):
39bbd0b5c2662728792ee9be132212e5fd4a49e2
SUCCESS checkout https://github.com/buhe/similarity-search-kit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/buhe/similarity-search-kit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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
[2/6] Copying bert_tokenizer_vocab.txt
[5/6] Write swift-version-117DEE11B69C53C9.txt
[7/24] 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 |
[8/24] 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 |
[9/24] Compiling SimilaritySearchKit JsonStore.swift
[10/24] Compiling SimilaritySearchKit MLModelStore.swift
[11/24] Compiling SimilaritySearchKit VectorStoreProtocol.swift
[12/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:236:27: warning: task-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
234 |                 let meta = metadata[i]
235 |
236 |                 taskGroup.addTask(priority: .userInitiated) {
    |                           `- warning: task-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
237 |                     // Add the item using the addItem method
238 |                     await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:247:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
245 |
246 |     public func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
247 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
248 |             for item in items {
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
[13/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:236:27: warning: task-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
234 |                 let meta = metadata[i]
235 |
236 |                 taskGroup.addTask(priority: .userInitiated) {
    |                           `- warning: task-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
237 |                     // Add the item using the addItem method
238 |                     await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:247:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
245 |
246 |     public func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
247 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
248 |             for item in items {
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
[14/24] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
[15/24] Compiling SimilaritySearchKit TokenSplitter.swift
[16/24] Compiling SimilaritySearchKit CharacterSplitter.swift
[17/24] Compiling SimilaritySearchKit RecursiveCharacterSplitter.swift
[18/24] Compiling SimilaritySearchKit BertTokenizer.swift
[19/24] Compiling SimilaritySearchKit NativeTokenizer.swift
[20/25] Compiling SimilaritySearchKit resource_bundle_accessor.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:27: warning: task-isolated value of type '() async throws -> DiskItem?' passed as a strongly transferred parameter; later accesses could race; 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: task-isolated value of type '() async throws -> DiskItem?' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
253 |                     do {
254 |                         let path = content.path
[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:27: warning: task-isolated value of type '() async throws -> DiskItem?' passed as a strongly transferred parameter; later accesses could race; 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: task-isolated value of type '() async throws -> DiskItem?' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
253 |                     do {
254 |                         let path = content.path
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/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.
[27/31] Compiling SimilaritySearchKitMiniLMAll MiniLMAllEmbeddings.swift
/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 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/MiniLMAllEmbeddings.swift:46:29: error: cannot find 'all_MiniLM_L6_v2Input' in scope
44 |
45 |     public func generateEmbeddings(inputIds: MLMultiArray, attentionMask: MLMultiArray) -> [Float]? {
46 |         let inputFeatures = all_MiniLM_L6_v2Input(input_ids: inputIds, attention_mask: attentionMask)
   |                             `- error: cannot find 'all_MiniLM_L6_v2Input' in scope
47 |
48 |         let output = try? model.prediction(input: inputFeatures)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/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)
/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 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.
/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 |         }
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/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/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/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/weights/weight.bin
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/Manifest.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/Metadata.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/Data/com.apple.CoreML/weights/weight.bin
    /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
BUILD FAILURE 6.0 macosSpm