The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MetalANNS, reference 0.1.3 (ea4586), with Swift 6.1 for macOS (SPM) on 16 Mar 2026 07:26:32 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/christopherkarani/MetalANNS.git
Reference: 0.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/christopherkarani/MetalANNS
 * tag               0.1.3      -> FETCH_HEAD
HEAD is now at ea4586f chore: add MIT license
Cloned https://github.com/christopherkarani/MetalANNS.git
Revision (git rev-parse @):
ea4586fff3f89fd655529927688aa910a85ed641
SUCCESS checkout https://github.com/christopherkarani/MetalANNS.git at 0.1.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/christopherkarani/MetalANNS.git
https://github.com/christopherkarani/MetalANNS.git
{
  "dependencies" : [
    {
      "identity" : "grdb.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "7.0.0",
            "upper_bound" : "8.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/groue/GRDB.swift.git"
    }
  ],
  "manifest_display_name" : "MetalANNS",
  "name" : "MetalANNS",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "MetalANNS",
      "targets" : [
        "MetalANNS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MetalANNSBenchmarks",
      "targets" : [
        "MetalANNSBenchmarks"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MetalANNSTests",
      "module_type" : "SwiftTarget",
      "name" : "MetalANNSTests",
      "path" : "Tests/MetalANNSTests",
      "product_dependencies" : [
        "GRDB"
      ],
      "sources" : [
        "ANNSIndexTests.swift",
        "BackendProtocolTests.swift",
        "BatchInsertTests.swift",
        "BatchSearchAdaptiveConcurrencyTests.swift",
        "BenchmarkDatasetTests.swift",
        "BenchmarkReportTests.swift",
        "BenchmarkRunnerSweepTests.swift",
        "BinaryQuantizationTests.swift",
        "BitonicSortTests.swift",
        "CommandQueuePoolTests.swift",
        "CompactionTests.swift",
        "ConcurrentSearchTests.swift",
        "ConfigurationTests.swift",
        "DeletionTests.swift",
        "DiskBackedTests.swift",
        "DistanceTests.swift",
        "FilteredSearchTests.swift",
        "Float16IntegrationTests.swift",
        "Float16Tests.swift",
        "FullGPUSearchTests.swift",
        "GPUADCSearchTests.swift",
        "GPUCPUParityTests.swift",
        "GraphBufferTests.swift",
        "GraphPrunerTests.swift",
        "GraphRepairTests.swift",
        "HNSWTests.swift",
        "IDMapTests.swift",
        "IVFPQBenchmarkTests.swift",
        "IVFPQComprehensiveTests.swift",
        "IVFPQGPUTests.swift",
        "IVFPQIndexTests.swift",
        "IVFPQPersistenceTests.swift",
        "IncrementalTests.swift",
        "IndexMetricsTests.swift",
        "IntegrationTests.swift",
        "MetadataTests.swift",
        "MetalContextMultiQueueTests.swift",
        "MetalDeviceTests.swift",
        "MetalDistanceTests.swift",
        "MetalSearchTests.swift",
        "MmapTests.swift",
        "MultiQueuePerformanceTests.swift",
        "NNDescentCPUTests.swift",
        "NNDescentGPUTests.swift",
        "PQVectorBufferTests.swift",
        "PersistenceTests.swift",
        "PlaceholderTests.swift",
        "ProductQuantizerTests.swift",
        "QuantizedStorageTests.swift",
        "RangeSearchTests.swift",
        "RuntimeMetricTests.swift",
        "SIMDDistanceTests.swift",
        "SearchBufferPoolTests.swift",
        "SearchTests.swift",
        "ShardedIndexParallelBuildTests.swift",
        "ShardedIndexParallelSearchTests.swift",
        "ShardedIndexTests.swift",
        "Storage/IndexDatabaseTests.swift",
        "Storage/StreamingDatabaseTests.swift",
        "StreamingConfigurationTests.swift",
        "StreamingIndexFlushTests.swift",
        "StreamingIndexInsertTests.swift",
        "StreamingIndexMergeTests.swift",
        "StreamingIndexMetadataTests.swift",
        "StreamingIndexPersistenceTests.swift",
        "StreamingIndexSearchTests.swift",
        "TestUtilities.swift",
        "VectorBufferTests.swift"
      ],
      "target_dependencies" : [
        "MetalANNS",
        "MetalANNSCore",
        "MetalANNSBenchmarks"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MetalANNSCore",
      "module_type" : "SwiftTarget",
      "name" : "MetalANNSCore",
      "path" : "Sources/MetalANNSCore",
      "product_memberships" : [
        "MetalANNS",
        "MetalANNSBenchmarks"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/Distance.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/DistanceFloat16.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/HammingDistance.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/NNDescent.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/NNDescentFloat16.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/PQDistance.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/Search.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/SearchFloat16.metal",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/Shaders/Sort.metal",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "AccelerateBackend.swift",
        "BatchIncrementalBuilder.swift",
        "BeamSearchCPU.swift",
        "BinaryVectorBuffer.swift",
        "BoundedSelection.swift",
        "CommandQueuePool.swift",
        "ComputeBackend.swift",
        "DiskBackedVectorBuffer.swift",
        "Errors.swift",
        "Float16VectorBuffer.swift",
        "FullGPUSearch.swift",
        "GPUADCSearch.swift",
        "GraphBuffer.swift",
        "GraphPruner.swift",
        "GraphRepairer.swift",
        "HNSWBuilder.swift",
        "HNSWConfiguration.swift",
        "HNSWLayers.swift",
        "HNSWSearchCPU.swift",
        "IDMap.swift",
        "IncrementalBuilder.swift",
        "IndexCompactor.swift",
        "IndexSerializer.swift",
        "KMeans.swift",
        "MetadataBuffer.swift",
        "MetadataStore.swift",
        "MetalBackend.swift",
        "MetalDevice.swift",
        "Metric.swift",
        "MmapIndexLoader.swift",
        "NNDescentCPU.swift",
        "NNDescentGPU.swift",
        "PQVectorBuffer.swift",
        "PipelineCache.swift",
        "ProductQuantizer.swift",
        "QuantizedStorage.swift",
        "RepairConfiguration.swift",
        "SIMDDistance.swift",
        "SearchBufferPool.swift",
        "SearchFilter.swift",
        "SearchGPU.swift",
        "SearchResult.swift",
        "SoftDeletion.swift",
        "VectorBuffer.swift",
        "VectorStorage.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MetalANNSBenchmarks",
      "module_type" : "SwiftTarget",
      "name" : "MetalANNSBenchmarks",
      "path" : "Sources/MetalANNSBenchmarks",
      "product_memberships" : [
        "MetalANNSBenchmarks"
      ],
      "sources" : [
        "BenchmarkDataset.swift",
        "BenchmarkIDParser.swift",
        "BenchmarkReport.swift",
        "BenchmarkRunner.swift",
        "IVFPQBenchmark.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "MetalANNS",
        "MetalANNSCore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "MetalANNS",
      "module_type" : "SwiftTarget",
      "name" : "MetalANNS",
      "path" : "Sources/MetalANNS",
      "product_dependencies" : [
        "GRDB"
      ],
      "product_memberships" : [
        "MetalANNS",
        "MetalANNSBenchmarks"
      ],
      "sources" : [
        "ANNSIndex.swift",
        "Advanced.swift",
        "Errors.swift",
        "IVFPQConfiguration.swift",
        "IVFPQIndex.swift",
        "IndexConfiguration.swift",
        "IndexMetrics.swift",
        "Metric.swift",
        "MetricsSnapshot.swift",
        "SearchResult.swift",
        "ShardedIndex.swift",
        "Storage/IDMapPersistenceCompat.swift",
        "Storage/IndexDatabase.swift",
        "Storage/SQLiteStructuredStore.swift",
        "Storage/StreamingDatabase.swift",
        "StreamingConfiguration.swift",
        "StreamingIndex.swift",
        "VectorIndex.swift"
      ],
      "target_dependencies" : [
        "MetalANNSCore"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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
Building for debugging...
[0/20] Copying DistanceFloat16.metal
[0/20] Copying NNDescent.metal
[0/20] Copying Search.metal
[0/20] Copying Distance.metal
[0/20] Copying HammingDistance.metal
[0/20] Copying PQDistance.metal
[2/20] Copying Sort.metal
[5/20] Copying SearchFloat16.metal
[5/20] Copying NNDescentFloat16.metal
[9/20] Write sources
[11/20] Write MetalANNSBenchmarks-entitlement.plist
[11/20] Write sources
[11/20] Copying Info.plist
[13/20] Write sources
[14/20] Copying PrivacyInfo.xcprivacy
[16/20] Write swift-version-2F0A5646E1D333AE.txt
[18/216] Emitting module GRDB
[19/232] Emitting module MetalANNSCore
[20/236] Compiling GRDB MutablePersistableRecord+Update.swift
[21/236] Compiling GRDB MutablePersistableRecord+Upsert.swift
[22/236] Compiling GRDB MutablePersistableRecord.swift
[23/236] Compiling GRDB PersistableRecord+Insert.swift
[24/236] Compiling GRDB PersistableRecord+Save.swift
[25/236] Compiling GRDB PersistableRecord+Upsert.swift
[26/236] Compiling GRDB PersistableRecord.swift
[27/236] Compiling GRDB Record.swift
[28/236] Compiling GRDB TableRecord.swift
[29/236] Compiling GRDB CaseInsensitiveIdentifier.swift
[30/236] Compiling GRDB Inflections+English.swift
[31/236] Compiling GRDB Inflections.swift
[32/236] Compiling GRDB Mutex.swift
[33/236] Compiling GRDB OnDemandFuture.swift
[34/236] Compiling GRDB OrderedDictionary.swift
[35/236] Compiling GRDB Pool.swift
[36/236] Compiling GRDB FTS3Pattern.swift
[37/236] Compiling GRDB FTS3TokenizerDescriptor.swift
[38/236] Compiling GRDB FTS4.swift
[39/236] Compiling GRDB FTS5.swift
[40/236] Compiling GRDB FTS5CustomTokenizer.swift
[41/236] Compiling GRDB FTS5Pattern.swift
[42/236] Compiling GRDB FTS5Tokenizer.swift
[43/236] Compiling GRDB FTS5TokenizerDescriptor.swift
[44/236] Compiling GRDB FTS5WrapperTokenizer.swift
[45/236] Compiling GRDB Fixits.swift
[46/236] Compiling GRDB JSONColumn.swift
[47/236] Compiling GRDB SQLJSONExpressible.swift
[48/236] Compiling GRDB SQLJSONFunctions.swift
[49/236] Compiling GRDB DatabaseMigrator.swift
[50/236] Compiling GRDB Migration.swift
[51/236] Compiling GRDB FTS3+QueryInterface.swift
[52/236] Compiling GRDB FTS5+QueryInterface.swift
[53/236] Compiling GRDB DatabaseValueConvertible+RawRepresentable.swift
[54/236] Compiling GRDB JSONRequiredEncoder.swift
[55/236] Compiling GRDB Optional.swift
[56/236] Compiling GRDB StandardLibrary.swift
[57/236] Compiling GRDB TransactionClock.swift
[58/236] Compiling GRDB TransactionObserver.swift
[59/236] Compiling GRDB WALSnapshot.swift
[60/236] Compiling GRDB WALSnapshotTransaction.swift
[61/236] Compiling GRDB Database+Dump.swift
[62/236] Compiling GRDB DatabaseReader+dump.swift
[63/236] Compiling GRDB DumpFormat.swift
[64/236] Compiling GRDB DebugDumpFormat.swift
[65/236] Compiling GRDB JSONDumpFormat.swift
[66/236] Compiling GRDB LineDumpFormat.swift
[67/236] Compiling GRDB ListDumpFormat.swift
[68/236] Compiling GRDB QuoteDumpFormat.swift
[69/236] Compiling GRDB FTS3.swift
[70/236] Compiling GRDB ForeignKey.swift
[71/236] Compiling GRDB Association.swift
[72/236] Compiling GRDB AssociationAggregate.swift
[73/236] Compiling GRDB BelongsToAssociation.swift
[74/236] Compiling GRDB HasManyAssociation.swift
[75/236] Compiling GRDB HasManyThroughAssociation.swift
[76/236] Compiling GRDB HasOneAssociation.swift
[77/236] Compiling GRDB HasOneThroughAssociation.swift
[78/236] Compiling GRDB JoinAssociation.swift
[79/236] Compiling GRDB CommonTableExpression.swift
[80/236] Compiling GRDB QueryInterfaceRequest.swift
[81/236] Compiling GRDB RequestProtocols.swift
[82/236] Compiling GRDB Column.swift
[83/236] Compiling GRDB DatabasePromise.swift
[84/236] Compiling GRDB SQLAssociation.swift
[85/236] Compiling GRDB SQLCollection.swift
[86/236] Compiling GRDB SQLExpression.swift
[87/236] Compiling GRDB DatabaseSchemaSource.swift
[88/236] Compiling GRDB DatabaseSnapshot.swift
[89/236] Compiling GRDB DatabaseSnapshotPool.swift
[90/236] Compiling GRDB DatabaseValue.swift
[91/236] Compiling GRDB DatabaseValueConvertible.swift
[92/236] Compiling GRDB DatabaseWriter.swift
[93/236] Compiling GRDB DispatchQueueActor.swift
[94/236] Compiling GRDB FetchRequest.swift
[95/236] Compiling MetalANNSCore SoftDeletion.swift
[96/236] Compiling MetalANNSCore VectorBuffer.swift
[97/236] Compiling MetalANNSCore VectorStorage.swift
[98/236] Compiling MetalANNSCore resource_bundle_accessor.swift
[99/236] Compiling GRDB SQLInterpolation.swift
[100/236] Compiling GRDB SQLRequest.swift
[101/236] Compiling GRDB SchedulingWatchdog.swift
[102/236] Compiling GRDB SerializedDatabase.swift
[103/236] Compiling GRDB Statement.swift
[104/236] Compiling GRDB StatementAuthorizer.swift
[105/236] Compiling GRDB StatementColumnConvertible.swift
[106/236] Compiling GRDB CGFloat.swift
[107/236] Compiling GRDB Data.swift
[108/236] Compiling GRDB DatabaseDateComponents.swift
[109/236] Compiling GRDB DatabaseValueConvertible+ReferenceConvertible.swift
[110/236] Compiling GRDB Date.swift
[111/236] Compiling GRDB Decimal.swift
[112/236] Compiling GRDB NSData.swift
[113/236] Compiling GRDB NSNull.swift
[114/236] Compiling GRDB NSNumber.swift
[115/236] Compiling GRDB NSString.swift
[116/236] Compiling GRDB SQLiteDateParser.swift
[117/236] Compiling GRDB URL.swift
[118/236] Compiling GRDB UUID.swift
[119/236] Compiling GRDB DatabaseValueConvertible+Decodable.swift
[120/236] Compiling GRDB DatabaseValueConvertible+Encodable.swift
[121/236] Compiling GRDB SQLForeignKeyRequest.swift
[122/236] Compiling GRDB SQLFunctions.swift
[123/236] Compiling GRDB SQLOperators.swift
[124/236] Compiling GRDB SQLOrdering.swift
[125/236] Compiling GRDB SQLRelation.swift
[126/236] Compiling GRDB SQLSelection.swift
[127/236] Compiling GRDB SQLSubquery.swift
[128/236] Compiling GRDB Table.swift
[129/236] Compiling GRDB SQLColumnGenerator.swift
[130/236] Compiling GRDB SQLGenerationContext.swift
[131/236] Compiling GRDB SQLIndexGenerator.swift
[132/236] Compiling GRDB SQLQueryGenerator.swift
[133/236] Compiling GRDB SQLTableAlterationGenerator.swift
[134/236] Compiling GRDB SQLTableGenerator.swift
[135/236] Compiling GRDB TableAlias.swift
[136/236] Compiling GRDB SQLInterpolation+QueryInterface.swift
[137/236] Compiling GRDB ColumnDefinition.swift
[138/236] Compiling GRDB Database+SchemaDefinition.swift
[139/236] Compiling GRDB ForeignKeyDefinition.swift
[140/236] Compiling GRDB IndexDefinition.swift
[141/236] Compiling GRDB TableAlteration.swift
[142/236] Compiling GRDB TableDefinition.swift
[143/236] Compiling GRDB VirtualTableModule.swift
[144/236] Compiling GRDB TableRecord+Association.swift
[145/236] Compiling GRDB TableRecord+QueryInterfaceRequest.swift
[146/236] Compiling GRDB EncodableRecord+Encodable.swift
[147/236] Compiling GRDB EncodableRecord.swift
[148/236] Compiling GRDB FetchableRecord+Decodable.swift
[149/236] Compiling GRDB FetchableRecord+TableRecord.swift
[150/236] Compiling GRDB FetchableRecord.swift
[151/236] Compiling GRDB MutablePersistableRecord+DAO.swift
[152/236] Compiling GRDB MutablePersistableRecord+Delete.swift
[153/236] Compiling GRDB MutablePersistableRecord+Insert.swift
[154/236] Compiling GRDB MutablePersistableRecord+Save.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
[173/236] Compiling GRDB ReadWriteLock.swift
[174/236] Compiling GRDB ReceiveValuesOn.swift
[175/236] Compiling GRDB Refinable.swift
[176/236] Compiling GRDB Utils.swift
[177/236] Compiling GRDB DatabaseCancellable.swift
[178/236] Compiling GRDB ValueConcurrentObserver.swift
[179/236] Compiling GRDB ValueWriteOnlyObserver.swift
[180/236] Compiling GRDB Fetch.swift
[181/236] Compiling GRDB Map.swift
[182/236] Compiling GRDB RemoveDuplicates.swift
[183/236] Compiling GRDB Trace.swift
[184/236] Compiling GRDB ValueReducer.swift
[185/236] Compiling GRDB SharedValueObservation.swift
[186/236] Compiling GRDB ValueObservation.swift
[187/236] Compiling GRDB ValueObservationScheduler.swift
[188/236] Compiling GRDB resource_bundle_accessor.swift
[189/236] Compiling GRDB Database.swift
[190/236] Compiling GRDB DatabaseBackupProgress.swift
[191/236] Compiling GRDB DatabaseCollation.swift
[192/236] Compiling GRDB DatabaseError.swift
[193/236] Compiling GRDB DatabaseFunction.swift
[194/236] Compiling GRDB DatabasePool.swift
[195/236] Compiling GRDB DatabasePublishers.swift
[196/236] Compiling GRDB DatabaseQueue.swift
[197/236] Compiling GRDB DatabaseReader.swift
[198/236] Compiling GRDB DatabaseRegion.swift
[199/236] Compiling GRDB Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[200/236] Compiling GRDB Cursor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[201/236] Compiling GRDB Database+SQLCipher.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[202/236] Compiling GRDB Database+Schema.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[203/236] Compiling GRDB Database+Statements.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[208/236] Compiling GRDB DatabaseRegionObservation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[209/236] Compiling GRDB DatabaseSchemaCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
Fetching https://github.com/groue/GRDB.swift.git
[1/113619] Fetching grdb.swift
Fetched https://github.com/groue/GRDB.swift.git from cache (9.04s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.10.0 (12.49s)
Creating working copy for https://github.com/groue/GRDB.swift.git
Working copy of https://github.com/groue/GRDB.swift.git resolved at 7.10.0
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/200] Emitting module MetalANNSCore
[3/204] Compiling GRDB DatabaseDateComponents.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[4/204] Compiling GRDB DatabaseValueConvertible+ReferenceConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[5/204] Compiling GRDB Date.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[6/204] Compiling GRDB Decimal.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:134:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
132 |         }
133 |
134 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
135 |
136 |         let neighborLength = neighborIDs.count * MemoryLayout<UInt32>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/SearchGPU.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum SearchGPU {
[7/204] Compiling GRDB Database.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[8/204] Compiling GRDB DatabaseBackupProgress.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[9/204] Compiling GRDB DatabaseCollation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[10/204] Compiling GRDB DatabaseError.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:17:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 15 |         }
 16 |
 17 |         let pipeline = try await context.pipelineCache.pipeline(for: "random_init")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 18 |
 19 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  2 | import os.log
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:56:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 54 |
 55 |         let kernelName = vectors.isFloat16 ? "compute_initial_distances_f16" : "compute_initial_distances"
 56 |         let pipeline = try await context.pipelineCache.pipeline(for: kernelName)
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
 57 |
 58 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:138:63: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
136 |         }
137 |
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
    |                                                               `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:140:65: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
138 |         let reversePipeline = try await context.pipelineCache.pipeline(for: "build_reverse_list")
139 |         let localJoinKernel = vectors.isFloat16 ? "local_join_f16" : "local_join"
140 |         let localJoinPipeline = try await context.pipelineCache.pipeline(for: localJoinKernel)
    |                                                                 `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
141 |
142 |         var n = UInt32(nodeCount)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/NNDescentGPU.swift:245:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
243 |         }
244 |
245 |         let pipeline = try await context.pipelineCache.pipeline(for: "bitonic_sort_neighbors")
    |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
246 |         let threadgroupWidth = degree / 2
247 |         guard threadgroupWidth <= pipeline.maxTotalThreadsPerThreadgroup else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[11/204] Compiling MetalANNSCore SoftDeletion.swift
[12/204] Compiling MetalANNSCore VectorBuffer.swift
[13/204] Compiling MetalANNSCore VectorStorage.swift
[14/204] Compiling MetalANNSCore resource_bundle_accessor.swift
[15/204] Compiling GRDB DatabaseFunction.swift
[16/204] Compiling GRDB DatabasePool.swift
[17/204] Compiling GRDB DatabasePublishers.swift
[18/204] Compiling GRDB DatabaseQueue.swift
[19/204] Compiling GRDB DatabaseReader.swift
[20/204] Compiling GRDB Statement.swift
[21/204] Compiling GRDB StatementAuthorizer.swift
[22/204] Compiling GRDB StatementColumnConvertible.swift
[23/204] Compiling GRDB CGFloat.swift
[24/204] Compiling GRDB Data.swift
[25/204] Compiling GRDB SQL.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[26/204] Compiling GRDB SQLInterpolation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[27/204] Compiling GRDB SQLRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[28/204] Compiling GRDB SchedulingWatchdog.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[29/204] Compiling GRDB SerializedDatabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:118:61: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
116 |         }
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
    |                                                             `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
120 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 |
  4 | public enum GPUADCSearch {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/GPUADCSearch.swift:119:60: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
117 |
118 |         let tablePipeline = try await context.pipelineCache.pipeline(for: "pq_compute_distance_table")
119 |         let scanPipeline = try await context.pipelineCache.pipeline(for: "pq_adc_scan")
    |                                                            `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
120 |
121 |         var mU32 = UInt32(m)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
[30/204] Compiling GRDB Configuration.swift
[31/204] Compiling GRDB Cursor.swift
[32/204] Compiling GRDB Database+SQLCipher.swift
[33/204] Compiling GRDB Database+Schema.swift
[34/204] Compiling GRDB Database+Statements.swift
[35/204] Compiling GRDB DatabaseSnapshotPool.swift
[36/204] Compiling GRDB DatabaseValue.swift
[37/204] Compiling GRDB DatabaseValueConvertible.swift
[38/204] Compiling GRDB DatabaseWriter.swift
[39/204] Compiling GRDB DatabaseRegion.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
[40/204] Compiling GRDB DatabaseRegionObservation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
[41/204] Compiling GRDB DatabaseSchemaCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
[42/204] Compiling GRDB DatabaseSchemaSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
[43/204] Compiling GRDB DatabaseSnapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/IncrementalBuilder.swift:64:17: warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 62 |
 63 |             let existingIDs = graph.neighborIDs(of: neighborIndex)
 64 |             var existingDistances = graph.neighborDistances(of: neighborIndex)
    |                 `- warning: variable 'existingDistances' was never mutated; consider changing to 'let' constant
 65 |
 66 |             if existingIDs.contains(UInt32(internalID)) {
[44/204] Compiling GRDB DispatchQueueActor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
[45/204] Compiling GRDB FetchRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
[46/204] Compiling GRDB Row.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
[47/204] Compiling GRDB RowAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
[48/204] Compiling GRDB RowDecodingError.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:45:56: error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
43 |         }
44 |
45 |         let pipeline = try await context.pipelineCache.pipeline(for: functionName)
   |                                                        `- error: non-sendable result type 'any MTLComputePipelineState' cannot be sent from actor-isolated context in call to instance method 'pipeline(for:)'
46 |
47 |         let scalarSize = MemoryLayout<Float>.stride
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h:154:11: note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
152 | */
153 | API_AVAILABLE(macos(10.11), ios(8.0))
154 | @protocol MTLComputePipelineState <NSObject>
    |           `- note: protocol 'MTLComputePipelineState' does not conform to the 'Sendable' protocol
155 |
156 | @property (nullable, readonly) NSString *label API_AVAILABLE(macos(10.13), ios(11.0));
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalBackend.swift:1:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 1 | import Metal
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
 2 |
 3 | public final class MetalBackend: ComputeBackend, @unchecked Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:87:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
 85 |         try encode(commandBuffer)
 86 |         commandBuffer.commit()
 87 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
 88 |
 89 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:102:29: error: value of type 'any MTLCommandBuffer' has no member 'completed'
100 |         try encode(commandBuffer)
101 |         commandBuffer.commit()
102 |         await commandBuffer.completed()
    |                             `- error: value of type 'any MTLCommandBuffer' has no member 'completed'
103 |
104 |         if let error = commandBuffer.error {
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:96:37: error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 94 |     /// Like execute(), but picks a queue from the pool for pipelining concurrent calls.
 95 |     public func executeOnPool(_ encode: (MTLCommandBuffer) throws -> Void) async throws {
 96 |         let queue = await queuePool.next()
    |                                     `- error: non-sendable result type 'any MTLCommandQueue' cannot be sent from actor-isolated context in call to instance method 'next()'
 97 |         guard let commandBuffer = queue.makeCommandBuffer() else {
 98 |             throw ANNSError.constructionFailed("Failed to create command buffer from pool queue")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h:21:11: note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 19 |  */
 20 | API_AVAILABLE(macos(10.11), ios(8.0))
 21 | @protocol MTLCommandQueue <NSObject>
    |           `- note: protocol 'MTLCommandQueue' does not conform to the 'Sendable' protocol
 22 |
 23 | /*! @brief A string to help identify this object */
/Users/admin/builder/spi-builder-workspace/Sources/MetalANNSCore/MetalDevice.swift:2:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  1 | import Foundation
  2 | import Metal
    | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Metal' as warnings
  3 | import os.log
  4 |
BUILD FAILURE 6.1 macosSpm