Build Information
Failed to build NyaruDB2, reference v0.1.0-alpha1 (deb780
), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 21:18:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/galileostudio/nyarudb2.git
Reference: v0.1.0-alpha1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/galileostudio/nyarudb2
* tag v0.1.0-alpha1 -> FETCH_HEAD
HEAD is now at deb7809 Merge branch 'develop'
Cloned https://github.com/galileostudio/nyarudb2.git
Revision (git rev-parse @):
deb78093d59917248754fef39602d4209f8f50d4
SUCCESS checkout https://github.com/galileostudio/nyarudb2.git at v0.1.0-alpha1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/galileostudio/nyarudb2.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/12] Write sources
[2/12] Write Benchmark-entitlement.plist
[2/12] Write QuickStartRunner-entitlement.plist
[5/12] Write swift-version-1EA4D86E10B52AF.txt
[7/26] Compiling NyaruDB2 ShardManager.swift
[8/27] Emitting module NyaruDB2
[9/27] Compiling NyaruDB2 CollectionCatalog.swift
[10/27] Compiling NyaruDB2 DocumentCollection.swift
[11/27] Compiling NyaruDB2 CompressionMethod.swift
[12/27] Compiling NyaruDB2 QueryEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:130:25: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
128 | for value in values {
129 | group.addTask {
130 | try await self.storage.fetchFromIndex(
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 | collection: self.collection,
132 | field: indexField,
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:112:18: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 | /// - Throws: An error if the execution of the query fails.
111 | /// - Note: This method is asynchronous and must be called with `await`.
112 | private func executeIndexOnly(plan: ExecutionPlan) async throws -> [T] {
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |
114 | guard let indexField = plan.usedIndex else { return [] }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:165:41: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 | for shard in shards {
164 | group.addTask {
165 | let docs: [T] = try await shard.loadDocuments()
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |
167 | return docs.filter { self.evaluateDocument($0) }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:151:18: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 | /// - Throws: An error if the execution fails.
150 | /// - Note: This method is asynchronous and must be called with `await`.
151 | private func executeHybrid(plan: ExecutionPlan) async throws -> [T] {
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 |
153 | let allShards = try await storage.getShardManagers(for: collection)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:353:30: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
351 | // Obtém os shards da coleção
352 | let shards = try await storage.getShardManagers(
353 | for: collection
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
354 | )
355 | // Itera sobre os shards
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:347:17: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
345 | /// - Returns: An `AsyncThrowingStream` of type `T` that can throw an error during iteration.
346 | /// - Throws: An error if the stream encounters an issue during fetching.
347 | public func fetchStream(from storage: StorageEngine) -> AsyncThrowingStream<T, Error> {
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
348 | AsyncThrowingStream { continuation in
349 | Task {
[13/27] Compiling NyaruDB2 QueryPlanner.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:130:25: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
128 | for value in values {
129 | group.addTask {
130 | try await self.storage.fetchFromIndex(
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 | collection: self.collection,
132 | field: indexField,
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:112:18: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 | /// - Throws: An error if the execution of the query fails.
111 | /// - Note: This method is asynchronous and must be called with `await`.
112 | private func executeIndexOnly(plan: ExecutionPlan) async throws -> [T] {
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |
114 | guard let indexField = plan.usedIndex else { return [] }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:165:41: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 | for shard in shards {
164 | group.addTask {
165 | let docs: [T] = try await shard.loadDocuments()
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |
167 | return docs.filter { self.evaluateDocument($0) }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:151:18: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 | /// - Throws: An error if the execution fails.
150 | /// - Note: This method is asynchronous and must be called with `await`.
151 | private func executeHybrid(plan: ExecutionPlan) async throws -> [T] {
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 |
153 | let allShards = try await storage.getShardManagers(for: collection)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:353:30: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
351 | // Obtém os shards da coleção
352 | let shards = try await storage.getShardManagers(
353 | for: collection
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
354 | )
355 | // Itera sobre os shards
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:347:17: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
345 | /// - Returns: An `AsyncThrowingStream` of type `T` that can throw an error during iteration.
346 | /// - Throws: An error if the stream encounters an issue during fetching.
347 | public func fetchStream(from storage: StorageEngine) -> AsyncThrowingStream<T, Error> {
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
348 | AsyncThrowingStream { continuation in
349 | Task {
[14/27] Compiling NyaruDB2 BTreeIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:286:44: error: capture of non-sendable type 'Key.Type' in an isolated closure
284 | // Encode the tree (here we encode the root which is recursive)
285 | let encoder = JSONEncoder()
286 | let data = try encoder.encode(currentRoot)
| `- error: capture of non-sendable type 'Key.Type' in an isolated closure
287 |
288 | // Optionally, compress the data before writing.
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:280:13: error: capture of non-sendable type 'Key.Type' in an isolated closure
278 | /// storage space available for the operation to complete successfully.
279 | public func persist(to url: URL) async throws {
280 | let currentRoot = self.root
| `- error: capture of non-sendable type 'Key.Type' in an isolated closure
281 | try await withCheckedThrowingContinuation { continuation in
282 | serializationQueue.async {
[15/27] Compiling NyaruDB2 IndexManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:286:44: error: capture of non-sendable type 'Key.Type' in an isolated closure
284 | // Encode the tree (here we encode the root which is recursive)
285 | let encoder = JSONEncoder()
286 | let data = try encoder.encode(currentRoot)
| `- error: capture of non-sendable type 'Key.Type' in an isolated closure
287 |
288 | // Optionally, compress the data before writing.
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:280:13: error: capture of non-sendable type 'Key.Type' in an isolated closure
278 | /// storage space available for the operation to complete successfully.
279 | public func persist(to url: URL) async throws {
280 | let currentRoot = self.root
| `- error: capture of non-sendable type 'Key.Type' in an isolated closure
281 | try await withCheckedThrowingContinuation { continuation in
282 | serializationQueue.async {
[16/27] Compiling NyaruDB2 DynamicDecoder.swift
[17/27] Compiling NyaruDB2 FileProtection.swift
[18/27] Compiling NyaruDB2 StatsEngine.swift
[19/27] Compiling NyaruDB2 StorageEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:151:31: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 | -> AsyncThrowingStream<T, Error>
150 | {
151 | AsyncThrowingStream { continuation in
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | Task {
153 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:160:21: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
158 | .forEach { continuation.yield($0) }
159 | }
160 | continuation.finish()
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
161 | } catch {
162 | continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:559:29: error: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
557 | /// - Returns: An array containing the transformed elements.
558 | /// - Throws: Rethrows any error thrown by the `transform` closure.
559 | func concurrentMap<T>(_ transform: @escaping (Element) async throws -> T)
| `- error: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
560 | async rethrows -> [T]
561 | {
[20/27] Compiling NyaruDB2 Shard.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:164:41: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | Task {
163 | do {
164 | let docs: [T] = try await self.loadDocuments()
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 | for doc in docs {
166 | continuation.yield(doc)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:161:31: error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
159 | public func loadDocumentsLazy<T: Codable>() -> AsyncThrowingStream<T, Error>
160 | {
161 | AsyncThrowingStream { continuation in
| `- error: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 | Task {
163 | do {
[21/27] Compiling NyaruDB2 NyaruDB2.swift
BUILD FAILURE 6.2 macosSpm