The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-faiss, reference main (2a4f50), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 06:49:07 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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/apple/swift-log
Fetching https://github.com/jkrukowski/FaissMobile
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/apple/swift-argument-parser
[1/6] Fetching faissmobile
[7/6567] Fetching faissmobile, swift-log
[401/24090] Fetching faissmobile, swift-log, swift-argument-parser
[2611/80198] Fetching faissmobile, swift-log, swift-argument-parser, swiftformat
Fetched https://github.com/apple/swift-argument-parser from cache (1.56s)
[11056/62675] Fetching faissmobile, swift-log, swiftformat
Fetched https://github.com/jkrukowski/FaissMobile from cache (48.94s)
Fetched https://github.com/apple/swift-log from cache (48.94s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (48.94s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.5.3 (51.89s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.52.11 (0.77s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (0.67s)
Computing version for https://github.com/jkrukowski/FaissMobile
Computed https://github.com/jkrukowski/FaissMobile at 0.0.1 (0.63s)
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
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/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.52.11
Creating working copy for https://github.com/jkrukowski/FaissMobile
Working copy of https://github.com/jkrukowski/FaissMobile resolved at 0.0.1
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/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip
Downloading binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip
[16375/18660951] Downloading https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip
[65500/31210840] Downloading 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
[31472984/201579463] Downloading 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, https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip
Downloaded https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip (1.48s)
[92061271/189029574] Downloading 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.xcframework.zip
Downloaded https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip (1.62s)
[76211685/170368623] Downloading https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip
Downloaded https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip (10.60s)
========================================
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",
  "traits": [
    "default"
  ],
  "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",
      "traits": [
        "default"
      ],
      "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",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        },
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "1.7.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        },
        {
          "identity": "swiftformat",
          "name": "SwiftFormat",
          "url": "https://github.com/nicklockwood/SwiftFormat",
          "version": "0.61.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftFormat",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        },
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log",
          "version": "1.11.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "traits": [
          ],
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/jkrukowski/SwiftFaiss.git
[1/206] Fetching swiftfaiss
Fetched https://github.com/jkrukowski/SwiftFaiss.git from cache (3.56s)
Fetching https://github.com/nicklockwood/SwiftFormat from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/jkrukowski/FaissMobile from cache
Fetching https://github.com/apple/swift-log from cache
Fetched https://github.com/nicklockwood/SwiftFormat from cache (0.69s)
Fetched https://github.com/jkrukowski/FaissMobile from cache (0.69s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.69s)
Fetched https://github.com/apple/swift-log from cache (0.69s)
Computing version for https://github.com/jkrukowski/FaissMobile
Computed https://github.com/jkrukowski/FaissMobile at 0.0.1 (0.76s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.70s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.11.0 (0.69s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.61.0 (0.72s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.11.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.61.0
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/jkrukowski/FaissMobile
Working copy of https://github.com/jkrukowski/FaissMobile resolved at 0.0.1
Fetching binary artifact https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip from cache
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
Fetched https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss_c.xcframework.zip from cache (4.31s)
Fetched https://github.com/DeveloperMindset-com/openmp-mobile/releases/download/v16.0.5/openmp.xcframework.zip from cache (4.36s)
Fetched https://github.com/DeveloperMindset-com/faiss-mobile/releases/download/v1.7.4/faiss.xcframework.zip from cache (8.82s)
Found 4 product dependencies
  - faiss-mobile
  - swift-argument-parser
  - SwiftFormat
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/jkrukowski/SwiftFaiss.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/19] Copying libomp.a
[3/19] Write sources
[7/19] Copying libfaiss_c.a
[7/19] Copying embeddings.txt
[8/19] Copying libfaiss.a
[8/19] Copying sentences.txt
[11/19] Write sources
[12/19] Write swift-faiss-entitlement.plist
[13/19] Write sources
[14/19] Write swift-version--6988338F2F200930.txt
[16/43] Compiling ArgumentParserToolInfo ToolInfo.swift
[17/43] Emitting module ArgumentParserToolInfo
[18/81] Compiling Logging Logging.swift
[19/81] Compiling Logging MetadataProvider.swift
[20/81] Compiling Logging LogHandler.swift
[21/81] Compiling Logging Locks.swift
[22/81] Emitting module Logging
[23/81] Compiling ArgumentParser ArgumentHelp.swift
[24/81] Compiling ArgumentParser ArgumentVisibility.swift
[25/81] Compiling ArgumentParser CompletionKind.swift
[26/81] Compiling ArgumentParser Errors.swift
[26/85] Compiling SwiftFaissC bridge.c
[28/85] Emitting module ArgumentParser
[29/85] Compiling ArgumentParser InputOrigin.swift
[30/85] Compiling ArgumentParser Name.swift
[31/85] Compiling ArgumentParser Parsed.swift
[32/85] Compiling ArgumentParser ParsedValues.swift
[33/85] Compiling ArgumentParser Flag.swift
[34/85] Compiling ArgumentParser NameSpecification.swift
[35/85] Compiling ArgumentParser Option.swift
[36/85] Compiling ArgumentParser OptionGroup.swift
[37/85] Compiling ArgumentParser AsyncParsableCommand.swift
[38/85] Compiling ArgumentParser CommandConfiguration.swift
[39/85] Compiling ArgumentParser EnumerableFlag.swift
[40/85] Compiling ArgumentParser ExpressibleByArgument.swift
[41/85] Compiling ArgumentParser BashCompletionsGenerator.swift
[42/85] Compiling ArgumentParser CompletionsGenerator.swift
[43/85] Compiling ArgumentParser FishCompletionsGenerator.swift
[44/85] Compiling ArgumentParser ZshCompletionsGenerator.swift
[45/85] Compiling ArgumentParser Argument.swift
[46/85] Compiling ArgumentParser Platform.swift
[47/85] Compiling ArgumentParser SequenceExtensions.swift
[48/85] Compiling ArgumentParser StringExtensions.swift
[49/85] Compiling ArgumentParser Tree.swift
[50/85] Compiling ArgumentParser ParsableArguments.swift
[51/85] Compiling ArgumentParser ParsableArgumentsValidation.swift
[52/85] Compiling ArgumentParser ParsableCommand.swift
[53/85] Compiling ArgumentParser ArgumentDecoder.swift
[54/85] Compiling ArgumentParser ArgumentDefinition.swift
[55/85] Compiling ArgumentParser ArgumentSet.swift
[56/85] Compiling ArgumentParser CommandParser.swift
[57/85] Compiling ArgumentParser InputKey.swift
[58/85] Compiling ArgumentParser HelpGenerator.swift
[59/85] Compiling ArgumentParser MessageInfo.swift
[60/85] Compiling ArgumentParser UsageGenerator.swift
[61/85] Compiling ArgumentParser CollectionExtensions.swift
[62/85] Compiling ArgumentParser ParserError.swift
[63/85] Compiling ArgumentParser SplitArguments.swift
[64/85] Compiling ArgumentParser DumpHelpGenerator.swift
[65/85] Compiling ArgumentParser HelpCommand.swift
[66/85] Compiling SwiftFormat SwiftFormat.swift
[77/86] Emitting module SwiftFormat
[78/86] Compiling SwiftFormat Rules.swift
[83/86] Compiling SwiftFormat Tokenizer.swift
[84/117] Emitting module SwiftFaiss
[85/120] Compiling SwiftFaiss SearchRangeResult.swift
[86/120] Compiling SwiftFaiss SearchResult.swift
[87/120] Compiling SwiftFaiss BaseLinearTransform.swift
[88/120] Compiling SwiftFaiss PCAMatrixTransform.swift
[89/120] Compiling SwiftFaiss RandomRotationMatrixTransform.swift
[90/120] Compiling SwiftFaiss RemapDimensionsTransform.swift
[91/120] Compiling SwiftFaiss ITQTransform.swift
[92/120] Compiling SwiftFaiss NormalizationTransform.swift
[93/120] Compiling SwiftFaiss OPQMatrixTransform.swift
[94/120] Compiling SwiftFaiss LSHIndex.swift
[95/120] Compiling SwiftFaiss PreTransformIndex.swift
[96/120] Compiling SwiftFaiss RefineFlatIndex.swift
[97/120] Compiling SwiftFaiss BaseVectorTransform.swift
[98/120] Compiling SwiftFaiss CenteringTransform.swift
[99/120] Compiling SwiftFaiss ITQMatrixTransform.swift
[100/120] Compiling SwiftFaiss IndexPointer.swift
[101/120] Compiling SwiftFaiss MetricType.swift
[102/120] Compiling SwiftFaiss QuantizerType.swift
[103/120] Compiling SwiftFaiss ScalarQuantizerIndex.swift
[104/120] Compiling SwiftFaiss IndexError.swift
[105/120] Compiling SwiftFaiss IndexIO.swift
[106/120] Compiling SwiftFaiss AnyClustering.swift
[107/120] Compiling SwiftFaiss BaseClustering.swift
[108/120] Compiling SwiftFaiss ClusteringParameters.swift
[109/120] Compiling SwiftFaiss IDMap.swift
[110/120] Compiling SwiftFaiss FlatIndex.swift
[111/120] Compiling SwiftFaiss IVFFlatIndex.swift
[112/120] Compiling SwiftFaiss IVFIndex.swift
[113/120] Compiling SwiftFaiss IVFScalarQuantizerIndex.swift
[114/120] Compiling SwiftFaiss IDMap2.swift
[115/120] Compiling SwiftFaiss IDSelector.swift
[116/120] Compiling SwiftFaiss AnyIndex.swift
[117/120] Compiling SwiftFaiss BaseIndex.swift
[118/128] Compiling SwiftFaissCLI resource_bundle_accessor.swift
[119/128] Compiling SwiftFaissCLI Main.swift
[120/128] Compiling SwiftFaissCLI PQIndexExample.swift
[121/128] Compiling SwiftFaissCLI IVFFlatIndexExample.swift
[122/128] Compiling SwiftFaissCLI FlatIndexExample.swift
[123/128] Emitting module SwiftFaissCLI
[124/128] Compiling SwiftFaissCLI Utils.swift
[125/128] Compiling SwiftFaissCLI ClusteringExample.swift
[125/128] Write Objects.LinkFileList
[126/128] Linking swift-faiss
[127/128] Applying swift-faiss
Build complete! (19.34s)
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.