The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Appwrite, reference main (0e6bd9), with Swift 6.1 for Linux on 27 Nov 2026 23:51:19 UTC.

Swift 6 data race errors: 21

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-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:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

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 |
[1307/1312] Compiling Appwrite Oauth2.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 |
[1308/1312] Compiling Appwrite Organization.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 |
[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 |
Build complete! (70.78s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "async-http-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.36.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/async-http-client.git"
    },
    {
      "identity" : "swift-distributed-tracing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "1.6.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-distributed-tracing.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.104.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "mqtt-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.13.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server-community/mqtt-nio.git"
    }
  ],
  "manifest_display_name" : "Appwrite",
  "name" : "Appwrite",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "Appwrite",
      "targets" : [
        "Appwrite",
        "AppwriteEnums",
        "AppwriteModels",
        "JSONCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "JSONCodable",
      "module_type" : "SwiftTarget",
      "name" : "JSONCodable",
      "path" : "Sources/JSONCodable",
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "Codable+JSON.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AppwriteTests",
      "module_type" : "SwiftTarget",
      "name" : "AppwriteTests",
      "path" : "Tests/AppwriteTests",
      "product_dependencies" : [
        "NIOCore",
        "NIOEmbedded",
        "NIOWebSocket"
      ],
      "sources" : [
        "MessageHandlerTests.swift",
        "PushTests.swift",
        "Tests.swift",
        "TrackingTests.swift",
        "WebAuthComponentTests.swift"
      ],
      "target_dependencies" : [
        "Appwrite"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppwriteModels",
      "module_type" : "SwiftTarget",
      "name" : "AppwriteModels",
      "path" : "Sources/AppwriteModels",
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "Account.swift",
        "AlgoArgon2.swift",
        "AlgoBcrypt.swift",
        "AlgoMd5.swift",
        "AlgoPhpass.swift",
        "AlgoScrypt.swift",
        "AlgoScryptModified.swift",
        "AlgoSha.swift",
        "App.swift",
        "AppInstallation.swift",
        "AppInstallationList.swift",
        "AppKey.swift",
        "AppKeyList.swift",
        "AppScope.swift",
        "AppScopeList.swift",
        "AppSecret.swift",
        "AppSecretList.swift",
        "AppSecretPlaintext.swift",
        "AppsList.swift",
        "Continent.swift",
        "ContinentList.swift",
        "Country.swift",
        "CountryList.swift",
        "Currency.swift",
        "CurrencyList.swift",
        "Device.swift",
        "Document.swift",
        "DocumentList.swift",
        "Execution.swift",
        "ExecutionList.swift",
        "File.swift",
        "FileList.swift",
        "Headers.swift",
        "Identity.swift",
        "IdentityList.swift",
        "Jwt.swift",
        "Language.swift",
        "LanguageList.swift",
        "Locale.swift",
        "LocaleCode.swift",
        "LocaleCodeList.swift",
        "Membership.swift",
        "MembershipList.swift",
        "MfaChallenge.swift",
        "MfaFactors.swift",
        "MfaRecoveryCodes.swift",
        "MfaType.swift",
        "Oauth2Approve.swift",
        "Oauth2Authorize.swift",
        "Oauth2Consent.swift",
        "Oauth2ConsentList.swift",
        "Oauth2ConsentToken.swift",
        "Oauth2ConsentTokenList.swift",
        "Oauth2DeviceAuthorization.swift",
        "Oauth2Grant.swift",
        "Oauth2Organization.swift",
        "Oauth2OrganizationList.swift",
        "Oauth2PAR.swift",
        "Oauth2Project.swift",
        "Oauth2ProjectList.swift",
        "Oauth2Reject.swift",
        "Oauth2Token.swift",
        "Passkey.swift",
        "PasskeyChallenge.swift",
        "PasskeyList.swift",
        "Phone.swift",
        "PhoneList.swift",
        "Preferences.swift",
        "Presence.swift",
        "PresenceList.swift",
        "Row.swift",
        "RowList.swift",
        "Session.swift",
        "SessionList.swift",
        "Subscriber.swift",
        "Target.swift",
        "Team.swift",
        "TeamList.swift",
        "Token.swift",
        "TokenSecret.swift",
        "Transaction.swift",
        "TransactionList.swift",
        "User.swift",
        "Video.swift",
        "VideoCaption.swift",
        "VideoCaptionList.swift",
        "VideoCodec.swift",
        "VideoCodecList.swift",
        "VideoList.swift",
        "VideoRendition.swift",
        "VideoRenditionList.swift"
      ],
      "target_dependencies" : [
        "AppwriteEnums",
        "JSONCodable"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AppwriteEnums",
      "module_type" : "SwiftTarget",
      "name" : "AppwriteEnums",
      "path" : "Sources/AppwriteEnums",
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "AuthenticationFactor.swift",
        "AuthenticatorType.swift",
        "Browser.swift",
        "BrowserPermission.swift",
        "BrowserTheme.swift",
        "CreditCard.swift",
        "ExecutionMethod.swift",
        "ExecutionResourceType.swift",
        "ExecutionStatus.swift",
        "ExecutionTrigger.swift",
        "Flag.swift",
        "IdTokenProvider.swift",
        "ImageFormat.swift",
        "ImageGravity.swift",
        "OAuthProvider.swift",
        "Timezone.swift",
        "VideoCaptionStatus.swift",
        "VideoCodecId.swift",
        "VideoOutput.swift",
        "VideoRenditionStatus.swift",
        "VideoTimelineStatus.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Appwrite",
      "module_type" : "SwiftTarget",
      "name" : "Appwrite",
      "path" : "Sources/Appwrite",
      "product_dependencies" : [
        "AsyncHTTPClient",
        "NIOWebSocket",
        "NIOCore",
        "MQTTNIO"
      ],
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "Channel.swift",
        "Client.swift",
        "DeviceInfo/Linux/LinuxDeviceInfo.swift",
        "DeviceInfo/OSDeviceInfo.swift",
        "DeviceInfo/Windows/WindowsDeviceInfo.swift",
        "DeviceInfo/iOS/IOSDeviceInfo.swift",
        "DeviceInfo/iOS/UIDevice+ModelName.swift",
        "DeviceInfo/macOS/CwlSysCtl.swift",
        "DeviceInfo/macOS/MacOSDeviceInfo.swift",
        "DeviceInfo/watchOS/WKInterfaceDevice+ModelName.swift",
        "DeviceInfo/watchOS/WatchOSDeviceInfo.swift",
        "Extensions/Cookie+Codable.swift",
        "Extensions/HTTPClientRequest+Cookies.swift",
        "Extensions/String+MimeTypes.swift",
        "ID.swift",
        "Models/AppwriteError.swift",
        "Models/InputFile.swift",
        "Models/RealtimeModels.swift",
        "Models/UploadProgress.swift",
        "OAuth/View+OAuth.swift",
        "OAuth/WebAuthComponent.swift",
        "Operator.swift",
        "PackageInfo/Apple/PackageInfo+Apple.swift",
        "PackageInfo/Linux/PackageInfo+Linux.swift",
        "PackageInfo/OSPackageInfo.swift",
        "PackageInfo/PackageInfo.swift",
        "PackageInfo/Windows/PackageInfo+Windows.swift",
        "Permission.swift",
        "Query.swift",
        "Query/Builder.swift",
        "Role.swift",
        "Services/Account.swift",
        "Services/Analytics.swift",
        "Services/Apps.swift",
        "Services/Avatars.swift",
        "Services/Databases.swift",
        "Services/DocumentsDB.swift",
        "Services/Functions.swift",
        "Services/Graphql.swift",
        "Services/Locale.swift",
        "Services/Messaging.swift",
        "Services/Oauth2.swift",
        "Services/Organization.swift",
        "Services/Presences.swift",
        "Services/Push.swift",
        "Services/PushServiceExtension.swift",
        "Services/Realtime.swift",
        "Services/Service.swift",
        "Services/Storage.swift",
        "Services/TablesDB.swift",
        "Services/Teams.swift",
        "Services/VectorsDB.swift",
        "Services/Videos.swift",
        "StreamingDelegate.swift",
        "Topic.swift",
        "Tracking.swift",
        "WebSockets/HTTPHandler.swift",
        "WebSockets/MessageHandler.swift",
        "WebSockets/WebSocketClient.swift",
        "WebSockets/WebSocketClientDelegate.swift",
        "WebSockets/WebSocketClientError.swift"
      ],
      "target_dependencies" : [
        "AppwriteModels",
        "AppwriteEnums",
        "JSONCodable"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:b853d4c28a02117d0ce8ebf7d4e8f3384dd57765453ea5d00960ca8b05f28782
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-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: [
Done.