Build Information
Failed to build SimilaritySearchKit, reference 0.0.16 (39bbd0
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 09:20:27 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buhe/similarity-search-kit.git
Reference: 0.0.16
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buhe/similarity-search-kit
* tag 0.0.16 -> FETCH_HEAD
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 0.0.16
========================================
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/buhe/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/buhe/similarity-search-kit.git
[1/494] Fetching similarity-search-kit
Fetched https://github.com/buhe/similarity-search-kit.git from cache (20.55s)
Creating working copy for https://github.com/buhe/similarity-search-kit.git
Working copy of https://github.com/buhe/similarity-search-kit.git resolved at 0.0.16 (39bbd0b)
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.1
Building package at path: $PWD
https://github.com/buhe/similarity-search-kit.git
https://github.com/buhe/similarity-search-kit.git
{
"dependencies" : [
],
"manifest_display_name" : "SimilaritySearchKit",
"name" : "SimilaritySearchKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "SimilaritySearchKit",
"targets" : [
"SimilaritySearchKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SimilaritySearchKitDistilbert",
"targets" : [
"SimilaritySearchKitDistilbert"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SimilaritySearchKitMiniLMAll",
"targets" : [
"SimilaritySearchKitMiniLMAll"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SimilaritySearchKitMiniLMMultiQA",
"targets" : [
"SimilaritySearchKitMiniLMMultiQA"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SimilaritySearchKitTests",
"module_type" : "SwiftTarget",
"name" : "SimilaritySearchKitTests",
"path" : "Tests/SimilaritySearchKitTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SimilaritySearchKitTests/Resources/ms_marco_validation_v2.1_subset.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"BenchmarkTests.swift",
"DistanceTest.swift",
"Fixtures/MSMarcoFixture.swift",
"SimilaritySearchKitTests.swift"
],
"target_dependencies" : [
"SimilaritySearchKit",
"SimilaritySearchKitDistilbert",
"SimilaritySearchKitMiniLMAll",
"SimilaritySearchKitMiniLMMultiQA"
],
"type" : "test"
},
{
"c99name" : "SimilaritySearchKitMiniLMMultiQA",
"module_type" : "SwiftTarget",
"name" : "SimilaritySearchKitMiniLMMultiQA",
"path" : "Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA",
"product_memberships" : [
"SimilaritySearchKitMiniLMMultiQA"
],
"sources" : [
"MiniLMMultiQAEmbeddings.swift"
],
"target_dependencies" : [
"SimilaritySearchKit"
],
"type" : "library"
},
{
"c99name" : "SimilaritySearchKitMiniLMAll",
"module_type" : "SwiftTarget",
"name" : "SimilaritySearchKitMiniLMAll",
"path" : "Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll",
"product_memberships" : [
"SimilaritySearchKitMiniLMAll"
],
"sources" : [
"MiniLMAllEmbeddings.swift"
],
"target_dependencies" : [
"SimilaritySearchKit"
],
"type" : "library"
},
{
"c99name" : "SimilaritySearchKitDistilbert",
"module_type" : "SwiftTarget",
"name" : "SimilaritySearchKitDistilbert",
"path" : "Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert",
"product_memberships" : [
"SimilaritySearchKitDistilbert"
],
"sources" : [
"DistilbertEmbeddings.swift"
],
"target_dependencies" : [
"SimilaritySearchKit"
],
"type" : "library"
},
{
"c99name" : "SimilaritySearchKit",
"module_type" : "SwiftTarget",
"name" : "SimilaritySearchKit",
"path" : "Sources/SimilaritySearchKit/Core",
"product_memberships" : [
"SimilaritySearchKit",
"SimilaritySearchKitDistilbert",
"SimilaritySearchKitMiniLMAll",
"SimilaritySearchKitMiniLMMultiQA"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Resources/bert_tokenizer_vocab.txt",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Embeddings/EmbeddingProtocols.swift",
"Embeddings/Loaders/Files.swift",
"Embeddings/Metrics/DistanceMetrics.swift",
"Embeddings/Metrics/TopK.swift",
"Embeddings/Models/NativeContextualEmbeddings.swift",
"Embeddings/Models/NativeEmbeddings.swift",
"Embeddings/Splitters/CharacterSplitter.swift",
"Embeddings/Splitters/RecursiveCharacterSplitter.swift",
"Embeddings/Splitters/RecursiveTokenSplitter.swift",
"Embeddings/Splitters/TokenSplitter.swift",
"Embeddings/Tokenizers/BertTokenizer.swift",
"Embeddings/Tokenizers/NativeTokenizer.swift",
"Index/SimilarityIndex.swift",
"Persistence/BinaryStore/BinaryStore.swift",
"Persistence/Json/JsonStore.swift",
"Persistence/MLModel/MLModelStore.swift",
"Persistence/VectorStoreProtocol.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[1/6] Copying bert_tokenizer_vocab.txt
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/24] Compiling SimilaritySearchKit JsonStore.swift
[8/24] Compiling SimilaritySearchKit MLModelStore.swift
[9/24] Compiling SimilaritySearchKit CharacterSplitter.swift
[10/24] Compiling SimilaritySearchKit RecursiveCharacterSplitter.swift
[11/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: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
234 | let meta = metadata[i]
235 |
236 | 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
237 | // Add the item using the addItem method
238 | await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
239 | onProgress?(id)
| `- note: closure captures 'onProgress' which is accessible to code in the current task
240 | }
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:247: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
245 |
246 | public func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
247 | 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
248 | for item in items {
249 | 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
250 | }
251 | completion?()
[12/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: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
234 | let meta = metadata[i]
235 |
236 | 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
237 | // Add the item using the addItem method
238 | await self.addItem(id: id, text: text, metadata: meta, embedding: embedding)
239 | onProgress?(id)
| `- note: closure captures 'onProgress' which is accessible to code in the current task
240 | }
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/Core/Index/SimilarityIndex.swift:247: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
245 |
246 | public func addItems(_ items: [IndexItem], completion: (() -> Void)? = nil) {
247 | 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
248 | for item in items {
249 | 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
250 | }
251 | completion?()
[13/24] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
[14/24] Compiling SimilaritySearchKit TokenSplitter.swift
[15/24] Compiling SimilaritySearchKit VectorStoreProtocol.swift
[16/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 |
[17/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 |
[18/25] Compiling SimilaritySearchKit resource_bundle_accessor.swift
[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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
[27/31] Compiling SimilaritySearchKitMiniLMMultiQA MiniLMMultiQAEmbeddings.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:14:23: error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
14 | public let model: multi_qa_MiniLM_L6_cos_v1
| `- error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
15 | public let tokenizer: BertTokenizer
16 | public let inputDimention: Int = 512
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:13:14: error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
| |- error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:24:30: error: cannot find 'multi_qa_MiniLM_L6_cos_v1' in scope
22 |
23 | do {
24 | self.model = try multi_qa_MiniLM_L6_cos_v1(configuration: modelConfig)
| `- error: cannot find 'multi_qa_MiniLM_L6_cos_v1' in scope
25 | } catch {
26 | fatalError("Failed to load the Core ML model. Error: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:25:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
23 | do {
24 | self.model = try multi_qa_MiniLM_L6_cos_v1(configuration: modelConfig)
25 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
26 | fatalError("Failed to load the Core ML model. Error: \(error.localizedDescription)")
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:46:29: error: cannot find 'multi_qa_MiniLM_L6_cos_v1Input' in scope
44 |
45 | public func generateEmbeddings(inputIds: MLMultiArray, attentionMask: MLMultiArray) -> [Float]? {
46 | let inputFeatures = multi_qa_MiniLM_L6_cos_v1Input(input_ids: inputIds, attention_mask: attentionMask)
| `- error: cannot find 'multi_qa_MiniLM_L6_cos_v1Input' in scope
47 |
48 | let output = try? model.prediction(input: inputFeatures)
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 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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
[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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
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/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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
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/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
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.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/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/weights/weight.bin
/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/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/model.mlmodel
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Data/com.apple.CoreML/weights/weight.bin
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/multi-qa-MiniLM-L6-cos-v1.mlpackage/Manifest.json
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/19] Compiling SimilaritySearchKit VectorStoreProtocol.swift
[3/19] Compiling SimilaritySearchKit JsonStore.swift
[4/19] Compiling SimilaritySearchKit MLModelStore.swift
[5/20] Compiling SimilaritySearchKit RecursiveTokenSplitter.swift
[6/20] Compiling SimilaritySearchKit TokenSplitter.swift
[7/20] 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)
[8/20] 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)
[9/20] Compiling SimilaritySearchKit NativeContextualEmbeddings.swift
[10/20] Compiling SimilaritySearchKit NativeEmbeddings.swift
[11/20] Compiling SimilaritySearchKit DistanceMetrics.swift
[12/20] Compiling SimilaritySearchKit TopK.swift
[13/20] Compiling SimilaritySearchKit CharacterSplitter.swift
[14/20] Compiling SimilaritySearchKit RecursiveCharacterSplitter.swift
[15/20] Compiling SimilaritySearchKit BertTokenizer.swift
[16/20] Compiling SimilaritySearchKit NativeTokenizer.swift
[17/20] Compiling SimilaritySearchKit resource_bundle_accessor.swift
[18/20] Compiling SimilaritySearchKit EmbeddingProtocols.swift
[19/20] Compiling SimilaritySearchKit Files.swift
[20/20] Emitting module SimilaritySearchKit
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/26] 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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
[22/26] Compiling SimilaritySearchKitMiniLMMultiQA MiniLMMultiQAEmbeddings.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:14:23: error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
14 | public let model: multi_qa_MiniLM_L6_cos_v1
| `- error: cannot find type 'multi_qa_MiniLM_L6_cos_v1' in scope
15 | public let tokenizer: BertTokenizer
16 | public let inputDimention: Int = 512
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:13:14: error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
11 |
12 | @available(macOS 12.0, iOS 15.0, *)
13 | public class MultiQAMiniLMEmbeddings: EmbeddingsProtocol {
| |- error: type 'MultiQAMiniLMEmbeddings' does not conform to protocol 'EmbeddingsProtocol'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:24:30: error: cannot find 'multi_qa_MiniLM_L6_cos_v1' in scope
22 |
23 | do {
24 | self.model = try multi_qa_MiniLM_L6_cos_v1(configuration: modelConfig)
| `- error: cannot find 'multi_qa_MiniLM_L6_cos_v1' in scope
25 | } catch {
26 | fatalError("Failed to load the Core ML model. Error: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:25:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
23 | do {
24 | self.model = try multi_qa_MiniLM_L6_cos_v1(configuration: modelConfig)
25 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
26 | fatalError("Failed to load the Core ML model. Error: \(error.localizedDescription)")
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMMultiQA/MiniLMMultiQAEmbeddings.swift:46:29: error: cannot find 'multi_qa_MiniLM_L6_cos_v1Input' in scope
44 |
45 | public func generateEmbeddings(inputIds: MLMultiArray, attentionMask: MLMultiArray) -> [Float]? {
46 | let inputFeatures = multi_qa_MiniLM_L6_cos_v1Input(input_ids: inputIds, attention_mask: attentionMask)
| `- error: cannot find 'multi_qa_MiniLM_L6_cos_v1Input' in scope
47 |
48 | let output = try? model.prediction(input: inputFeatures)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/26] 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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
[24/26] 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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
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)
[25/26] 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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
22 |
23 | /// The tokenizer used to tokenize input text.
[26/26] 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'
| `- note: add stubs for conformance
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'
16 | public protocol EmbeddingsProtocol {
17 | /// The associated tokenizer type for the embedding model.
18 | associatedtype TokenizerType
| `- note: protocol requires nested type 'TokenizerType'
19 |
20 | /// The associated Core ML model type for the embedding model.
21 | associatedtype ModelType
| `- note: protocol requires nested type 'ModelType'
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)
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/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
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/Distilbert/msmarco_distilbert_base_tas_b_512_single_quantized.mlpackage/Data/com.apple.CoreML/Metadata.json
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.mlpackage/Data/com.apple.CoreML/FeatureDescriptions.json
/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/Metadata.json
/Users/admin/builder/spi-builder-workspace/Sources/SimilaritySearchKit/AddOns/Embeddings/MiniLMAll/all-MiniLM-L6-v2.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/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/Manifest.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/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
BUILD FAILURE 6.1 macosSpm