The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Appwrite, reference 21.5.0 (0e6bd9), with Swift 6.1 for Android on 27 Nov 2026 08:41:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

1537 |         }
1538 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1463:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1461 |         }
1462 |         if let token {
1463 |             Task { await register(push, token: token, topics: topics) }
     |                  |                `- note: closure captures 'push' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1464 |         }
1465 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1130:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1128 |     private func inBackground(_ operation: @escaping () async throws -> Void) {
1129 |         let generation = sync.sync { closeGeneration }
1130 |         Task { [weak self] in
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1131 |             do {
1132 |                 try await operation()
     |                           `- note: closure captures non-Sendable 'operation'
1133 |             } catch {
1134 |                 guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
     |                           `- note: closure captures non-Sendable 'self'
1135 |                 self.surface(Push.describe(error))
1136 |             }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1476:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1474 |         let targetId = Push.targetId(for: userId)
1475 |         let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1476 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1477 |             for topic in topics where linked.contains(topic) {
1478 |                 await unlink(push, targetId: targetId, topic: topic)
     |                              `- note: closure captures 'push' which is accessible to code in the current task
1479 |             }
1480 |             // The target is shared by every Push of the user, so check again just before deleting it.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:819:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 817 |             self.connectedKey = key
 818 |             let epoch = self.connectionEpoch
 819 |             let created = Task { () throws -> MQTTClient in
     |                                `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 820 |                 do {
 821 |                     let client = try await self.open()
     |                                            `- note: closure captures 'self' which is accessible to code in the current task
 822 |                     let current = self.sync.sync { () -> Bool in
 823 |                         guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1050:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1048 |         }
1049 |         guard let client else { return }
1050 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1051 |             await reconnectLoop(client)
     |                   `- note: closure captures 'self' which is accessible to code in the current task
1052 |             sync.sync { self.reconnecting = false }
1053 |         }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 61 |     private func startHeartbeat() {
 62 |         stopHeartbeat()
 63 |         heartbeatTask = Task {
    |                              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 64 |             do {
 65 |                 while !Task.isCancelled {
 66 |                     if let client = socketClient, client.isConnected {
    |                                     `- note: closure captures 'self' which is accessible to code in the current task
 67 |                         client.send(text: #"{"type": "ping"}"#)
 68 |                     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |                 return existing
100 |             }
101 |             let newTask = Task<Void, Swift.Error> { [weak self] in
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 |                 guard let self = self else { return }
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |                 defer {
104 |                     self.connectSync.sync { self.socketCreationTask = nil }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:352:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
350 |         }
351 |         if needsSocket {
352 |             Task { [weak self] in
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 |                 do {
354 |                     try await self?.createSocket()
    |                               `- note: closure captures 'self' which is accessible to code in the current task
355 |                 } catch {
356 |                     Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:617:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
615 |         Realtime.logDiagnostic("Realtime disconnected. Re-connecting in \(timeout / 1000) seconds.")
616 |
617 |         Task { [weak self] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
618 |             try? await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000))
619 |
620 |             guard let self = self else { return }
    |                              `- note: closure captures 'self' which is accessible to code in the current task
621 |             self.reconnectAttempts += 1
622 |
[1309/1312] Compiling Appwrite Presences.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:305:24: warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 303 |
 304 |     private static let receivedLock = NSLock()
 305 |     private static var received: [String: Date] = [:]
     |                        |- warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'received' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'received' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 306 |
 307 |     // Set by close() so the close listener does not try to reconnect a deliberate teardown.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1388:24: warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1386 |
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
     |                        |- warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsToken' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsToken' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1389:24: warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
     |                        |- warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsPushes' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsPushes' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1390:24: warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
     |                        |- warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsLinked' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsLinked' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1391:24: warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
     |                        |- warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsProxyInstalled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsProxyInstalled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1392:24: warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
     |                        |- warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsRegistrationRequested' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsRegistrationRequested' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1393:16: warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
     |                |- warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsDeliveries' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsDeliveries' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1394:16: warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
     |                |- warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsLinkedTopics' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsLinkedTopics' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1395:24: warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
     |                        |- warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsReconciled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsReconciled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1397:16: warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
     |                |- warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'reconcileDelay' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'reconcileDelay' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1398 |
1399 |     private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1436:24: warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1434 |     }
1435 |
1436 |     private static var appGroupWarned = false
     |                        |- warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'appGroupWarned' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'appGroupWarned' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1437 |
1438 |     /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:770:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 271 | ///     // sub.update(background: true, title: "Messages")
 272 | ///     sub.unsubscribe()
 273 | open class Push: Service {
     |            `- note: class 'Push' does not conform to the 'Sendable' protocol
 274 |     // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
 275 |     private static let keepAliveSeconds: UInt16 = 60
     :
 768 |                 // Already disconnected (e.g. the broker dropped the connection); nothing to send.
 769 |             } catch {
 770 |                 self?.surface(Push.describe(error))
     |                 `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 771 |             }
 772 |             do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:20:20: warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |         static let liveWindow: TimeInterval = 10
 19 |         static let pendingLifetime: TimeInterval = 30
 20 |         static var inServiceExtension = false
    |                    |- warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'inServiceExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'inServiceExtension' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |         private static let prefix = "appwrite.push.shared"
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:57:20: warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |         }
 56 |
 57 |         static var defaults: UserDefaults = appGroup.flatMap { UserDefaults(suiteName: $0) } ?? .standard
    |                    |- warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaults' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'defaults' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |         // MARK: Session
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1569:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1567 |         }
1568 |         for push in pushes where !push.backgroundTopics().isEmpty {
1569 |             Task { await register(push, token: hex, topics: push.backgroundTopics()) }
     |             |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |             |- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
     |             `- note: access can happen concurrently
1570 |         }
1571 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1769:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1767 |         let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1768 |         if message.wake {
1769 |             Task {
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1770 |                 var woke = false
1771 |                 for push in pushes {
     :
1774 |                     }
1775 |                 }
1776 |                 completion?(woke)
     |                 `- note: closure captures 'completion' which is accessible to code in the current task
1777 |             }
1778 |             return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1534:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1532 |         }
1533 |         let scheduler = WeakPush(push)
1534 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1535 |             try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1536 |             await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
     |                                                                           `- note: closure captures 'scheduler' which is accessible to code in the current task
1537 |         }
1538 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1463:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1461 |         }
1462 |         if let token {
1463 |             Task { await register(push, token: token, topics: topics) }
     |                  |                `- note: closure captures 'push' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1464 |         }
1465 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1130:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1128 |     private func inBackground(_ operation: @escaping () async throws -> Void) {
1129 |         let generation = sync.sync { closeGeneration }
1130 |         Task { [weak self] in
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1131 |             do {
1132 |                 try await operation()
     |                           `- note: closure captures non-Sendable 'operation'
1133 |             } catch {
1134 |                 guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
     |                           `- note: closure captures non-Sendable 'self'
1135 |                 self.surface(Push.describe(error))
1136 |             }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1476:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1474 |         let targetId = Push.targetId(for: userId)
1475 |         let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1476 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1477 |             for topic in topics where linked.contains(topic) {
1478 |                 await unlink(push, targetId: targetId, topic: topic)
     |                              `- note: closure captures 'push' which is accessible to code in the current task
1479 |             }
1480 |             // The target is shared by every Push of the user, so check again just before deleting it.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:819:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 817 |             self.connectedKey = key
 818 |             let epoch = self.connectionEpoch
 819 |             let created = Task { () throws -> MQTTClient in
     |                                `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 820 |                 do {
 821 |                     let client = try await self.open()
     |                                            `- note: closure captures 'self' which is accessible to code in the current task
 822 |                     let current = self.sync.sync { () -> Bool in
 823 |                         guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1050:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1048 |         }
1049 |         guard let client else { return }
1050 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1051 |             await reconnectLoop(client)
     |                   `- note: closure captures 'self' which is accessible to code in the current task
1052 |             sync.sync { self.reconnecting = false }
1053 |         }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 61 |     private func startHeartbeat() {
 62 |         stopHeartbeat()
 63 |         heartbeatTask = Task {
    |                              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 64 |             do {
 65 |                 while !Task.isCancelled {
 66 |                     if let client = socketClient, client.isConnected {
    |                                     `- note: closure captures 'self' which is accessible to code in the current task
 67 |                         client.send(text: #"{"type": "ping"}"#)
 68 |                     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |                 return existing
100 |             }
101 |             let newTask = Task<Void, Swift.Error> { [weak self] in
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 |                 guard let self = self else { return }
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |                 defer {
104 |                     self.connectSync.sync { self.socketCreationTask = nil }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:352:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
350 |         }
351 |         if needsSocket {
352 |             Task { [weak self] in
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 |                 do {
354 |                     try await self?.createSocket()
    |                               `- note: closure captures 'self' which is accessible to code in the current task
355 |                 } catch {
356 |                     Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:617:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
615 |         Realtime.logDiagnostic("Realtime disconnected. Re-connecting in \(timeout / 1000) seconds.")
616 |
617 |         Task { [weak self] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
618 |             try? await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000))
619 |
620 |             guard let self = self else { return }
    |                              `- note: closure captures 'self' which is accessible to code in the current task
621 |             self.reconnectAttempts += 1
622 |
[1310/1312] Compiling Appwrite Push.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:305:24: warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 303 |
 304 |     private static let receivedLock = NSLock()
 305 |     private static var received: [String: Date] = [:]
     |                        |- warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'received' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'received' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 306 |
 307 |     // Set by close() so the close listener does not try to reconnect a deliberate teardown.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1388:24: warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1386 |
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
     |                        |- warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsToken' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsToken' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1389:24: warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
     |                        |- warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsPushes' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsPushes' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1390:24: warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
     |                        |- warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsLinked' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsLinked' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1391:24: warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
     |                        |- warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsProxyInstalled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsProxyInstalled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1392:24: warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
     |                        |- warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsRegistrationRequested' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsRegistrationRequested' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1393:16: warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
     |                |- warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsDeliveries' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsDeliveries' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1394:16: warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
     |                |- warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsLinkedTopics' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsLinkedTopics' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1395:24: warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
     |                        |- warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsReconciled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsReconciled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1397:16: warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
     |                |- warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'reconcileDelay' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'reconcileDelay' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1398 |
1399 |     private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1436:24: warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1434 |     }
1435 |
1436 |     private static var appGroupWarned = false
     |                        |- warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'appGroupWarned' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'appGroupWarned' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1437 |
1438 |     /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:770:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 271 | ///     // sub.update(background: true, title: "Messages")
 272 | ///     sub.unsubscribe()
 273 | open class Push: Service {
     |            `- note: class 'Push' does not conform to the 'Sendable' protocol
 274 |     // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
 275 |     private static let keepAliveSeconds: UInt16 = 60
     :
 768 |                 // Already disconnected (e.g. the broker dropped the connection); nothing to send.
 769 |             } catch {
 770 |                 self?.surface(Push.describe(error))
     |                 `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 771 |             }
 772 |             do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:20:20: warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |         static let liveWindow: TimeInterval = 10
 19 |         static let pendingLifetime: TimeInterval = 30
 20 |         static var inServiceExtension = false
    |                    |- warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'inServiceExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'inServiceExtension' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |         private static let prefix = "appwrite.push.shared"
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:57:20: warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |         }
 56 |
 57 |         static var defaults: UserDefaults = appGroup.flatMap { UserDefaults(suiteName: $0) } ?? .standard
    |                    |- warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaults' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'defaults' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |         // MARK: Session
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1569:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1567 |         }
1568 |         for push in pushes where !push.backgroundTopics().isEmpty {
1569 |             Task { await register(push, token: hex, topics: push.backgroundTopics()) }
     |             |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |             |- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
     |             `- note: access can happen concurrently
1570 |         }
1571 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1769:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1767 |         let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1768 |         if message.wake {
1769 |             Task {
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1770 |                 var woke = false
1771 |                 for push in pushes {
     :
1774 |                     }
1775 |                 }
1776 |                 completion?(woke)
     |                 `- note: closure captures 'completion' which is accessible to code in the current task
1777 |             }
1778 |             return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1534:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1532 |         }
1533 |         let scheduler = WeakPush(push)
1534 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1535 |             try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1536 |             await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
     |                                                                           `- note: closure captures 'scheduler' which is accessible to code in the current task
1537 |         }
1538 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1463:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1461 |         }
1462 |         if let token {
1463 |             Task { await register(push, token: token, topics: topics) }
     |                  |                `- note: closure captures 'push' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1464 |         }
1465 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1130:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1128 |     private func inBackground(_ operation: @escaping () async throws -> Void) {
1129 |         let generation = sync.sync { closeGeneration }
1130 |         Task { [weak self] in
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1131 |             do {
1132 |                 try await operation()
     |                           `- note: closure captures non-Sendable 'operation'
1133 |             } catch {
1134 |                 guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
     |                           `- note: closure captures non-Sendable 'self'
1135 |                 self.surface(Push.describe(error))
1136 |             }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1476:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1474 |         let targetId = Push.targetId(for: userId)
1475 |         let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1476 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1477 |             for topic in topics where linked.contains(topic) {
1478 |                 await unlink(push, targetId: targetId, topic: topic)
     |                              `- note: closure captures 'push' which is accessible to code in the current task
1479 |             }
1480 |             // The target is shared by every Push of the user, so check again just before deleting it.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:819:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 817 |             self.connectedKey = key
 818 |             let epoch = self.connectionEpoch
 819 |             let created = Task { () throws -> MQTTClient in
     |                                `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 820 |                 do {
 821 |                     let client = try await self.open()
     |                                            `- note: closure captures 'self' which is accessible to code in the current task
 822 |                     let current = self.sync.sync { () -> Bool in
 823 |                         guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1050:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1048 |         }
1049 |         guard let client else { return }
1050 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1051 |             await reconnectLoop(client)
     |                   `- note: closure captures 'self' which is accessible to code in the current task
1052 |             sync.sync { self.reconnecting = false }
1053 |         }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 61 |     private func startHeartbeat() {
 62 |         stopHeartbeat()
 63 |         heartbeatTask = Task {
    |                              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 64 |             do {
 65 |                 while !Task.isCancelled {
 66 |                     if let client = socketClient, client.isConnected {
    |                                     `- note: closure captures 'self' which is accessible to code in the current task
 67 |                         client.send(text: #"{"type": "ping"}"#)
 68 |                     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |                 return existing
100 |             }
101 |             let newTask = Task<Void, Swift.Error> { [weak self] in
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 |                 guard let self = self else { return }
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |                 defer {
104 |                     self.connectSync.sync { self.socketCreationTask = nil }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:352:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
350 |         }
351 |         if needsSocket {
352 |             Task { [weak self] in
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 |                 do {
354 |                     try await self?.createSocket()
    |                               `- note: closure captures 'self' which is accessible to code in the current task
355 |                 } catch {
356 |                     Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:617:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
615 |         Realtime.logDiagnostic("Realtime disconnected. Re-connecting in \(timeout / 1000) seconds.")
616 |
617 |         Task { [weak self] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
618 |             try? await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000))
619 |
620 |             guard let self = self else { return }
    |                              `- note: closure captures 'self' which is accessible to code in the current task
621 |             self.reconnectAttempts += 1
622 |
[1311/1312] Compiling Appwrite PushServiceExtension.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:305:24: warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 303 |
 304 |     private static let receivedLock = NSLock()
 305 |     private static var received: [String: Date] = [:]
     |                        |- warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'received' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'received' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 306 |
 307 |     // Set by close() so the close listener does not try to reconnect a deliberate teardown.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1388:24: warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1386 |
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
     |                        |- warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsToken' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsToken' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1389:24: warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
     |                        |- warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsPushes' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsPushes' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1390:24: warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
     |                        |- warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsLinked' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsLinked' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1391:24: warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
     |                        |- warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsProxyInstalled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsProxyInstalled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1392:24: warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
     |                        |- warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsRegistrationRequested' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsRegistrationRequested' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1393:16: warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
     |                |- warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsDeliveries' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsDeliveries' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1394:16: warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
     |                |- warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsLinkedTopics' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsLinkedTopics' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1395:24: warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
     |                        |- warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsReconciled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsReconciled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1397:16: warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
     |                |- warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'reconcileDelay' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'reconcileDelay' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1398 |
1399 |     private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1436:24: warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1434 |     }
1435 |
1436 |     private static var appGroupWarned = false
     |                        |- warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'appGroupWarned' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'appGroupWarned' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1437 |
1438 |     /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:770:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 271 | ///     // sub.update(background: true, title: "Messages")
 272 | ///     sub.unsubscribe()
 273 | open class Push: Service {
     |            `- note: class 'Push' does not conform to the 'Sendable' protocol
 274 |     // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
 275 |     private static let keepAliveSeconds: UInt16 = 60
     :
 768 |                 // Already disconnected (e.g. the broker dropped the connection); nothing to send.
 769 |             } catch {
 770 |                 self?.surface(Push.describe(error))
     |                 `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 771 |             }
 772 |             do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:20:20: warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |         static let liveWindow: TimeInterval = 10
 19 |         static let pendingLifetime: TimeInterval = 30
 20 |         static var inServiceExtension = false
    |                    |- warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'inServiceExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'inServiceExtension' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |         private static let prefix = "appwrite.push.shared"
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:57:20: warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |         }
 56 |
 57 |         static var defaults: UserDefaults = appGroup.flatMap { UserDefaults(suiteName: $0) } ?? .standard
    |                    |- warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaults' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'defaults' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |         // MARK: Session
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1569:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1567 |         }
1568 |         for push in pushes where !push.backgroundTopics().isEmpty {
1569 |             Task { await register(push, token: hex, topics: push.backgroundTopics()) }
     |             |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |             |- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
     |             `- note: access can happen concurrently
1570 |         }
1571 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1769:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1767 |         let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1768 |         if message.wake {
1769 |             Task {
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1770 |                 var woke = false
1771 |                 for push in pushes {
     :
1774 |                     }
1775 |                 }
1776 |                 completion?(woke)
     |                 `- note: closure captures 'completion' which is accessible to code in the current task
1777 |             }
1778 |             return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1534:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1532 |         }
1533 |         let scheduler = WeakPush(push)
1534 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1535 |             try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1536 |             await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
     |                                                                           `- note: closure captures 'scheduler' which is accessible to code in the current task
1537 |         }
1538 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1463:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1461 |         }
1462 |         if let token {
1463 |             Task { await register(push, token: token, topics: topics) }
     |                  |                `- note: closure captures 'push' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1464 |         }
1465 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1130:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1128 |     private func inBackground(_ operation: @escaping () async throws -> Void) {
1129 |         let generation = sync.sync { closeGeneration }
1130 |         Task { [weak self] in
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1131 |             do {
1132 |                 try await operation()
     |                           `- note: closure captures non-Sendable 'operation'
1133 |             } catch {
1134 |                 guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
     |                           `- note: closure captures non-Sendable 'self'
1135 |                 self.surface(Push.describe(error))
1136 |             }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1476:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1474 |         let targetId = Push.targetId(for: userId)
1475 |         let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1476 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1477 |             for topic in topics where linked.contains(topic) {
1478 |                 await unlink(push, targetId: targetId, topic: topic)
     |                              `- note: closure captures 'push' which is accessible to code in the current task
1479 |             }
1480 |             // The target is shared by every Push of the user, so check again just before deleting it.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:819:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 817 |             self.connectedKey = key
 818 |             let epoch = self.connectionEpoch
 819 |             let created = Task { () throws -> MQTTClient in
     |                                `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 820 |                 do {
 821 |                     let client = try await self.open()
     |                                            `- note: closure captures 'self' which is accessible to code in the current task
 822 |                     let current = self.sync.sync { () -> Bool in
 823 |                         guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1050:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1048 |         }
1049 |         guard let client else { return }
1050 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1051 |             await reconnectLoop(client)
     |                   `- note: closure captures 'self' which is accessible to code in the current task
1052 |             sync.sync { self.reconnecting = false }
1053 |         }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 61 |     private func startHeartbeat() {
 62 |         stopHeartbeat()
 63 |         heartbeatTask = Task {
    |                              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 64 |             do {
 65 |                 while !Task.isCancelled {
 66 |                     if let client = socketClient, client.isConnected {
    |                                     `- note: closure captures 'self' which is accessible to code in the current task
 67 |                         client.send(text: #"{"type": "ping"}"#)
 68 |                     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |                 return existing
100 |             }
101 |             let newTask = Task<Void, Swift.Error> { [weak self] in
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 |                 guard let self = self else { return }
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |                 defer {
104 |                     self.connectSync.sync { self.socketCreationTask = nil }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:352:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
350 |         }
351 |         if needsSocket {
352 |             Task { [weak self] in
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 |                 do {
354 |                     try await self?.createSocket()
    |                               `- note: closure captures 'self' which is accessible to code in the current task
355 |                 } catch {
356 |                     Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:617:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
615 |         Realtime.logDiagnostic("Realtime disconnected. Re-connecting in \(timeout / 1000) seconds.")
616 |
617 |         Task { [weak self] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
618 |             try? await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000))
619 |
620 |             guard let self = self else { return }
    |                              `- note: closure captures 'self' which is accessible to code in the current task
621 |             self.reconnectAttempts += 1
622 |
[1312/1312] Compiling Appwrite Realtime.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:305:24: warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 303 |
 304 |     private static let receivedLock = NSLock()
 305 |     private static var received: [String: Date] = [:]
     |                        |- warning: static property 'received' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'received' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'received' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 306 |
 307 |     // Set by close() so the close listener does not try to reconnect a deliberate teardown.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1388:24: warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1386 |
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
     |                        |- warning: static property 'apnsToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsToken' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsToken' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1389:24: warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1387 |     private static let apnsLock = NSLock()
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
     |                        |- warning: static property 'apnsPushes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsPushes' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsPushes' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1390:24: warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1388 |     private static var apnsToken: String?
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
     |                        |- warning: static property 'apnsLinked' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsLinked' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsLinked' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1391:24: warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1389 |     private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
     |                        |- warning: static property 'apnsProxyInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsProxyInstalled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsProxyInstalled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1392:24: warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1390 |     private static var apnsLinked: [String: Set<String>] = [:]
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
     |                        |- warning: static property 'apnsRegistrationRequested' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsRegistrationRequested' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsRegistrationRequested' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1393:16: warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1391 |     private static var apnsProxyInstalled = false
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
     |                |- warning: static property 'apnsDeliveries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsDeliveries' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsDeliveries' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1394:16: warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1392 |     private static var apnsRegistrationRequested = false
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
     |                |- warning: static property 'apnsLinkedTopics' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'apnsLinkedTopics' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'apnsLinkedTopics' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1395:24: warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1393 |     static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1394 |     static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1395 |     private static var apnsReconciled: Set<String> = []
     |                        |- warning: static property 'apnsReconciled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'apnsReconciled' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'apnsReconciled' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1397:16: warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1395 |     private static var apnsReconciled: Set<String> = []
1396 |     /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1397 |     static var reconcileDelay: TimeInterval = 30
     |                |- warning: static property 'reconcileDelay' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'reconcileDelay' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'reconcileDelay' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1398 |
1399 |     private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1436:24: warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1434 |     }
1435 |
1436 |     private static var appGroupWarned = false
     |                        |- warning: static property 'appGroupWarned' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'appGroupWarned' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'appGroupWarned' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1437 |
1438 |     /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:770:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 271 | ///     // sub.update(background: true, title: "Messages")
 272 | ///     sub.unsubscribe()
 273 | open class Push: Service {
     |            `- note: class 'Push' does not conform to the 'Sendable' protocol
 274 |     // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
 275 |     private static let keepAliveSeconds: UInt16 = 60
     :
 768 |                 // Already disconnected (e.g. the broker dropped the connection); nothing to send.
 769 |             } catch {
 770 |                 self?.surface(Push.describe(error))
     |                 `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 771 |             }
 772 |             do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:20:20: warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |         static let liveWindow: TimeInterval = 10
 19 |         static let pendingLifetime: TimeInterval = 30
 20 |         static var inServiceExtension = false
    |                    |- warning: static property 'inServiceExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'inServiceExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'inServiceExtension' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |         private static let prefix = "appwrite.push.shared"
/host/spi-builder-workspace/Sources/Appwrite/Services/PushServiceExtension.swift:57:20: warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |         }
 56 |
 57 |         static var defaults: UserDefaults = appGroup.flatMap { UserDefaults(suiteName: $0) } ?? .standard
    |                    |- warning: static property 'defaults' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaults' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'defaults' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |         // MARK: Session
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1569:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1567 |         }
1568 |         for push in pushes where !push.backgroundTopics().isEmpty {
1569 |             Task { await register(push, token: hex, topics: push.backgroundTopics()) }
     |             |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
     |             |- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
     |             `- note: access can happen concurrently
1570 |         }
1571 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1769:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1767 |         let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1768 |         if message.wake {
1769 |             Task {
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1770 |                 var woke = false
1771 |                 for push in pushes {
     :
1774 |                     }
1775 |                 }
1776 |                 completion?(woke)
     |                 `- note: closure captures 'completion' which is accessible to code in the current task
1777 |             }
1778 |             return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1534:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1532 |         }
1533 |         let scheduler = WeakPush(push)
1534 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1535 |             try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1536 |             await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
     |                                                                           `- note: closure captures 'scheduler' which is accessible to code in the current task
1537 |         }
1538 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1463:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1461 |         }
1462 |         if let token {
1463 |             Task { await register(push, token: token, topics: topics) }
     |                  |                `- note: closure captures 'push' which is accessible to code in the current task
     |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1464 |         }
1465 |     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1130:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1128 |     private func inBackground(_ operation: @escaping () async throws -> Void) {
1129 |         let generation = sync.sync { closeGeneration }
1130 |         Task { [weak self] in
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1131 |             do {
1132 |                 try await operation()
     |                           `- note: closure captures non-Sendable 'operation'
1133 |             } catch {
1134 |                 guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
     |                           `- note: closure captures non-Sendable 'self'
1135 |                 self.surface(Push.describe(error))
1136 |             }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1476:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1474 |         let targetId = Push.targetId(for: userId)
1475 |         let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1476 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1477 |             for topic in topics where linked.contains(topic) {
1478 |                 await unlink(push, targetId: targetId, topic: topic)
     |                              `- note: closure captures 'push' which is accessible to code in the current task
1479 |             }
1480 |             // The target is shared by every Push of the user, so check again just before deleting it.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:819:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 817 |             self.connectedKey = key
 818 |             let epoch = self.connectionEpoch
 819 |             let created = Task { () throws -> MQTTClient in
     |                                `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 820 |                 do {
 821 |                     let client = try await self.open()
     |                                            `- note: closure captures 'self' which is accessible to code in the current task
 822 |                     let current = self.sync.sync { () -> Bool in
 823 |                         guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1050:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1048 |         }
1049 |         guard let client else { return }
1050 |         Task {
     |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
1051 |             await reconnectLoop(client)
     |                   `- note: closure captures 'self' which is accessible to code in the current task
1052 |             sync.sync { self.reconnecting = false }
1053 |         }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 61 |     private func startHeartbeat() {
 62 |         stopHeartbeat()
 63 |         heartbeatTask = Task {
    |                              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 64 |             do {
 65 |                 while !Task.isCancelled {
 66 |                     if let client = socketClient, client.isConnected {
    |                                     `- note: closure captures 'self' which is accessible to code in the current task
 67 |                         client.send(text: #"{"type": "ping"}"#)
 68 |                     }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 99 |                 return existing
100 |             }
101 |             let newTask = Task<Void, Swift.Error> { [weak self] in
    |                                                   `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 |                 guard let self = self else { return }
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
103 |                 defer {
104 |                     self.connectSync.sync { self.socketCreationTask = nil }
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:352:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
350 |         }
351 |         if needsSocket {
352 |             Task { [weak self] in
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
353 |                 do {
354 |                     try await self?.createSocket()
    |                               `- note: closure captures 'self' which is accessible to code in the current task
355 |                 } catch {
356 |                     Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
/host/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:617:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
615 |         Realtime.logDiagnostic("Realtime disconnected. Re-connecting in \(timeout / 1000) seconds.")
616 |
617 |         Task { [weak self] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
618 |             try? await Task.sleep(nanoseconds: UInt64(timeout * 1_000_000))
619 |
620 |             guard let self = self else { return }
    |                              `- note: closure captures 'self' which is accessible to code in the current task
621 |             self.reconnectAttempts += 1
622 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:5cf1456779a665981f9ad13a30804aebb2f7c91d39fdeb839d6b183af0b13326
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:5:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
 3 | import PackageDescription
 4 |
 5 | let package = Package(
   |               |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
 6 |     name: "Appwrite",
 7 |     platforms: [
warning: 'spi-builder-workspace': dependency 'swift-distributed-tracing' is not used by any target
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/59] Compiling RealModule RealFunctions.swift
[3/60] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[4/60] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[5/62] Compiling RealModule Real.swift
[6/62] Compiling RealModule Float80+Real.swift
[7/62] Compiling ServiceContextModule ServiceContext.swift
[8/62] Emitting module ServiceContextModule
[9/62] Compiling ServiceContextModule ServiceContextKey.swift
[10/63] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[12/63] Compiling InternalCollectionsUtilities Integer rank.swift
[13/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[14/64] Compiling NIOConcurrencyHelpers NIOLock.swift
[15/64] Compiling Logging LoggingSystem.swift
[16/64] Compiling RealModule Float16+Real.swift
[17/64] Compiling RealModule RelaxedArithmetic.swift
[18/64] Compiling InternalCollectionsUtilities _SortedCollection.swift
[19/64] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[20/64] Compiling InternalCollectionsUtilities UInt+reversed.swift
[21/64] Compiling InternalCollectionsUtilities Debugging.swift
[22/64] Compiling InternalCollectionsUtilities Descriptions.swift
[23/64] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/64] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[27/64] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[28/64] Compiling InternalCollectionsUtilities Span+Extras.swift
[29/64] Compiling _NIODataStructures Heap.swift
[30/64] Compiling NIOConcurrencyHelpers lock.swift
[31/64] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[32/64] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[33/64] Compiling NIOConcurrencyHelpers atomics.swift
[40/64] Compiling _NIODataStructures _TinyArray.swift
[41/64] Compiling _NIODataStructures PriorityQueue.swift
[42/64] Emitting module RealModule
[43/65] Compiling _NIOBase64 Base64.swift
[44/65] Emitting module _NIOBase64
[45/66] Emitting module _NIODataStructures
[46/66] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[47/66] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[48/67] Emitting module JSONCodable
[49/67] Compiling JSONCodable Codable+JSON.swift
[50/72] Compiling Logging MetadataProvider.swift
[51/82] Compiling Logging Logger+Attributes.swift
[52/82] Compiling Atomics PointerConformances.swift
[53/82] Compiling Atomics Primitives.native.swift
[54/82] Compiling Atomics AtomicBool.swift
[55/83] Compiling Atomics IntegerConformances.swift
[56/86] Emitting module Logging
unable to find node: pound
unable to find node: pound
[57/86] Compiling Logging Logger.swift
[58/86] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[62/87] Emitting module InternalCollectionsUtilities
[63/87] Emitting module NIOConcurrencyHelpers
[67/106] Compiling Algorithms Intersperse.swift
[68/106] Compiling Algorithms Partition.swift
[69/106] Compiling Algorithms Permutations.swift
[70/106] Compiling Algorithms Product.swift
[71/106] Compiling Atomics UnsafeAtomic.swift
[72/106] Compiling Atomics UnsafeAtomicLazyReference.swift
[73/106] Compiling Atomics ManagedAtomic.swift
[74/106] Compiling Atomics ManagedAtomicLazyReference.swift
[75/119] Compiling Algorithms Compacted.swift
[76/119] Compiling Algorithms Cycle.swift
[77/119] Compiling Algorithms EitherSequence.swift
[78/141] Compiling AppwriteEnums ExecutionMethod.swift
[79/141] Compiling AppwriteEnums ExecutionResourceType.swift
[80/141] Compiling AppwriteEnums ExecutionStatus.swift
[81/141] Compiling AppwriteEnums ImageFormat.swift
[82/141] Compiling AppwriteEnums ImageGravity.swift
[83/141] Compiling AppwriteEnums OAuthProvider.swift
[84/141] Compiling AppwriteEnums ExecutionTrigger.swift
[85/142] Emitting module Instrumentation
[86/142] Compiling Instrumentation Instrument.swift
[87/142] Compiling Instrumentation MultiplexInstrument.swift
[88/142] Compiling Instrumentation NoOpInstrument.swift
[90/142] Compiling Instrumentation InstrumentationSystem.swift
[91/142] Compiling Instrumentation Locks.swift
[92/143] Compiling AppwriteEnums VideoCodecId.swift
[93/143] Compiling AppwriteEnums VideoOutput.swift
[97/181] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[98/181] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[99/181] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[100/181] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[101/181] Compiling ContainersPreview BorrowingSequence.swift
[102/181] Compiling ContainersPreview BidirectionalContainer.swift
[103/181] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[104/181] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[105/181] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[106/181] Emitting module AppwriteEnums
[107/181] Compiling ContainersPreview Producer+Map.swift
[108/181] Compiling ContainersPreview Producer+Reduce.swift
[109/181] Compiling ContainersPreview Producer.swift
[110/181] Compiling ContainersPreview InputSpan.swift
[111/181] Compiling ContainersPreview MutableRef.swift
[116/181] Compiling ContainersPreview Container+Filter.swift
[122/185] Compiling ContainersPreview Drain+Map.swift
[123/185] Compiling ContainersPreview Drain+Reduce.swift
[124/185] Compiling ContainersPreview Drain.swift
[125/185] Compiling ContainersPreview Producer+Collect.swift
[126/185] Compiling ContainersPreview Producer+Filter.swift
[127/185] Compiling ContainersPreview OutputSpan+Extras.swift
[128/185] Compiling ContainersPreview TemporaryAllocation.swift
[129/185] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[130/185] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[131/185] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[132/185] Emitting module ContainersPreview
[134/185] Compiling ContainersPreview Container+SpanwiseZip.swift
[135/185] Compiling ContainersPreview PermutableContainer.swift
[136/185] Compiling ContainersPreview RandomAccessContainer.swift
[137/185] Compiling ContainersPreview RangeExpression2.swift
[138/185] Compiling ContainersPreview RangeReplaceableContainer.swift
[139/185] Compiling ContainersPreview Strideable+Limits.swift
[141/185] Compiling ContainersPreview Container.swift
[142/185] Compiling ContainersPreview ContainerIterator.swift
[143/185] Compiling ContainersPreview DynamicContainer.swift
[144/185] Compiling ContainersPreview MutableContainer.swift
[153/193] Compiling ContainersPreview Ref.swift
[154/193] Compiling ContainersPreview Shared.swift
[155/193] Compiling ContainersPreview SpanIterator.swift
[156/193] Compiling ContainersPreview UniqueBox.swift
[159/195] Compiling Tracing NoOpTracer.swift
[160/198] Compiling Tracing Tracer.swift
[161/206] Compiling Tracing TracerProtocol+Legacy.swift
[162/221] Emitting module Atomics
[163/221] Compiling DequeModule Deque+Collection.swift
[164/221] Compiling DequeModule Deque+CustomReflectable.swift
[165/221] Compiling DequeModule Deque+Descriptions.swift
[166/229] Compiling Tracing TracingTime.swift
[167/229] Compiling Tracing TracerProtocol.swift
[168/230] Emitting module Tracing
[169/240] Compiling Tracing WithTracer.swift
[170/285] Compiling AppwriteModels AppsList.swift
[171/285] Compiling AppwriteModels Continent.swift
[172/285] Compiling AppwriteModels ContinentList.swift
[173/289] Compiling AppwriteModels Country.swift
[174/289] Compiling AppwriteModels CountryList.swift
[175/326] Compiling AppwriteModels IdentityList.swift
[176/326] Compiling AppwriteModels Jwt.swift
[177/326] Compiling AppwriteModels AppKeyList.swift
[178/326] Compiling AppwriteModels AppScope.swift
[179/326] Compiling AppwriteModels CurrencyList.swift
[180/326] Compiling AppwriteModels Device.swift
[181/326] Compiling AppwriteModels Document.swift
[182/326] Compiling AppwriteModels DocumentList.swift
[183/326] Compiling AppwriteModels Execution.swift
[184/326] Compiling AppwriteModels ExecutionList.swift
[185/326] Compiling AppwriteModels File.swift
[186/326] Compiling AppwriteModels Oauth2ConsentToken.swift
[187/326] Compiling AppwriteModels Oauth2ConsentTokenList.swift
[188/326] Compiling AppwriteModels Oauth2DeviceAuthorization.swift
[189/326] Compiling AppwriteModels Oauth2Grant.swift
[190/326] Compiling AppwriteModels Oauth2Organization.swift
[191/326] Compiling AppwriteModels Oauth2OrganizationList.swift
[192/326] Compiling AppwriteModels Oauth2Approve.swift
[193/326] Compiling AppwriteModels Oauth2Authorize.swift
[194/326] Compiling AppwriteModels Oauth2Consent.swift
[195/326] Compiling Tracing InstrumentationSystem+Tracing.swift
[196/326] Compiling Tracing SpanProtocol.swift
[201/328] Compiling AppwriteModels AppScopeList.swift
[202/328] Compiling AppwriteModels AppSecret.swift
[203/328] Compiling AppwriteModels AppSecretList.swift
[204/328] Compiling AppwriteModels AppSecretPlaintext.swift
[210/328] Compiling AppwriteModels Currency.swift
[212/328] Compiling AppwriteModels Oauth2PAR.swift
[213/328] Compiling AppwriteModels Language.swift
[214/328] Compiling AppwriteModels LanguageList.swift
[215/328] Compiling AppwriteModels Locale.swift
[216/328] Compiling AppwriteModels LocaleCode.swift
[217/328] Compiling AppwriteModels LocaleCodeList.swift
[222/328] Compiling AppwriteModels Oauth2ConsentList.swift
[224/328] Compiling AppwriteModels FileList.swift
[225/328] Compiling AppwriteModels Headers.swift
[226/328] Compiling AppwriteModels Identity.swift
[247/339] Emitting module AppwriteModels
[248/339] Compiling AppwriteModels PresenceList.swift
[249/339] Compiling AppwriteModels Row.swift
[250/339] Compiling AppwriteModels RowList.swift
[251/339] Compiling AppwriteModels Session.swift
[252/339] Compiling AppwriteModels SessionList.swift
[253/339] Compiling AppwriteModels Subscriber.swift
[254/339] Compiling AppwriteModels Target.swift
[255/339] Compiling AppwriteModels Team.swift
[256/339] Compiling AppwriteModels TeamList.swift
[257/339] Compiling AppwriteModels Token.swift
[258/339] Compiling AppwriteModels TokenSecret.swift
[265/339] Compiling DequeModule UniqueDeque+Replacements.swift
[266/339] Compiling DequeModule UniqueDeque.swift
[267/339] Compiling DequeModule _DequeSlot.swift
[268/339] Compiling DequeModule _UnsafeDequeHandle.swift
[269/339] Compiling DequeModule _UnsafeDequeSegments.swift
[270/339] Compiling AppwriteModels Oauth2Project.swift
[271/339] Compiling AppwriteModels Oauth2ProjectList.swift
[272/339] Compiling AppwriteModels Oauth2Reject.swift
[273/339] Compiling AppwriteModels Oauth2Token.swift
[274/339] Compiling AppwriteModels Passkey.swift
[275/339] Compiling AppwriteModels PasskeyChallenge.swift
[276/339] Compiling AppwriteModels PasskeyList.swift
[277/339] Compiling AppwriteModels Phone.swift
[278/339] Compiling AppwriteModels PhoneList.swift
[279/339] Compiling AppwriteModels Preferences.swift
[280/339] Compiling AppwriteModels Presence.swift
[314/339] Compiling AppwriteModels MfaType.swift
[315/339] Compiling AppwriteModels Account.swift
[316/339] Compiling AppwriteModels AlgoArgon2.swift
[317/339] Compiling AppwriteModels AlgoBcrypt.swift
[318/339] Compiling AppwriteModels AlgoMd5.swift
[319/339] Compiling AppwriteModels AlgoPhpass.swift
[320/339] Compiling AppwriteModels AlgoScrypt.swift
[321/339] Compiling AppwriteModels AlgoScryptModified.swift
[322/339] Compiling AppwriteModels AlgoSha.swift
[323/339] Compiling AppwriteModels App.swift
[324/339] Compiling AppwriteModels AppInstallation.swift
[325/339] Compiling AppwriteModels AppInstallationList.swift
[326/339] Compiling AppwriteModels AppKey.swift
[327/339] Emitting module Algorithms
[329/340] Emitting module DequeModule
[331/341] Compiling AppwriteModels Transaction.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[332/341] Compiling AppwriteModels TransactionList.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[333/341] Compiling AppwriteModels User.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[334/341] Compiling AppwriteModels Video.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[335/341] Compiling AppwriteModels VideoCaption.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[336/341] Compiling AppwriteModels VideoCaptionList.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[337/341] Compiling AppwriteModels VideoCodec.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[338/341] Compiling AppwriteModels VideoCodecList.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[339/341] Compiling AppwriteModels VideoList.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[340/341] Compiling AppwriteModels VideoRendition.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[341/341] Compiling AppwriteModels VideoRenditionList.swift
/host/spi-builder-workspace/Sources/AppwriteModels/VideoCaption.swift:171:13: warning: keyword 'default' does not need to be escaped in argument list
169 |             name: map["name"] as! String,
170 |             language: map["language"] as! String,
171 |             `default`: map["default"] as! Bool,
    |             `- warning: keyword 'default' does not need to be escaped in argument list
172 |             embedded: map["embedded"] as! Bool,
173 |             targetDuration: map["targetDuration"] as! Double,
[343/406] Compiling NIOCore NIOCoreSendableMetatype.swift
[344/406] Compiling NIOCore NIODecodedAsyncSequence.swift
[345/406] Compiling NIOCore NIOLoopBound.swift
[346/406] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[347/406] Compiling NIOCore NIOScheduledCallback.swift
[348/406] Compiling NIOCore NIOSendable.swift
[349/406] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[350/406] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[351/406] Compiling NIOCore RecvByteBufferAllocator.swift
[352/414] Compiling NIOCore EventLoopFuture+Deprecated.swift
[353/414] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[354/414] Compiling NIOCore EventLoopFuture.swift
[355/414] Compiling NIOCore FileDescriptor.swift
[356/414] Compiling NIOCore FileHandle.swift
[357/414] Compiling NIOCore FileRegion.swift
[358/414] Compiling NIOCore GlobalSingletons.swift
[359/414] Compiling NIOCore IO.swift
[360/414] Compiling NIOCore IOData.swift
[361/414] Compiling NIOCore IPProtocol.swift
[362/414] Compiling NIOCore IntegerBitPacking.swift
[363/414] Compiling NIOCore IntegerTypes.swift
[364/414] Compiling NIOCore Interfaces.swift
[365/414] Compiling NIOCore Linux.swift
[366/414] Compiling NIOCore MarkedCircularBuffer.swift
[367/414] Compiling NIOCore MulticastChannel.swift
[368/414] Compiling NIOCore NIOAny.swift
[369/414] Compiling NIOCore NIOCloseOnErrorHandler.swift
[370/414] Compiling NIOCore AddressedEnvelope.swift
[371/414] Compiling NIOCore AsyncAwaitSupport.swift
[372/414] Compiling NIOCore AsyncChannel.swift
[373/414] Compiling NIOCore AsyncChannelHandler.swift
[374/414] Compiling NIOCore AsyncChannelInboundStream.swift
[375/414] Compiling NIOCore AsyncChannelOutboundWriter.swift
[376/414] Compiling NIOCore NIOAsyncSequenceProducer.swift
[377/414] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[378/414] Compiling NIOCore NIOAsyncWriter.swift
[379/414] Compiling NIOCore CircularBuffer.swift
[380/414] Compiling NIOCore Codec.swift
[381/414] Compiling NIOCore ConvenienceOptionSupport.swift
[382/414] Compiling NIOCore DeadChannel.swift
[383/414] Compiling NIOCore DispatchQueue+WithFuture.swift
[384/414] Compiling NIOCore EventLoop+Deprecated.swift
[385/414] Compiling NIOCore EventLoop+SerialExecutor.swift
[386/414] Compiling NIOCore EventLoop.swift
[387/414] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[388/414] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[389/414] Compiling NIOCore BSDSocketAPI.swift
[390/414] Compiling NIOCore ByteBuffer-aux.swift
[391/414] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[392/414] Compiling NIOCore ByteBuffer-conversions.swift
[393/414] Compiling NIOCore ByteBuffer-core.swift
[394/414] Compiling NIOCore ByteBuffer-hex.swift
[395/414] Compiling NIOCore ByteBuffer-int.swift
[396/414] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[397/414] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[398/414] Compiling NIOCore SocketAddresses.swift
[399/414] Compiling NIOCore SocketOptionProvider.swift
[400/414] Compiling NIOCore SystemCallHelpers.swift
[401/414] Compiling NIOCore TimeAmount+Duration.swift
[402/414] Compiling NIOCore TypeAssistedChannelHandler.swift
[403/414] Compiling NIOCore UniversalBootstrapSupport.swift
[404/414] Compiling NIOCore Utilities.swift
[405/414] Compiling NIOCore ByteBuffer-multi-int.swift
[406/414] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[407/414] Compiling NIOCore ByteBuffer-views.swift
[408/414] Compiling NIOCore Channel.swift
[409/414] Compiling NIOCore ChannelHandler.swift
[410/414] Compiling NIOCore ChannelHandlers.swift
[411/414] Compiling NIOCore ChannelInvoker.swift
[412/414] Compiling NIOCore ChannelOption.swift
[413/414] Compiling NIOCore ChannelPipeline.swift
[414/414] Emitting module NIOCore
[416/469] Emitting module NIOEmbedded
[417/469] Compiling NIOEmbedded Embedded.swift
[418/469] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[419/469] Compiling NIOEmbedded AsyncTestingChannel.swift
[421/470] Compiling NIOPosix PipeChannel.swift
[422/470] Compiling NIOPosix PipePair.swift
[423/470] Compiling NIOPosix Pool.swift
[424/470] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[425/470] Compiling NIOPosix PosixSingletons.swift
[426/470] Compiling NIOPosix RawSocketBootstrap.swift
[427/470] Compiling NIOPosix Resolver.swift
[428/477] Compiling NIOPosix BSDSocketAPICommon.swift
[429/477] Compiling NIOPosix BSDSocketAPIPosix.swift
[430/477] Compiling NIOPosix BSDSocketAPIWindows.swift
[431/477] Compiling NIOPosix BaseSocket.swift
[432/477] Compiling NIOPosix BaseSocketChannel+AccessibleTransport.swift
[433/477] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[434/477] Compiling NIOPosix BaseSocketChannel.swift
[435/477] Emitting module NIOPosix
[436/477] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[437/477] Compiling NIOPosix NIOPosixSendableMetatype.swift
[438/477] Compiling NIOPosix NIORandomizedDNSResolver.swift
[439/477] Compiling NIOPosix NIOThreadPool.swift
[440/477] Compiling NIOPosix NonBlockingFileIO.swift
[441/477] Compiling NIOPosix PendingDatagramWritesManager.swift
[442/477] Compiling NIOPosix PendingWritesManager.swift
[443/477] Compiling NIOPosix Thread.swift
[444/477] Compiling NIOPosix ThreadPosix.swift
[445/477] Compiling NIOPosix ThreadWindows.swift
[446/477] Compiling NIOPosix Utilities.swift
[447/477] Compiling NIOPosix VsockAddress.swift
[448/477] Compiling NIOPosix VsockChannelEvents.swift
[449/477] Compiling NIOPosix Windows.swift
[450/477] Compiling NIOPosix SelectorWSAPoll.swift
[451/477] Compiling NIOPosix ServerSocket.swift
[452/477] Compiling NIOPosix Socket.swift
[453/477] Compiling NIOPosix SocketChannel.swift
[454/477] Compiling NIOPosix SocketProtocols.swift
[455/477] Compiling NIOPosix StructuredConcurrencyHelpers.swift
[456/477] Compiling NIOPosix System.swift
[457/477] Compiling NIOPosix HappyEyeballs.swift
[458/477] Compiling NIOPosix IO.swift
[459/477] Compiling NIOPosix IntegerBitPacking.swift
[460/477] Compiling NIOPosix IntegerTypes.swift
[461/477] Compiling NIOPosix Linux.swift
[462/477] Compiling NIOPosix LinuxCPUSet.swift
[463/477] Compiling NIOPosix LinuxUring.swift
[464/477] Compiling NIOPosix Selectable.swift
[465/477] Compiling NIOPosix SelectableChannel.swift
[466/477] Compiling NIOPosix SelectableEventLoop.swift
[467/477] Compiling NIOPosix SelectorEpoll.swift
[468/477] Compiling NIOPosix SelectorGeneric.swift
[469/477] Compiling NIOPosix SelectorKqueue.swift
[470/477] Compiling NIOPosix SelectorUring.swift
[471/477] Compiling NIOPosix BaseStreamSocketChannel.swift
[472/477] Compiling NIOPosix Bootstrap.swift
[473/477] Compiling NIOPosix ControlMessage.swift
[474/477] Compiling NIOPosix DatagramVectorReadManager.swift
[475/477] Compiling NIOPosix Errors+Any.swift
[476/477] Compiling NIOPosix FileDescriptor.swift
[477/477] Compiling NIOPosix GetaddrinfoResolver.swift
[479/480] Emitting module NIO
[480/480] Compiling NIO Exports.swift
[482/516] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[483/516] Emitting module NIOTLS
[484/516] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[485/516] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[486/516] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[487/517] Compiling NIOSOCKS SelectedAuthenticationMethod.swift
[488/517] Compiling NIOSOCKS SOCKSResponse.swift
[489/517] Compiling NIOSOCKS ClientStateMachine.swift
[490/517] Emitting module NIOSOCKS
[491/517] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[492/517] Compiling NIOHTTP1 ByteCollectionUtils.swift
[493/517] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[494/517] Compiling NIOTLS TLSEvents.swift
[495/517] Compiling NIOTLS SNIHandler.swift
[496/518] Compiling NIOHTTP1 HTTPDecoder.swift
[497/518] Compiling NIOHTTP1 HTTPEncoder.swift
[498/518] Compiling NIOHTTP1 HTTPServerRequestMethodQueue.swift
[499/518] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[506/518] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[507/518] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[508/520] Compiling NIOSOCKS ServerStateMachine.swift
[509/521] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[510/521] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[511/521] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[512/521] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[514/547] Emitting module NIOHTTP1
[515/573] Emitting module NIOTransportServices
[516/575] Compiling NIOSSL SSLErrors.swift
[517/575] Compiling NIOSSL SSLInit.swift
[518/575] Compiling NIOSSL SSLPKCS12Bundle.swift
[519/575] Compiling NIOSSL AndroidCABundle.swift
[520/575] Compiling NIOSSL ByteBufferBIO.swift
[521/575] Compiling NIOSSL CustomPrivateKey.swift
[522/575] Compiling NIOSSL PosixPort.swift
[523/575] Compiling NIOSSL SSLCallbacks.swift
[524/575] Compiling NIOSSL SSLContext.swift
[525/575] Compiling NIOTransportServices TCPOptions+SocketChannelOption.swift
[526/575] Compiling NIOTransportServices UDPOptions+SocketChannelOption.swift
[527/575] Compiling NIOSSL NIOSSLHandler.swift
[528/575] Compiling NIOSSL NIOSSLServerHandler.swift
[529/575] Compiling NIOSSL ObjectIdentifier.swift
[532/575] Compiling NIOSSL LinuxCABundle.swift
[533/575] Compiling NIOSSL NIOSSLClientHandler.swift
[534/575] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[535/575] Compiling NIOSSL FreeBSDCABundle.swift
[536/575] Compiling NIOSSL IdentityVerification.swift
[537/575] Compiling NIOSSL SSLCertificate.swift
[538/575] Compiling NIOSSL SSLCertificateExtensions.swift
[539/575] Compiling NIOSSL SSLCertificateName.swift
[540/575] Compiling NIOSSL SSLConnection.swift
[548/577] Compiling NIOSSL SSLPrivateKey.swift
[549/577] Compiling NIOSSL SSLPublicKey.swift
[550/577] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[551/577] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[556/581] Emitting module NIOSSL
[564/581] Compiling NIOSSL RNG.swift
[565/581] Compiling NIOSSL SafeCompare.swift
[566/608] Compiling NIOHPACK HuffmanCoding.swift
[567/608] Compiling NIOWebSocket WebSocketErrorCodes.swift
[568/610] Compiling NIOHTTPCompression HTTPDecompressor.swift
[569/610] Compiling NIOHTTPCompression HTTPResponseCompressor.swift
[570/610] Compiling NIOHTTPCompression HTTPRequestCompressor.swift
[571/610] Emitting module NIOHPACK
[572/610] Compiling NIOHPACK HuffmanTables.swift
[573/610] Compiling NIOHPACK IndexedHeaderTable.swift
[574/610] Compiling NIOHPACK IntegerCoding.swift
[575/610] Compiling NIOWebSocket WebSocketOpcode.swift
[576/610] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[577/610] Emitting module NIOHTTPCompression
[578/610] Compiling NIOHTTPCompression HTTPDecompression.swift
[579/610] Compiling NIOHTTPCompression HTTPCompression.swift
[580/611] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[581/611] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[582/611] Compiling NIOHPACK HeaderTables.swift
[590/611] Compiling NIOHPACK DynamicHeaderTable.swift
[591/611] Compiling NIOHPACK HPACKDecoder.swift
[596/611] Compiling NIOHPACK HPACKEncoder.swift
[597/611] Compiling NIOHPACK HPACKErrors.swift
[598/611] Compiling NIOWebSocket WebSocketFrame.swift
[599/611] Compiling NIOSSL Zeroization.swift
[600/611] Compiling NIOSSL TLSConfiguration.swift
[601/611] Compiling NIOSSL UniversalBootstrapSupport.swift
[602/611] Compiling NIOSSL UnsafeKeyAndChainTarget.swift
[603/611] Compiling NIOHPACK StaticHeaderTable.swift
[604/611] Emitting module NIOWebSocket
[608/613] Compiling NIOHPACK HPACKHeader.swift
[615/699] Compiling NIOHTTP2 ConnectionStateMachine.swift
[616/699] Compiling NIOHTTP2 ConnectionStreamsState.swift
[617/699] Compiling NIOHTTP2 MayReceiveFrames.swift
[618/702] Compiling NIOHTTP2 ReceivingDataState.swift
[619/702] Compiling NIOHTTP2 ReceivingGoAwayState.swift
[620/702] Compiling NIOHTTP2 ReceivingHeadersState.swift
[621/702] Compiling NIOHTTP2 MaySendFrames.swift
[622/702] Compiling NIOHTTP2 SendingDataState.swift
[623/702] Compiling NIOHTTP2 SendingGoawayState.swift
[624/702] Compiling MQTTNIO MQTTSerializer.swift
[625/702] Compiling MQTTNIO MQTTTask.swift
[626/702] Compiling MQTTNIO TSTLSConfiguration.swift
[627/702] Compiling NIOHTTP2 HasFlowControlWindows.swift
[628/702] Compiling NIOHTTP2 HasLocalSettings.swift
[629/702] Compiling NIOHTTP2 HasRemoteSettings.swift
[633/702] Compiling NIOHTTP2 SendAndReceiveGoawayState.swift
[634/702] Compiling NIOHTTP2 StateMachineResult.swift
[635/702] Compiling NIOHTTP2 ContentLengthVerifier.swift
[636/710] Emitting module MQTTNIO
[637/710] Compiling NIOHTTP2 ReceivingPushPromiseState.swift
[638/710] Compiling NIOHTTP2 ReceivingRstStreamState.swift
[639/710] Compiling NIOHTTP2 ReceivingWindowUpdateState.swift
[640/710] Compiling NIOHTTP2 SendingWindowUpdateState.swift
[641/710] Compiling NIOHTTP2 HTTP2SettingsState.swift
[642/710] Compiling NIOHTTP2 HasExtendedConnectSettings.swift
[646/710] Compiling NIOHTTP2 SendingHeadersState.swift
[647/710] Compiling NIOHTTP2 SendingPushPromiseState.swift
[648/710] Compiling NIOHTTP2 SendingRstStreamState.swift
[649/711] Emitting module NIOHTTP2
[669/711] Compiling NIOHTTP2 DOSHeuristics.swift
[670/711] Compiling NIOHTTP2 Error+Any.swift
[671/711] Compiling NIOHTTP2 ConcurrentStreamBuffer.swift
[672/711] Compiling NIOHTTP2 ControlFrameBuffer.swift
[673/711] Compiling NIOHTTP2 OutboundFlowControlBuffer.swift
[674/711] Compiling NIOHTTP2 OutboundFrameBuffer.swift
[675/711] Compiling NIOHTTP2 GlitchesMonitor.swift
[676/711] Compiling NIOHTTP2 HPACKHeaders+Validation.swift
[677/711] Compiling NIOHTTP2 HTTP2ChannelHandler+InboundStreamMultiplexer.swift
[678/711] Compiling NIOHTTP2 NIOHTTP2ServerConnectionManagementHandler.swift
[679/711] Compiling NIOHTTP2 StreamChannelFlowController.swift
[680/711] Compiling NIOHTTP2 StreamChannelList.swift
[681/711] Compiling NIOHTTP2 StreamMap.swift
[682/711] Compiling NIOHTTP2 StreamStateMachine.swift
[683/711] Compiling NIOHTTP2 Timer.swift
[684/711] Compiling NIOHTTP2 UnsafeTransfer.swift
[685/711] Compiling NIOHTTP2 WatermarkedFlowController.swift
[686/711] Compiling NIOHTTP2 HTTP2StreamMultiplexer.swift
[687/711] Compiling NIOHTTP2 HTTP2ToHTTP1Codec.swift
[688/711] Compiling NIOHTTP2 HTTP2UserEvents.swift
[689/711] Compiling NIOHTTP2 InboundEventBuffer.swift
[690/711] Compiling NIOHTTP2 InboundWindowManager.swift
[691/711] Compiling NIOHTTP2 MultiplexerAbstractChannel.swift
[692/711] Compiling NIOHTTP2 NIOHTTP2FrameDelegate.swift
[693/711] Compiling NIOHTTP2 NIOHTTP2ServerConnectionManagementHandler+StateMachine.swift
[694/711] Compiling NIOHTTP2 HTTP2FrameParser.swift
[695/711] Compiling NIOHTTP2 HTTP2PingData.swift
[696/711] Compiling NIOHTTP2 HTTP2PipelineHelpers.swift
[697/711] Compiling NIOHTTP2 HTTP2Settings.swift
[698/711] Compiling NIOHTTP2 HTTP2Stream.swift
[699/711] Compiling NIOHTTP2 HTTP2StreamChannel+OutboundStreamMultiplexer.swift
[700/711] Compiling NIOHTTP2 HTTP2StreamChannel.swift
[701/711] Compiling NIOHTTP2 HTTP2StreamDelegate.swift
[702/711] Compiling NIOHTTP2 HTTP2StreamID.swift
[703/711] Compiling NIOHTTP2 HTTP2ChannelHandler+InlineStreamMultiplexer.swift
[704/711] Compiling NIOHTTP2 HTTP2ChannelHandler.swift
[705/711] Compiling NIOHTTP2 HTTP2CommonInboundStreamMultiplexer.swift
[706/711] Compiling NIOHTTP2 HTTP2ConnectionStateChange.swift
[707/711] Compiling NIOHTTP2 HTTP2Error.swift
[708/711] Compiling NIOHTTP2 HTTP2ErrorCode.swift
[709/711] Compiling NIOHTTP2 HTTP2FlowControlWindow.swift
[710/711] Compiling NIOHTTP2 HTTP2Frame.swift
[711/711] Compiling NIOHTTP2 HTTP2FrameEncoder.swift
[713/776] Emitting module AsyncHTTPClient
[714/784] Compiling AsyncHTTPClient AnyAsyncSequence.swift
[715/784] Compiling AsyncHTTPClient AnyAsyncSequenceProucerDelete.swift
[716/784] Compiling AsyncHTTPClient AsyncLazySequence.swift
[717/784] Compiling AsyncHTTPClient HTTPClient+execute.swift
[718/784] Compiling AsyncHTTPClient HTTPClient+shutdown.swift
[719/784] Compiling AsyncHTTPClient HTTPClient+tracing.swift
[720/784] Compiling AsyncHTTPClient HTTPClientRequest+Prepared.swift
[721/784] Compiling AsyncHTTPClient HTTPClientRequest+auth.swift
[722/784] Compiling AsyncHTTPClient HTTPClientRequest.swift
[723/784] Compiling AsyncHTTPClient LRUCache.swift
[724/784] Compiling AsyncHTTPClient NIOLoopBound+Execute.swift
[725/784] Compiling AsyncHTTPClient NWErrorHandler.swift
[726/784] Compiling AsyncHTTPClient NWWaitingHandler.swift
[727/784] Compiling AsyncHTTPClient TLSConfiguration.swift
[728/784] Compiling AsyncHTTPClient RedirectState.swift
[729/784] Compiling AsyncHTTPClient RequestBag+StateMachine.swift
[730/784] Compiling AsyncHTTPClient RequestBag+Tracing.swift
[731/784] Compiling AsyncHTTPClient RequestBag.swift
[732/784] Compiling AsyncHTTPClient HTTPClientResponse.swift
[733/784] Compiling AsyncHTTPClient SingleIteratorPrecondition.swift
[734/784] Compiling AsyncHTTPClient Transaction+StateMachine.swift
[735/784] Compiling AsyncHTTPClient Transaction.swift
[736/784] Compiling AsyncHTTPClient Base64.swift
[737/784] Compiling AsyncHTTPClient BasicAuth.swift
[738/784] Compiling AsyncHTTPClient BestEffortHashableTLSConfiguration.swift
[739/784] Compiling AsyncHTTPClient Configuration+BrowserLike.swift
[740/784] Compiling AsyncHTTPClient ConnectionPool.swift
[741/784] Compiling AsyncHTTPClient RequestValidation.swift
[742/784] Compiling AsyncHTTPClient SSLContextCache.swift
[743/784] Compiling AsyncHTTPClient Scheme.swift
[744/784] Compiling AsyncHTTPClient Singleton.swift
[745/784] Compiling AsyncHTTPClient StringConvertibleInstances.swift
[746/784] Compiling AsyncHTTPClient StructuredConcurrencyHelpers.swift
[747/784] Compiling AsyncHTTPClient TracingSupport.swift
[748/784] Compiling AsyncHTTPClient Utils.swift
[749/784] Compiling AsyncHTTPClient RequestOptions.swift
[750/784] Compiling AsyncHTTPClient HTTPConnectionPool+Backoff.swift
[751/784] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP1Connections.swift
[752/784] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP1StateMachine.swift
[753/784] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP2Connections.swift
[754/784] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP2StateMachine.swift
[755/784] Compiling AsyncHTTPClient HTTPConnectionPool+RequestQueue.swift
[756/784] Compiling AsyncHTTPClient HTTPConnectionPool+StateMachine.swift
[757/784] Compiling AsyncHTTPClient ConnectionTarget.swift
[758/784] Compiling AsyncHTTPClient HTTP1ProxyConnectHandler.swift
[759/784] Compiling AsyncHTTPClient SOCKSEventsHandler.swift
[760/784] Compiling AsyncHTTPClient TLSEventsHandler.swift
[761/784] Compiling AsyncHTTPClient HTTP1ClientChannelHandler.swift
[762/784] Compiling AsyncHTTPClient HTTP1Connection.swift
[763/784] Compiling AsyncHTTPClient HTTP1ConnectionStateMachine.swift
[764/784] Compiling AsyncHTTPClient HTTP2ClientRequestHandler.swift
[765/784] Compiling AsyncHTTPClient HTTP2Connection.swift
[766/784] Compiling AsyncHTTPClient HTTP2IdleHandler.swift
[767/784] Compiling AsyncHTTPClient HTTPConnectionEvent.swift
[768/784] Compiling AsyncHTTPClient HTTPConnectionPool+Factory.swift
[769/784] Compiling AsyncHTTPClient HTTPConnectionPool+Manager.swift
[770/784] Compiling AsyncHTTPClient HTTPConnectionPool.swift
[771/784] Compiling AsyncHTTPClient HTTPExecutableRequest.swift
[772/784] Compiling AsyncHTTPClient HTTPRequestStateMachine+Demand.swift
[773/784] Compiling AsyncHTTPClient HTTPRequestStateMachine.swift
[774/784] Compiling AsyncHTTPClient RequestBodyLength.swift
[775/784] Compiling AsyncHTTPClient RequestFramingMetadata.swift
[776/784] Compiling AsyncHTTPClient DeconstructedURL.swift
[777/784] Compiling AsyncHTTPClient FileDownloadDelegate.swift
[778/784] Compiling AsyncHTTPClient FoundationExtensions.swift
[779/784] Compiling AsyncHTTPClient HTTPClient+HTTPCookie.swift
[780/784] Compiling AsyncHTTPClient HTTPClient+Proxy.swift
[781/784] Compiling AsyncHTTPClient HTTPClient+StructuredConcurrency.swift
[782/784] Compiling AsyncHTTPClient HTTPClient.swift
[783/784] Compiling AsyncHTTPClient HTTPClientConfiguration+SwiftConfiguration.swift
[784/784] Compiling AsyncHTTPClient HTTPHandler.swift
[786/840] Compiling Appwrite MacOSDeviceInfo.swift
[787/840] Compiling Appwrite WKInterfaceDevice+ModelName.swift
[788/840] Compiling Appwrite WatchOSDeviceInfo.swift
[789/840] Compiling Appwrite Cookie+Codable.swift
[790/840] Compiling Appwrite HTTPClientRequest+Cookies.swift
[791/840] Compiling Appwrite String+MimeTypes.swift
[792/840] Compiling Appwrite ID.swift
[793/840] Compiling Appwrite AppwriteError.swift
[794/847] Compiling Appwrite InputFile.swift
[795/847] Compiling Appwrite RealtimeModels.swift
[796/847] Compiling Appwrite UploadProgress.swift
[797/847] Compiling Appwrite View+OAuth.swift
[798/847] Compiling Appwrite WebAuthComponent.swift
[799/847] Compiling Appwrite Operator.swift
[800/847] Compiling Appwrite PackageInfo+Apple.swift
[801/847] Compiling Appwrite PackageInfo+Linux.swift
[802/847] Emitting module Appwrite
[803/847] Compiling Appwrite Channel.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[804/847] Compiling Appwrite Client.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[805/847] Compiling Appwrite LinuxDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[806/847] Compiling Appwrite OSDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[807/847] Compiling Appwrite WindowsDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[808/847] Compiling Appwrite IOSDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[809/847] Compiling Appwrite UIDevice+ModelName.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[810/847] Compiling Appwrite CwlSysCtl.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:982:5: error: missing return in static method expected to return 'String'
 980 |             return "windows"
 981 |         #endif
 982 |     }
     |     `- error: missing return in static method expected to return 'String'
 983 |
 984 |     private static func getDevice() -> String {
[811/847] Compiling Appwrite Service.swift
[812/847] Compiling Appwrite Storage.swift
[813/847] Compiling Appwrite TablesDB.swift
[814/847] Compiling Appwrite Teams.swift
[815/847] Compiling Appwrite VectorsDB.swift
[816/847] Compiling Appwrite Videos.swift
[817/847] Compiling Appwrite StreamingDelegate.swift
[818/847] Compiling Appwrite OSPackageInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[819/847] Compiling Appwrite PackageInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[820/847] Compiling Appwrite PackageInfo+Windows.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[821/847] Compiling Appwrite Permission.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[822/847] Compiling Appwrite Query.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[823/847] Compiling Appwrite Builder.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[824/847] Compiling Appwrite Role.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[825/847] Compiling Appwrite Account.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2600:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2598 |         ]
2599 |
2600 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2601 |             "X-Appwrite-Project": client.config["project"] ?? "",
2602 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:3162:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3160 |         ]
3161 |
3162 |         let apiHeaders: [String: String] = [
     |             `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
3163 |             "X-Appwrite-Project": client.config["project"] ?? "",
3164 |             "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 |             return PackageInfo.getWindowsPackage()
12 |         #endif
13 |     }
   |     `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[826/847] Compiling Appwrite Topic.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[827/847] Compiling Appwrite Tracking.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[828/847] Compiling Appwrite HTTPHandler.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[829/847] Compiling Appwrite MessageHandler.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[830/847] Compiling Appwrite WebSocketClient.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[831/847] Compiling Appwrite WebSocketClientDelegate.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[832/847] Compiling Appwrite WebSocketClientError.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
 17 | ///
 18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
 19 | public class WebSocketClient {
    |              `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
 20 |
 21 |     // MARK: - Properties
    :
266 |             .channelOption(socketOptions, value: 1)
267 |             .channelInitializer {
268 |                 self.openChannel(channel: $0, upgraded: upgraded)
    |                 `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 |             }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 |             upgraders: [basicUpgrader],
305 |             completionHandler: { context in
306 |                 context.channel.pipeline.removeHandler(httpHandler, promise: nil)
    |                                                        `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 |             }
308 |         )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 6 | ///
 7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
 8 | class HTTPHandler {
   |       `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 9 |
10 |     unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 |                     let sslHandler = try! NIOSSLClientHandler(
319 |                         context: sslContext, serverHostname: self.host)
320 |                     return channel.pipeline.addHandler(sslHandler, position: .first)
    |                                                        `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 |                 } else {
322 |                     return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
    | `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[833/847] Compiling Appwrite Analytics.swift
[834/847] Compiling Appwrite Apps.swift
[835/847] Compiling Appwrite Avatars.swift
[836/847] Compiling Appwrite Databases.swift
[837/847] Compiling Appwrite DocumentsDB.swift
[838/847] Compiling Appwrite Functions.swift
[839/847] Compiling Appwrite Graphql.swift
[840/847] Compiling Appwrite Locale.swift
[841/847] Compiling Appwrite Messaging.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
[842/847] Compiling Appwrite Oauth2.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
[843/847] Compiling Appwrite Organization.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
[844/847] Compiling Appwrite Presences.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
[845/847] Compiling Appwrite Push.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
[846/847] Compiling Appwrite PushServiceExtension.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
[847/847] Compiling Appwrite Realtime.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:976:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 974 |             port: port,
 975 |             identifier: id,
 976 |             eventLoopGroupProvider: .createNew,
     |                                      `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
 977 |             configuration: configuration
 978 |         )
BUILD FAILURE 6.1 android