Build Information
Successful build of swift-faiss, reference main (2a4f50
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 08:27:25 UTC.
Swift 6 data race errors: 5
Build Command
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
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jkrukowski/SwiftFaiss.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jkrukowski/SwiftFaiss
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2a4f50f updated readme
Cloned https://github.com/jkrukowski/SwiftFaiss.git
Revision (git rev-parse @):
2a4f50fe7995ba8746e74fa0c434e0636cf3520d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jkrukowski/SwiftFaiss.git at main
Fetching https://github.com/jkrukowski/FaissMobile
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/apple/swift-log from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.70s)
[1/46730] Fetching swiftformat
[4501/46736] Fetching swiftformat, faissmobile
Fetched https://github.com/nicklockwood/SwiftFormat from cache (58.89s)
Fetched https://github.com/jkrukowski/FaissMobile from cache (58.89s)
Fetched https://github.com/apple/swift-log from cache (58.89s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.5.3 (60.37s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.52.11 (0.61s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (0.52s)
Computing version for https://github.com/jkrukowski/FaissMobile
Computed https://github.com/jkrukowski/FaissMobile at 0.0.1 (0.46s)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.52.11
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.5.3
Creating working copy for https://github.com/jkrukowski/FaissMobile
Working copy of https://github.com/jkrukowski/FaissMobile resolved at 0.0.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.3.0
Downloading binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip
Downloading binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip
Downloading binary artifact https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip
[16375/170368623] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip
[16896704/189029574] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip, https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip
[37394032/201579463] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip, https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip, https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip
Downloaded https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip (2.01s)
Downloaded https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip (2.06s)
Downloaded https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip (10.10s)
========================================
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": "swiftfaiss",
"name": "swift-faiss",
"url": "https://github.com/jkrukowski/SwiftFaiss.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftFaiss",
"dependencies": [
{
"identity": "faissmobile",
"name": "faiss-mobile",
"url": "https://github.com/jkrukowski/FaissMobile",
"version": "0.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FaissMobile",
"dependencies": [
]
},
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "swiftformat",
"name": "SwiftFormat",
"url": "https://github.com/nicklockwood/SwiftFormat",
"version": "0.55.5",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftFormat",
"dependencies": [
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/jkrukowski/SwiftFaiss.git
[1/206] Fetching swiftfaiss
Fetched https://github.com/jkrukowski/SwiftFaiss.git from cache (3.75s)
Fetching https://github.com/jkrukowski/FaissMobile from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/apple/swift-log from cache
Fetching https://github.com/nicklockwood/SwiftFormat from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.57s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (1.59s)
Fetched https://github.com/jkrukowski/FaissMobile from cache (1.60s)
Fetched https://github.com/apple/swift-log from cache (1.60s)
Computing version for https://github.com/jkrukowski/FaissMobile
Computed https://github.com/jkrukowski/FaissMobile at 0.0.1 (1.65s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.04s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (0.44s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.55.5 (0.54s)
Creating working copy for https://github.com/jkrukowski/SwiftFaiss.git
Working copy of https://github.com/jkrukowski/SwiftFaiss.git resolved at main (2a4f50f)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.55.5
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/jkrukowski/FaissMobile
Working copy of https://github.com/jkrukowski/FaissMobile resolved at 0.0.1
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Fetching binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip from cache
Fetching binary artifact https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip from cache
Fetching binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip from cache
Fetched https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip from cache (4.39s)
Fetched https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip from cache (4.46s)
Fetched https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip from cache (9.03s)
Found 4 product dependencies
- faiss-mobile
- swift-argument-parser
- SwiftFormat
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/jkrukowski/SwiftFaiss.git
https://github.com/jkrukowski/SwiftFaiss.git
{
"dependencies" : [
{
"identity" : "faissmobile",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jkrukowski/FaissMobile"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swiftformat",
"requirement" : {
"range" : [
{
"lower_bound" : "0.50.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/nicklockwood/SwiftFormat"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log"
}
],
"manifest_display_name" : "swift-faiss",
"name" : "swift-faiss",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftFaiss",
"targets" : [
"SwiftFaiss"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "swift-faiss",
"targets" : [
"SwiftFaissCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftFaissTests",
"module_type" : "SwiftTarget",
"name" : "SwiftFaissTests",
"path" : "Sources/SwiftFaissTests",
"sources" : [
"AnyIndexTests.swift",
"ClusteringTests.swift",
"FlatIndexTests.swift",
"IDMapTests.swift",
"IVFFlatIndexTests.swift",
"IVFScalarQuantizerIndexTests.swift",
"IndexIOTests.swift",
"LSHIndexTests.swift",
"PreTransformIndexTests.swift",
"RefineFlatIndexTests.swift",
"ScalarQuantizerIndexTests.swift",
"TestUtils.swift",
"VectorTransformTests.swift"
],
"target_dependencies" : [
"SwiftFaiss"
],
"type" : "test"
},
{
"c99name" : "SwiftFaissCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftFaissCLI",
"path" : "Sources/SwiftFaissCLI",
"product_dependencies" : [
"ArgumentParser",
"Logging",
"SwiftFormat"
],
"product_memberships" : [
"swift-faiss"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/data/embeddings.txt",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/data/sentences.txt",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"ClusteringExample.swift",
"FlatIndexExample.swift",
"IVFFlatIndexExample.swift",
"Main.swift",
"PQIndexExample.swift",
"Utils.swift"
],
"target_dependencies" : [
"SwiftFaiss"
],
"type" : "executable"
},
{
"c99name" : "SwiftFaissC",
"module_type" : "ClangTarget",
"name" : "SwiftFaissC",
"path" : "Sources/SwiftFaissC",
"product_dependencies" : [
"FAISS",
"FAISS_C",
"OpenMP"
],
"product_memberships" : [
"SwiftFaiss",
"swift-faiss"
],
"sources" : [
"bridge.c"
],
"type" : "library"
},
{
"c99name" : "SwiftFaiss",
"module_type" : "SwiftTarget",
"name" : "SwiftFaiss",
"path" : "Sources/SwiftFaiss",
"product_dependencies" : [
"SwiftFormat"
],
"product_memberships" : [
"SwiftFaiss",
"swift-faiss"
],
"sources" : [
"Clustering/AnyClustering.swift",
"Clustering/BaseClustering.swift",
"Clustering/ClusteringParameters.swift",
"IDMap.swift",
"IDMap2.swift",
"IDSelector.swift",
"Index/AnyIndex.swift",
"Index/BaseIndex.swift",
"Index/FlatIndex.swift",
"Index/IVFFlatIndex.swift",
"Index/IVFIndex.swift",
"Index/IVFScalarQuantizerIndex.swift",
"Index/LSHIndex.swift",
"Index/PreTransformIndex.swift",
"Index/RefineFlatIndex.swift",
"Index/ScalarQuantizerIndex.swift",
"IndexError.swift",
"IndexIO.swift",
"IndexPointer.swift",
"MetricType.swift",
"QuantizerType.swift",
"SearchRangeResult.swift",
"SearchResult.swift",
"VectorTransform/BaseLinearTransform.swift",
"VectorTransform/BaseVectorTransform.swift",
"VectorTransform/CenteringTransform.swift",
"VectorTransform/ITQMatrixTransform.swift",
"VectorTransform/ITQTransform.swift",
"VectorTransform/NormalizationTransform.swift",
"VectorTransform/OPQMatrixTransform.swift",
"VectorTransform/PCAMatrixTransform.swift",
"VectorTransform/RandomRotationMatrixTransform.swift",
"VectorTransform/RemapDimensionsTransform.swift"
],
"target_dependencies" : [
"SwiftFaissC"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/19] Write sources
[5/19] Write swift-faiss-entitlement.plist
[6/19] Copying libomp.a
[6/19] Copying embeddings.txt
[6/19] Write sources
[7/19] Copying libfaiss.a
[7/19] Write sources
[8/19] Copying sentences.txt
[12/19] Copying libfaiss_c.a
[14/19] Write swift-version-2F0A5646E1D333AE.txt
[16/43] Emitting module ArgumentParserToolInfo
[17/43] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/81] Emitting module Logging
[19/81] Compiling Logging MetadataProvider.swift
[20/81] Compiling Logging LogHandler.swift
[21/81] Compiling Logging Logging.swift
[22/81] Compiling Logging Locks.swift
[22/81] Compiling SwiftFaissC bridge.c
[24/81] Emitting module ArgumentParser
[25/85] Compiling ArgumentParser AsyncParsableCommand.swift
[26/85] Compiling ArgumentParser CommandConfiguration.swift
[27/85] Compiling ArgumentParser EnumerableFlag.swift
[28/85] Compiling ArgumentParser ExpressibleByArgument.swift
[29/85] Compiling ArgumentParser BashCompletionsGenerator.swift
[30/85] Compiling ArgumentParser CompletionsGenerator.swift
[31/85] Compiling ArgumentParser FishCompletionsGenerator.swift
[32/85] Compiling ArgumentParser ZshCompletionsGenerator.swift
[33/85] Compiling ArgumentParser Argument.swift
[34/85] Compiling ArgumentParser Flag.swift
[35/85] Compiling ArgumentParser NameSpecification.swift
[36/85] Compiling ArgumentParser Option.swift
[37/85] Compiling ArgumentParser OptionGroup.swift
[38/85] Compiling ArgumentParser Platform.swift
[39/85] Compiling ArgumentParser SequenceExtensions.swift
[40/85] Compiling ArgumentParser StringExtensions.swift
[41/85] Compiling ArgumentParser Tree.swift
[42/85] Compiling ArgumentParser ParsableArguments.swift
[43/85] Compiling ArgumentParser ParsableArgumentsValidation.swift
[44/85] Compiling ArgumentParser ParsableCommand.swift
[45/85] Compiling ArgumentParser ArgumentDecoder.swift
[46/85] Compiling ArgumentParser ArgumentHelp.swift
[47/85] Compiling ArgumentParser ArgumentVisibility.swift
[48/85] Compiling ArgumentParser CompletionKind.swift
[49/85] Compiling ArgumentParser Errors.swift
[50/85] Compiling ArgumentParser InputOrigin.swift
[51/85] Compiling ArgumentParser Name.swift
[52/85] Compiling ArgumentParser Parsed.swift
[53/85] Compiling ArgumentParser ParsedValues.swift
[54/85] Compiling ArgumentParser HelpGenerator.swift
[55/85] Compiling ArgumentParser MessageInfo.swift
[56/85] Compiling ArgumentParser UsageGenerator.swift
[57/85] Compiling ArgumentParser CollectionExtensions.swift
[58/85] Compiling ArgumentParser ParserError.swift
[59/85] Compiling ArgumentParser SplitArguments.swift
[60/85] Compiling ArgumentParser DumpHelpGenerator.swift
[61/85] Compiling ArgumentParser HelpCommand.swift
[62/85] Compiling ArgumentParser ArgumentDefinition.swift
[63/85] Compiling ArgumentParser ArgumentSet.swift
[64/85] Compiling ArgumentParser CommandParser.swift
[65/85] Compiling ArgumentParser InputKey.swift
[66/85] Compiling SwiftFormat SwiftFormat.swift
[73/86] Compiling SwiftFormat Rules.swift
[82/86] Emitting module SwiftFormat
[83/86] Compiling SwiftFormat Tokenizer.swift
[84/117] Emitting module SwiftFaiss
[85/120] Compiling SwiftFaiss LSHIndex.swift
[86/120] Compiling SwiftFaiss PreTransformIndex.swift
[87/120] Compiling SwiftFaiss RefineFlatIndex.swift
[88/120] Compiling SwiftFaiss PCAMatrixTransform.swift
[89/120] Compiling SwiftFaiss RandomRotationMatrixTransform.swift
[90/120] Compiling SwiftFaiss RemapDimensionsTransform.swift
[91/120] Compiling SwiftFaiss SearchRangeResult.swift
[92/120] Compiling SwiftFaiss SearchResult.swift
[93/120] Compiling SwiftFaiss BaseLinearTransform.swift
[94/120] Compiling SwiftFaiss FlatIndex.swift
[95/120] Compiling SwiftFaiss IVFFlatIndex.swift
[96/120] Compiling SwiftFaiss IVFIndex.swift
[97/120] Compiling SwiftFaiss IVFScalarQuantizerIndex.swift
[98/120] Compiling SwiftFaiss IndexPointer.swift
[99/120] Compiling SwiftFaiss MetricType.swift
[100/120] Compiling SwiftFaiss QuantizerType.swift
[101/120] Compiling SwiftFaiss ITQTransform.swift
[102/120] Compiling SwiftFaiss NormalizationTransform.swift
[103/120] Compiling SwiftFaiss OPQMatrixTransform.swift
[104/120] Compiling SwiftFaiss ScalarQuantizerIndex.swift
[105/120] Compiling SwiftFaiss IndexError.swift
[106/120] Compiling SwiftFaiss IndexIO.swift
[107/120] Compiling SwiftFaiss BaseVectorTransform.swift
[108/120] Compiling SwiftFaiss CenteringTransform.swift
[109/120] Compiling SwiftFaiss ITQMatrixTransform.swift
[110/120] Compiling SwiftFaiss IDMap2.swift
[111/120] Compiling SwiftFaiss IDSelector.swift
[112/120] Compiling SwiftFaiss AnyIndex.swift
[113/120] Compiling SwiftFaiss BaseIndex.swift
[114/120] Compiling SwiftFaiss AnyClustering.swift
[115/120] Compiling SwiftFaiss BaseClustering.swift
[116/120] Compiling SwiftFaiss ClusteringParameters.swift
[117/120] Compiling SwiftFaiss IDMap.swift
[118/128] Compiling SwiftFaissCLI resource_bundle_accessor.swift
[119/128] Compiling SwiftFaissCLI Main.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/Main.swift:13:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 | @main
12 | struct SwiftFaissCLI: AsyncParsableCommand {
13 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 | commandName: "swift-faiss",
15 | abstract: "Example of using SwiftFaiss",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/Main.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Foundation
3 |
:
11 | @main
12 | struct SwiftFaissCLI: AsyncParsableCommand {
13 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | commandName: "swift-faiss",
15 | abstract: "Example of using SwiftFaiss",
[120/128] Compiling SwiftFaissCLI PQIndexExample.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/PQIndexExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct PQIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "pq",
10 | abstract: "Example of using PQIndex"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/PQIndexExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct PQIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "pq",
10 | abstract: "Example of using PQIndex"
[121/128] Compiling SwiftFaissCLI ClusteringExample.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/ClusteringExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct ClusteringExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "clustering",
10 | abstract: "Example of clustering"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/ClusteringExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct ClusteringExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "clustering",
10 | abstract: "Example of clustering"
[122/128] Compiling SwiftFaissCLI FlatIndexExample.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/FlatIndexExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct FlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "flat",
10 | abstract: "Example of using FlatIndex"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/FlatIndexExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct FlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "flat",
10 | abstract: "Example of using FlatIndex"
[123/128] Emitting module SwiftFaissCLI
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/ClusteringExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct ClusteringExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "clustering",
10 | abstract: "Example of clustering"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/ClusteringExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct ClusteringExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "clustering",
10 | abstract: "Example of clustering"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/FlatIndexExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct FlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "flat",
10 | abstract: "Example of using FlatIndex"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/FlatIndexExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct FlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "flat",
10 | abstract: "Example of using FlatIndex"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/IVFFlatIndexExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct IVFFlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "ivfflat",
10 | abstract: "Example of using IVFFlatIndex"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/IVFFlatIndexExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct IVFFlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "ivfflat",
10 | abstract: "Example of using IVFFlatIndex"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/Main.swift:13:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 | @main
12 | struct SwiftFaissCLI: AsyncParsableCommand {
13 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 | commandName: "swift-faiss",
15 | abstract: "Example of using SwiftFaiss",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/Main.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Foundation
3 |
:
11 | @main
12 | struct SwiftFaissCLI: AsyncParsableCommand {
13 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | commandName: "swift-faiss",
15 | abstract: "Example of using SwiftFaiss",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/PQIndexExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct PQIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "pq",
10 | abstract: "Example of using PQIndex"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/PQIndexExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct PQIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "pq",
10 | abstract: "Example of using PQIndex"
[124/128] Compiling SwiftFaissCLI IVFFlatIndexExample.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/IVFFlatIndexExample.swift:8:16: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | struct IVFFlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | commandName: "ivfflat",
10 | abstract: "Example of using IVFFlatIndex"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/IVFFlatIndexExample.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import Logging
3 | import SwiftFaiss
:
6 |
7 | struct IVFFlatIndexExample: AsyncParsableCommand {
8 | static let configuration = CommandConfiguration(
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | commandName: "ivfflat",
10 | abstract: "Example of using IVFFlatIndex"
[125/128] Compiling SwiftFaissCLI Utils.swift
[125/128] Write Objects.LinkFileList
[126/128] Linking swift-faiss
[127/128] Applying swift-faiss
Build complete! (20.45s)
warning: 'swiftformat': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftFormat/Sources/Info.plist
Build complete.
{
"dependencies" : [
{
"identity" : "faissmobile",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jkrukowski/FaissMobile"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swiftformat",
"requirement" : {
"range" : [
{
"lower_bound" : "0.50.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/nicklockwood/SwiftFormat"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log"
}
],
"manifest_display_name" : "swift-faiss",
"name" : "swift-faiss",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "watchos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftFaiss",
"targets" : [
"SwiftFaiss"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "swift-faiss",
"targets" : [
"SwiftFaissCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftFaissTests",
"module_type" : "SwiftTarget",
"name" : "SwiftFaissTests",
"path" : "Sources/SwiftFaissTests",
"sources" : [
"AnyIndexTests.swift",
"ClusteringTests.swift",
"FlatIndexTests.swift",
"IDMapTests.swift",
"IVFFlatIndexTests.swift",
"IVFScalarQuantizerIndexTests.swift",
"IndexIOTests.swift",
"LSHIndexTests.swift",
"PreTransformIndexTests.swift",
"RefineFlatIndexTests.swift",
"ScalarQuantizerIndexTests.swift",
"TestUtils.swift",
"VectorTransformTests.swift"
],
"target_dependencies" : [
"SwiftFaiss"
],
"type" : "test"
},
{
"c99name" : "SwiftFaissCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftFaissCLI",
"path" : "Sources/SwiftFaissCLI",
"product_dependencies" : [
"ArgumentParser",
"Logging",
"SwiftFormat"
],
"product_memberships" : [
"swift-faiss"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/data/embeddings.txt",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftFaissCLI/data/sentences.txt",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"ClusteringExample.swift",
"FlatIndexExample.swift",
"IVFFlatIndexExample.swift",
"Main.swift",
"PQIndexExample.swift",
"Utils.swift"
],
"target_dependencies" : [
"SwiftFaiss"
],
"type" : "executable"
},
{
"c99name" : "SwiftFaissC",
"module_type" : "ClangTarget",
"name" : "SwiftFaissC",
"path" : "Sources/SwiftFaissC",
"product_dependencies" : [
"FAISS",
"FAISS_C",
"OpenMP"
],
"product_memberships" : [
"SwiftFaiss",
"swift-faiss"
],
"sources" : [
"bridge.c"
],
"type" : "library"
},
{
"c99name" : "SwiftFaiss",
"module_type" : "SwiftTarget",
"name" : "SwiftFaiss",
"path" : "Sources/SwiftFaiss",
"product_dependencies" : [
"SwiftFormat"
],
"product_memberships" : [
"SwiftFaiss",
"swift-faiss"
],
"sources" : [
"Clustering/AnyClustering.swift",
"Clustering/BaseClustering.swift",
"Clustering/ClusteringParameters.swift",
"IDMap.swift",
"IDMap2.swift",
"IDSelector.swift",
"Index/AnyIndex.swift",
"Index/BaseIndex.swift",
"Index/FlatIndex.swift",
"Index/IVFFlatIndex.swift",
"Index/IVFIndex.swift",
"Index/IVFScalarQuantizerIndex.swift",
"Index/LSHIndex.swift",
"Index/PreTransformIndex.swift",
"Index/RefineFlatIndex.swift",
"Index/ScalarQuantizerIndex.swift",
"IndexError.swift",
"IndexIO.swift",
"IndexPointer.swift",
"MetricType.swift",
"QuantizerType.swift",
"SearchRangeResult.swift",
"SearchResult.swift",
"VectorTransform/BaseLinearTransform.swift",
"VectorTransform/BaseVectorTransform.swift",
"VectorTransform/CenteringTransform.swift",
"VectorTransform/ITQMatrixTransform.swift",
"VectorTransform/ITQTransform.swift",
"VectorTransform/NormalizationTransform.swift",
"VectorTransform/OPQMatrixTransform.swift",
"VectorTransform/PCAMatrixTransform.swift",
"VectorTransform/RandomRotationMatrixTransform.swift",
"VectorTransform/RemapDimensionsTransform.swift"
],
"target_dependencies" : [
"SwiftFaissC"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.