This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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:  $workDir
https://github.com/buhe/similarity-search-kit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[7/24] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
[8/24] Compiling SimilaritySearchKit TokenSplitter.swift
[9/25] Compiling SimilaritySearchKit JsonStore.swift
[10/25] Compiling SimilaritySearchKit MLModelStore.swift
[11/25] Compiling SimilaritySearchKit resource_bundle_accessor.swift
[12/25] Compiling SimilaritySearchKit VectorStoreProtocol.swift
[13/25] Compiling SimilaritySearchKit DistanceMetrics.swift
[14/25] Compiling SimilaritySearchKit TopK.swift
[15/25] Compiling SimilaritySearchKit CharacterSplitter.swift
[16/25] Compiling SimilaritySearchKit RecursiveCharacterSplitter.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 SimilarityIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:238:27: warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 18 |
 19 | @available(macOS 11.0, iOS 15.0, *)
 20 | public class SimilarityIndex {
    |              `- note: class 'SimilarityIndex' does not conform to the 'Sendable' protocol
 21 |     // MARK: - Properties
 22 |
    :
236 |                 taskGroup.addTask(priority: .userInitiated) {
237 |                     // Add the item using the addItem method
238 |                     await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
    |                           `- warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |                     onProgress?(id)
240 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:239:21: warning: capture of 'onProgress' with non-sendable type '((String) -> Void)?' in a `@Sendable` closure; 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)
239 |                     onProgress?(id)
    |                     |- warning: capture of 'onProgress' with non-sendable type '((String) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
240 |                 }
241 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:248:25: warning: capture of 'items' with non-sendable type '[SimilarityIndex.IndexItem]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 36 |
 37 |     /// An object representing an item in the index.
 38 |     public struct IndexItem: Codable {
    |                   `- note: consider making struct 'IndexItem' conform to the 'Sendable' protocol
 39 |         /// The unique identifier of the item.
 40 |         public let id: String
    :
246 |     public func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
247 |         Task {
248 |             for item in items {
    |                         `- warning: capture of 'items' with non-sendable type '[SimilarityIndex.IndexItem]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
250 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:249:23: warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 18 |
 19 | @available(macOS 11.0, iOS 15.0, *)
 20 | public class SimilarityIndex {
    |              `- note: class 'SimilarityIndex' does not conform to the 'Sendable' protocol
 21 |     // MARK: - Properties
 22 |
    :
247 |         Task {
248 |             for item in items {
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
    |                       `- warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 |             }
251 |             completion?()
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:251:13: warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
250 |             }
251 |             completion?()
    |             |- warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
252 |         }
253 |     }
/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)
[20/25] Compiling SimilaritySearchKit BinaryStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:238:27: warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 18 |
 19 | @available(macOS 11.0, iOS 15.0, *)
 20 | public class SimilarityIndex {
    |              `- note: class 'SimilarityIndex' does not conform to the 'Sendable' protocol
 21 |     // MARK: - Properties
 22 |
    :
236 |                 taskGroup.addTask(priority: .userInitiated) {
237 |                     // Add the item using the addItem method
238 |                     await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
    |                           `- warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |                     onProgress?(id)
240 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:239:21: warning: capture of 'onProgress' with non-sendable type '((String) -> Void)?' in a `@Sendable` closure; 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)
239 |                     onProgress?(id)
    |                     |- warning: capture of 'onProgress' with non-sendable type '((String) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
240 |                 }
241 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:248:25: warning: capture of 'items' with non-sendable type '[SimilarityIndex.IndexItem]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 36 |
 37 |     /// An object representing an item in the index.
 38 |     public struct IndexItem: Codable {
    |                   `- note: consider making struct 'IndexItem' conform to the 'Sendable' protocol
 39 |         /// The unique identifier of the item.
 40 |         public let id: String
    :
246 |     public func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
247 |         Task {
248 |             for item in items {
    |                         `- warning: capture of 'items' with non-sendable type '[SimilarityIndex.IndexItem]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
250 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:249:23: warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 18 |
 19 | @available(macOS 11.0, iOS 15.0, *)
 20 | public class SimilarityIndex {
    |              `- note: class 'SimilarityIndex' does not conform to the 'Sendable' protocol
 21 |     // MARK: - Properties
 22 |
    :
247 |         Task {
248 |             for item in items {
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
    |                       `- warning: capture of 'self' with non-sendable type 'SimilarityIndex' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 |             }
251 |             completion?()
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:251:13: warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 |                 await self.addItem(id: item.id, text: item.text, metadata: item.metadata, embedding: item.embedding)
250 |             }
251 |             completion?()
    |             |- warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
252 |         }
253 |     }
/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)
[21/25] Compiling SimilaritySearchKit BertTokenizer.swift
[22/25] Compiling SimilaritySearchKit NativeTokenizer.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:265:134: warning: capture of 'onProgress' with non-sendable type '((Int64, Int, Int, String?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
263 |
264 |                         if isDirectory {
265 |                             return try await DiskItem(url: content, isDirectory: isDirectory, fileSize: Int64(fileSize), onProgress: onProgress)
    |                                                                                                                                      |- warning: capture of 'onProgress' with non-sendable type '((Int64, Int, Int, String?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                                                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
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:265:134: warning: capture of 'onProgress' with non-sendable type '((Int64, Int, Int, String?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
263 |
264 |                         if isDirectory {
265 |                             return try await DiskItem(url: content, isDirectory: isDirectory, fileSize: Int64(fileSize), onProgress: onProgress)
    |                                                                                                                                      |- warning: capture of 'onProgress' with non-sendable type '((Int64, Int, Int, String?) -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                                                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
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 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)
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.
/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/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/FeatureDescriptions.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/weights/weight.bin
    /Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.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/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/Metadata.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
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/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/FeatureDescriptions.json
    /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/weights/weight.bin
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.