Build Information
Failed to build Appwrite, reference main (903c6f), with Swift 6.1 for Android on 30 Oct 2026 14:00:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
[1284/1289] Compiling Appwrite Locale.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1326: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
1324 |
1325 | private static let apnsLock = NSLock()
1326 | 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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1327: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
1325 | private static let apnsLock = NSLock()
1326 | private static var apnsToken: String?
1327 | 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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1328: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
1326 | private static var apnsToken: String?
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | 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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1329: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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | 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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1330: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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
1330 | 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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1331: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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
1331 | 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
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1332: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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | 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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// 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:1333: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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | 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
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1335: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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | 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
1336 |
1337 | private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1374: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
1372 | }
1373 |
1374 | 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
1375 |
1376 | /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:717:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | /// // sub.update(background: true, title: "Messages")
251 | /// sub.unsubscribe()
252 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
253 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
254 | private static let keepAliveSeconds: UInt16 = 60
:
715 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
716 | } catch {
717 | 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
718 | }
719 | do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1507:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1505 | }
1506 | for push in pushes where !push.backgroundTopics().isEmpty {
1507 | 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
1508 | }
1509 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1707: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
1705 | let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1706 | if message.wake {
1707 | 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
1708 | var woke = false
1709 | for push in pushes {
:
1712 | }
1713 | }
1714 | completion?(woke)
| `- note: closure captures 'completion' which is accessible to code in the current task
1715 | }
1716 | return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1472: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
1470 | }
1471 | let scheduler = WeakPush(push)
1472 | 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
1473 | try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1474 | await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
| `- note: closure captures 'scheduler' which is accessible to code in the current task
1475 | }
1476 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1401: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
1399 | }
1400 | if let token {
1401 | 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
1402 | }
1403 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1077: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
1075 | private func inBackground(_ operation: @escaping () async throws -> Void) {
1076 | let generation = sync.sync { closeGeneration }
1077 | 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
1078 | do {
1079 | try await operation()
| `- note: closure captures non-Sendable 'operation'
1080 | } catch {
1081 | guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
| `- note: closure captures non-Sendable 'self'
1082 | self.surface(Push.describe(error))
1083 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1414: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
1412 | let targetId = Push.targetId(for: userId)
1413 | let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1414 | 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
1415 | for topic in topics where linked.contains(topic) {
1416 | await unlink(push, targetId: targetId, topic: topic)
| `- note: closure captures 'push' which is accessible to code in the current task
1417 | }
1418 | // 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:766: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
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
[1285/1289] Compiling Appwrite Messaging.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1326: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
1324 |
1325 | private static let apnsLock = NSLock()
1326 | 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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1327: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
1325 | private static let apnsLock = NSLock()
1326 | private static var apnsToken: String?
1327 | 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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1328: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
1326 | private static var apnsToken: String?
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | 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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1329: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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | 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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1330: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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
1330 | 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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1331: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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
1331 | 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
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1332: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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | 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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// 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:1333: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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | 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
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1335: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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | 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
1336 |
1337 | private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1374: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
1372 | }
1373 |
1374 | 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
1375 |
1376 | /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:717:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | /// // sub.update(background: true, title: "Messages")
251 | /// sub.unsubscribe()
252 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
253 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
254 | private static let keepAliveSeconds: UInt16 = 60
:
715 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
716 | } catch {
717 | 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
718 | }
719 | do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1507:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1505 | }
1506 | for push in pushes where !push.backgroundTopics().isEmpty {
1507 | 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
1508 | }
1509 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1707: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
1705 | let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1706 | if message.wake {
1707 | 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
1708 | var woke = false
1709 | for push in pushes {
:
1712 | }
1713 | }
1714 | completion?(woke)
| `- note: closure captures 'completion' which is accessible to code in the current task
1715 | }
1716 | return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1472: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
1470 | }
1471 | let scheduler = WeakPush(push)
1472 | 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
1473 | try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1474 | await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
| `- note: closure captures 'scheduler' which is accessible to code in the current task
1475 | }
1476 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1401: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
1399 | }
1400 | if let token {
1401 | 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
1402 | }
1403 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1077: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
1075 | private func inBackground(_ operation: @escaping () async throws -> Void) {
1076 | let generation = sync.sync { closeGeneration }
1077 | 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
1078 | do {
1079 | try await operation()
| `- note: closure captures non-Sendable 'operation'
1080 | } catch {
1081 | guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
| `- note: closure captures non-Sendable 'self'
1082 | self.surface(Push.describe(error))
1083 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1414: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
1412 | let targetId = Push.targetId(for: userId)
1413 | let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1414 | 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
1415 | for topic in topics where linked.contains(topic) {
1416 | await unlink(push, targetId: targetId, topic: topic)
| `- note: closure captures 'push' which is accessible to code in the current task
1417 | }
1418 | // 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:766: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
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
[1286/1289] Compiling Appwrite Oauth2.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1326: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
1324 |
1325 | private static let apnsLock = NSLock()
1326 | 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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1327: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
1325 | private static let apnsLock = NSLock()
1326 | private static var apnsToken: String?
1327 | 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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1328: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
1326 | private static var apnsToken: String?
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | 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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1329: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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | 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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1330: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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
1330 | 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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1331: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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
1331 | 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
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1332: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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | 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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// 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:1333: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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | 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
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1335: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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | 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
1336 |
1337 | private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1374: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
1372 | }
1373 |
1374 | 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
1375 |
1376 | /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:717:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | /// // sub.update(background: true, title: "Messages")
251 | /// sub.unsubscribe()
252 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
253 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
254 | private static let keepAliveSeconds: UInt16 = 60
:
715 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
716 | } catch {
717 | 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
718 | }
719 | do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1507:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1505 | }
1506 | for push in pushes where !push.backgroundTopics().isEmpty {
1507 | 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
1508 | }
1509 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1707: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
1705 | let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1706 | if message.wake {
1707 | 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
1708 | var woke = false
1709 | for push in pushes {
:
1712 | }
1713 | }
1714 | completion?(woke)
| `- note: closure captures 'completion' which is accessible to code in the current task
1715 | }
1716 | return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1472: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
1470 | }
1471 | let scheduler = WeakPush(push)
1472 | 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
1473 | try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1474 | await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
| `- note: closure captures 'scheduler' which is accessible to code in the current task
1475 | }
1476 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1401: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
1399 | }
1400 | if let token {
1401 | 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
1402 | }
1403 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1077: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
1075 | private func inBackground(_ operation: @escaping () async throws -> Void) {
1076 | let generation = sync.sync { closeGeneration }
1077 | 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
1078 | do {
1079 | try await operation()
| `- note: closure captures non-Sendable 'operation'
1080 | } catch {
1081 | guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
| `- note: closure captures non-Sendable 'self'
1082 | self.surface(Push.describe(error))
1083 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1414: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
1412 | let targetId = Push.targetId(for: userId)
1413 | let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1414 | 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
1415 | for topic in topics where linked.contains(topic) {
1416 | await unlink(push, targetId: targetId, topic: topic)
| `- note: closure captures 'push' which is accessible to code in the current task
1417 | }
1418 | // 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:766: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
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
[1287/1289] Compiling Appwrite Organization.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1326: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
1324 |
1325 | private static let apnsLock = NSLock()
1326 | 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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1327: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
1325 | private static let apnsLock = NSLock()
1326 | private static var apnsToken: String?
1327 | 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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1328: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
1326 | private static var apnsToken: String?
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | 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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1329: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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | 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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1330: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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
1330 | 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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1331: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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
1331 | 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
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1332: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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | 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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// 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:1333: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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | 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
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1335: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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | 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
1336 |
1337 | private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1374: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
1372 | }
1373 |
1374 | 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
1375 |
1376 | /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:717:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | /// // sub.update(background: true, title: "Messages")
251 | /// sub.unsubscribe()
252 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
253 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
254 | private static let keepAliveSeconds: UInt16 = 60
:
715 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
716 | } catch {
717 | 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
718 | }
719 | do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1507:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1505 | }
1506 | for push in pushes where !push.backgroundTopics().isEmpty {
1507 | 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
1508 | }
1509 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1707: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
1705 | let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1706 | if message.wake {
1707 | 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
1708 | var woke = false
1709 | for push in pushes {
:
1712 | }
1713 | }
1714 | completion?(woke)
| `- note: closure captures 'completion' which is accessible to code in the current task
1715 | }
1716 | return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1472: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
1470 | }
1471 | let scheduler = WeakPush(push)
1472 | 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
1473 | try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1474 | await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
| `- note: closure captures 'scheduler' which is accessible to code in the current task
1475 | }
1476 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1401: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
1399 | }
1400 | if let token {
1401 | 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
1402 | }
1403 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1077: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
1075 | private func inBackground(_ operation: @escaping () async throws -> Void) {
1076 | let generation = sync.sync { closeGeneration }
1077 | 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
1078 | do {
1079 | try await operation()
| `- note: closure captures non-Sendable 'operation'
1080 | } catch {
1081 | guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
| `- note: closure captures non-Sendable 'self'
1082 | self.surface(Push.describe(error))
1083 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1414: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
1412 | let targetId = Push.targetId(for: userId)
1413 | let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1414 | 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
1415 | for topic in topics where linked.contains(topic) {
1416 | await unlink(push, targetId: targetId, topic: topic)
| `- note: closure captures 'push' which is accessible to code in the current task
1417 | }
1418 | // 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:766: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
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
[1288/1289] Compiling Appwrite Presences.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1326: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
1324 |
1325 | private static let apnsLock = NSLock()
1326 | 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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1327: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
1325 | private static let apnsLock = NSLock()
1326 | private static var apnsToken: String?
1327 | 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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1328: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
1326 | private static var apnsToken: String?
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | 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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1329: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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | 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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1330: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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
1330 | 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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1331: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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
1331 | 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
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1332: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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | 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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// 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:1333: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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | 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
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1335: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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | 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
1336 |
1337 | private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1374: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
1372 | }
1373 |
1374 | 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
1375 |
1376 | /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:717:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | /// // sub.update(background: true, title: "Messages")
251 | /// sub.unsubscribe()
252 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
253 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
254 | private static let keepAliveSeconds: UInt16 = 60
:
715 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
716 | } catch {
717 | 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
718 | }
719 | do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1507:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1505 | }
1506 | for push in pushes where !push.backgroundTopics().isEmpty {
1507 | 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
1508 | }
1509 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1707: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
1705 | let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1706 | if message.wake {
1707 | 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
1708 | var woke = false
1709 | for push in pushes {
:
1712 | }
1713 | }
1714 | completion?(woke)
| `- note: closure captures 'completion' which is accessible to code in the current task
1715 | }
1716 | return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1472: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
1470 | }
1471 | let scheduler = WeakPush(push)
1472 | 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
1473 | try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1474 | await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
| `- note: closure captures 'scheduler' which is accessible to code in the current task
1475 | }
1476 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1401: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
1399 | }
1400 | if let token {
1401 | 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
1402 | }
1403 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1077: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
1075 | private func inBackground(_ operation: @escaping () async throws -> Void) {
1076 | let generation = sync.sync { closeGeneration }
1077 | 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
1078 | do {
1079 | try await operation()
| `- note: closure captures non-Sendable 'operation'
1080 | } catch {
1081 | guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
| `- note: closure captures non-Sendable 'self'
1082 | self.surface(Push.describe(error))
1083 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1414: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
1412 | let targetId = Push.targetId(for: userId)
1413 | let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1414 | 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
1415 | for topic in topics where linked.contains(topic) {
1416 | await unlink(push, targetId: targetId, topic: topic)
| `- note: closure captures 'push' which is accessible to code in the current task
1417 | }
1418 | // 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:766: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
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
[1289/1289] Compiling Appwrite Push.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1326: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
1324 |
1325 | private static let apnsLock = NSLock()
1326 | 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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1327: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
1325 | private static let apnsLock = NSLock()
1326 | private static var apnsToken: String?
1327 | 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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1328: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
1326 | private static var apnsToken: String?
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | 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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1329: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
1327 | private static var apnsPushes: [ObjectIdentifier: WeakPush] = [:]
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | 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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1330: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
1328 | private static var apnsLinked: [String: Set<String>] = [:]
1329 | private static var apnsProxyInstalled = false
1330 | 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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1331: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
1329 | private static var apnsProxyInstalled = false
1330 | private static var apnsRegistrationRequested = false
1331 | 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
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | private static var apnsReconciled: Set<String> = []
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1332: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
1330 | private static var apnsRegistrationRequested = false
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | 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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// 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:1333: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
1331 | static var apnsDeliveries = Deliveries(defaults: Shared.defaults)
1332 | static var apnsLinkedTopics = LinkedTopics(defaults: Shared.defaults)
1333 | 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
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | static var reconcileDelay: TimeInterval = 30
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1335: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
1333 | private static var apnsReconciled: Set<String> = []
1334 | /// How long a launch has to subscribe again before the topics it doesn't claim are unlinked.
1335 | 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
1336 |
1337 | private final class WeakPush {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1374: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
1372 | }
1373 |
1374 | 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
1375 |
1376 | /// Without the App Group the Notification Service Extension can't fetch, and the placeholder stays.
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:717:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | /// // sub.update(background: true, title: "Messages")
251 | /// sub.unsubscribe()
252 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
253 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
254 | private static let keepAliveSeconds: UInt16 = 60
:
715 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
716 | } catch {
717 | 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
718 | }
719 | do {
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1507:13: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
1505 | }
1506 | for push in pushes where !push.backgroundTopics().isEmpty {
1507 | 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
1508 | }
1509 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1707: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
1705 | let pushes = apnsLocked { apnsPushes.values.compactMap { $0.push } }
1706 | if message.wake {
1707 | 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
1708 | var woke = false
1709 | for push in pushes {
:
1712 | }
1713 | }
1714 | completion?(woke)
| `- note: closure captures 'completion' which is accessible to code in the current task
1715 | }
1716 | return true
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1472: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
1470 | }
1471 | let scheduler = WeakPush(push)
1472 | 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
1473 | try? await Task.sleep(nanoseconds: UInt64(reconcileDelay * 1_000_000_000))
1474 | await reconcile(userId: userId, targetId: targetId, fallback: scheduler.push)
| `- note: closure captures 'scheduler' which is accessible to code in the current task
1475 | }
1476 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1401: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
1399 | }
1400 | if let token {
1401 | 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
1402 | }
1403 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1077: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
1075 | private func inBackground(_ operation: @escaping () async throws -> Void) {
1076 | let generation = sync.sync { closeGeneration }
1077 | 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
1078 | do {
1079 | try await operation()
| `- note: closure captures non-Sendable 'operation'
1080 | } catch {
1081 | guard let self, !self.sync.sync(execute: { self.closing || self.closeGeneration != generation }) else { return }
| `- note: closure captures non-Sendable 'self'
1082 | self.surface(Push.describe(error))
1083 | }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1414: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
1412 | let targetId = Push.targetId(for: userId)
1413 | let linked = apnsLocked { apnsLinked[targetId] ?? [] }
1414 | 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
1415 | for topic in topics where linked.contains(topic) {
1416 | await unlink(push, targetId: targetId, topic: topic)
| `- note: closure captures 'push' which is accessible to code in the current task
1417 | }
1418 | // 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:766: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
764 | self.connectedKey = key
765 | let epoch = self.connectionEpoch
766 | 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
767 | do {
768 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
769 | let current = self.sync.sync { () -> Bool in
770 | guard self.connectionEpoch == epoch else { return false }
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:997: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
995 | }
996 | guard let client else { return }
997 | 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
998 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
999 | sync.sync { self.reconnecting = false }
1000 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:5:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
3 | import PackageDescription
4 |
5 | let package = Package(
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
6 | name: "Appwrite",
7 | platforms: [
warning: 'spi-builder-workspace': dependency 'swift-distributed-tracing' is not used by any target
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/75] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[3/75] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[4/77] Compiling RealModule RealFunctions.swift
[5/78] Compiling ServiceContextModule ServiceContext.swift
[6/78] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[7/78] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[10/80] Emitting module ServiceContextModule
[11/80] Compiling ServiceContextModule ServiceContextKey.swift
[12/81] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[13/81] Compiling Atomics IntegerOperations.swift
[14/81] Compiling Atomics Unmanaged extensions.swift
[15/81] Compiling InternalCollectionsUtilities Integer rank.swift
[16/81] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[17/81] Compiling RealModule Real.swift
[18/81] Compiling RealModule Float80+Real.swift
[20/81] Compiling InternalCollectionsUtilities String+Padding.swift
[21/81] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[22/81] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[23/81] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[24/81] Compiling RealModule RelaxedArithmetic.swift
[27/81] Compiling RealModule Float16+Real.swift
[28/81] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[29/81] Compiling InternalCollectionsUtilities Span+Extras.swift
[30/83] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[35/83] Compiling Logging LoggingSystem.swift
[38/84] Compiling _NIODataStructures Heap.swift
[39/84] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[40/84] Compiling NIOConcurrencyHelpers NIOLock.swift
[41/84] Emitting module RealModule
[42/84] Compiling InternalCollectionsUtilities UInt+reversed.swift
[44/85] Compiling Logging MetadataProvider.swift
[45/85] Compiling InternalCollectionsUtilities Debugging.swift
[46/85] Compiling InternalCollectionsUtilities Descriptions.swift
[47/85] Emitting module _NIODataStructures
[48/85] Compiling Atomics AtomicReference.swift
[52/85] Emitting module NIOConcurrencyHelpers
[53/85] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[58/85] Emitting module InternalCollectionsUtilities
[60/85] Compiling NIOConcurrencyHelpers atomics.swift
[61/85] Compiling NIOConcurrencyHelpers lock.swift
[62/85] Emitting module _NIOBase64
[63/86] Compiling _NIODataStructures PriorityQueue.swift
[64/86] Compiling _NIOBase64 Base64.swift
[65/86] Compiling _NIODataStructures _TinyArray.swift
[66/88] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[67/88] Compiling Logging Logger.swift
[71/88] Compiling Logging Logger+Attributes.swift
[75/88] Emitting module Logging
unable to find node: pound
unable to find node: pound
[79/135] Compiling Instrumentation NoOpInstrument.swift
[80/135] Compiling Instrumentation Instrument.swift
[81/135] Compiling Instrumentation InstrumentationSystem.swift
[82/135] Compiling Instrumentation MultiplexInstrument.swift
[83/135] Emitting module Instrumentation
[84/135] Compiling Algorithms Partition.swift
[85/135] Compiling Algorithms Permutations.swift
[86/135] Compiling Instrumentation Locks.swift
[87/137] Compiling AppwriteEnums AuthenticationFactor.swift
[88/137] Compiling AppwriteEnums AuthenticatorType.swift
[89/139] Compiling AppwriteEnums BrowserTheme.swift
[90/139] Compiling AppwriteEnums CreditCard.swift
[92/139] Compiling AppwriteEnums ExecutionMethod.swift
[93/139] Compiling AppwriteEnums ExecutionResourceType.swift
[94/139] Compiling AppwriteEnums ExecutionStatus.swift
[95/139] Compiling AppwriteEnums ExecutionTrigger.swift
[96/139] Compiling AppwriteEnums ImageFormat.swift
[97/139] Compiling AppwriteEnums ImageGravity.swift
[99/139] Compiling AppwriteEnums Browser.swift
[100/139] Compiling AppwriteEnums BrowserPermission.swift
[101/140] Emitting module JSONCodable
[102/142] Compiling JSONCodable Codable+JSON.swift
[104/184] Compiling ContainersPreview BorrowingSequence.swift
[105/184] Compiling ContainersPreview BidirectionalContainer.swift
[106/184] Compiling Tracing InstrumentationSystem+Tracing.swift
[107/185] Compiling ContainersPreview OutputSpan+Extras.swift
[108/185] Compiling ContainersPreview TemporaryAllocation.swift
[109/185] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[110/185] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[111/185] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[112/185] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[113/185] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[114/185] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[115/185] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[116/185] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[117/185] Compiling ContainersPreview Drain+Map.swift
[118/185] Compiling ContainersPreview Drain+Reduce.swift
[119/185] Compiling ContainersPreview Drain.swift
[120/185] Compiling ContainersPreview Producer+Collect.swift
[121/185] Compiling ContainersPreview Producer+Filter.swift
[122/185] Compiling ContainersPreview Producer+Map.swift
[123/185] Compiling ContainersPreview Producer+Reduce.swift
[124/185] Compiling ContainersPreview Producer.swift
[125/185] Compiling ContainersPreview InputSpan.swift
[126/185] Compiling ContainersPreview MutableRef.swift
[127/189] Emitting module ContainersPreview
[128/189] Compiling ContainersPreview PermutableContainer.swift
[129/189] Compiling ContainersPreview RandomAccessContainer.swift
[130/189] Compiling ContainersPreview RangeExpression2.swift
[131/189] Compiling ContainersPreview RangeReplaceableContainer.swift
[132/189] Compiling ContainersPreview Strideable+Limits.swift
[133/189] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[134/189] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[137/189] Compiling ContainersPreview Container+Filter.swift
[138/189] Compiling ContainersPreview Container+SpanwiseZip.swift
[139/189] Compiling ContainersPreview Container.swift
[140/189] Compiling ContainersPreview ContainerIterator.swift
[141/189] Compiling ContainersPreview DynamicContainer.swift
[142/189] Compiling ContainersPreview MutableContainer.swift
[143/189] Compiling Tracing NoOpTracer.swift
[144/189] Compiling Tracing TracingTime.swift
[151/189] Emitting module AppwriteEnums
[152/189] Compiling Tracing TracerProtocol.swift
[156/192] Compiling ContainersPreview Ref.swift
[157/192] Compiling ContainersPreview Shared.swift
[158/192] Compiling ContainersPreview SpanIterator.swift
[159/192] Compiling ContainersPreview UniqueBox.swift
[160/193] Emitting module Tracing
[161/193] Compiling Tracing WithTracer.swift
[162/193] Compiling Tracing TracerProtocol+Legacy.swift
[163/193] Compiling Tracing Tracer.swift
[173/193] Compiling Tracing SpanProtocol.swift
[184/195] Emitting module Atomics
[186/237] Compiling DequeModule _DequeBuffer.swift
[187/237] Compiling DequeModule _DequeBufferHeader.swift
[188/237] Compiling DequeModule RigidDeque+Append.swift
[189/237] Compiling DequeModule UniqueDeque+Container.swift
[190/237] Compiling DequeModule UniqueDeque+Deprecated.swift
[191/237] Compiling DequeModule UniqueDeque+Descriptions.swift
[192/237] Compiling DequeModule UniqueDeque+Equatable.swift
[193/237] Compiling DequeModule UniqueDeque+Experimental.swift
[197/242] Compiling DequeModule UniqueDeque+Hashable.swift
[198/242] Compiling DequeModule UniqueDeque+Initializers.swift
[199/242] Compiling DequeModule UniqueDeque+Insertions.swift
[200/242] Compiling DequeModule UniqueDeque+Prepend.swift
[201/242] Compiling DequeModule UniqueDeque+Removals.swift
[202/242] Compiling DequeModule RigidDeque+Removals.swift
[203/242] Compiling DequeModule RigidDeque+Replacements.swift
[204/242] Compiling DequeModule RigidDeque+Testing.swift
[205/243] Compiling DequeModule RigidDeque.swift
[206/243] Compiling DequeModule UniqueDeque+Append.swift
[207/243] Compiling DequeModule UniqueDeque+Consumption.swift
[208/243] Compiling DequeModule RigidDeque+Equatable.swift
[209/243] Compiling DequeModule RigidDeque+Experimental.swift
[210/243] Compiling DequeModule RigidDeque+Hashable.swift
[211/243] Compiling DequeModule RigidDeque+Initializers.swift
[212/243] Compiling DequeModule RigidDeque+Insertions.swift
[213/243] Compiling DequeModule RigidDeque+Prepend.swift
[214/301] Compiling AppwriteModels AppKeyList.swift
[215/302] Compiling AppwriteModels AppScope.swift
[216/302] Compiling AppwriteModels AppScopeList.swift
[217/302] Compiling AppwriteModels AppSecret.swift
[218/302] Compiling AppwriteModels AppSecretList.swift
[219/302] Compiling AppwriteModels AppSecretPlaintext.swift
[220/315] Compiling AppwriteModels MfaChallenge.swift
[221/315] Compiling AppwriteModels MfaFactors.swift
[222/315] Compiling AppwriteModels MfaRecoveryCodes.swift
[223/315] Compiling AppwriteModels MfaType.swift
[224/315] Compiling AppwriteModels Oauth2Approve.swift
[225/315] Compiling AppwriteModels Oauth2Authorize.swift
[226/315] Compiling AppwriteModels Oauth2Consent.swift
[227/315] Compiling AppwriteModels Oauth2ConsentList.swift
[228/315] Compiling AppwriteModels Oauth2ConsentToken.swift
[229/315] Compiling AppwriteModels Oauth2ConsentTokenList.swift
[230/325] Compiling AppwriteModels App.swift
[231/325] Compiling AppwriteModels AppInstallation.swift
[232/325] Compiling AppwriteModels AppInstallationList.swift
[233/325] Compiling AppwriteModels AppKey.swift
[234/325] Compiling AppwriteModels Account.swift
[235/325] Compiling AppwriteModels AlgoArgon2.swift
[236/325] Compiling AppwriteModels AlgoBcrypt.swift
[237/325] Compiling AppwriteModels AlgoMd5.swift
[238/325] Compiling AppwriteModels AlgoPhpass.swift
[239/325] Compiling AppwriteModels AlgoScrypt.swift
[240/325] Compiling AppwriteModels AlgoScryptModified.swift
[241/325] Compiling AppwriteModels AlgoSha.swift
[246/325] Emitting module AppwriteModels
[254/325] Compiling AppwriteModels AppsList.swift
[255/325] Compiling AppwriteModels Continent.swift
[256/325] Compiling AppwriteModels ContinentList.swift
[257/325] Compiling AppwriteModels Country.swift
[258/325] Compiling AppwriteModels Membership.swift
[259/325] Compiling AppwriteModels MembershipList.swift
[260/325] Compiling AppwriteModels Oauth2DeviceAuthorization.swift
[261/325] Compiling AppwriteModels Oauth2Grant.swift
[262/325] Compiling AppwriteModels Oauth2Organization.swift
[263/325] Compiling AppwriteModels PasskeyChallenge.swift
[264/325] Compiling AppwriteModels PasskeyList.swift
[265/325] Compiling AppwriteModels Phone.swift
[266/325] Compiling AppwriteModels PhoneList.swift
[267/325] Compiling AppwriteModels Preferences.swift
[268/325] Compiling AppwriteModels Presence.swift
[269/325] Compiling AppwriteModels PresenceList.swift
[270/325] Compiling AppwriteModels Row.swift
[271/325] Compiling AppwriteModels RowList.swift
[272/325] Compiling AppwriteModels Session.swift
[273/325] Emitting module Algorithms
[274/326] Compiling AppwriteModels Identity.swift
[275/326] Compiling AppwriteModels IdentityList.swift
[276/326] Compiling AppwriteModels Jwt.swift
[277/326] Compiling AppwriteModels Language.swift
[278/326] Compiling AppwriteModels LanguageList.swift
[279/326] Compiling AppwriteModels Locale.swift
[280/326] Compiling AppwriteModels LocaleCode.swift
[281/326] Compiling AppwriteModels LocaleCodeList.swift
[287/326] Compiling AppwriteModels Oauth2OrganizationList.swift
[288/326] Compiling AppwriteModels Oauth2PAR.swift
[289/326] Compiling AppwriteModels Oauth2Project.swift
[290/326] Compiling AppwriteModels Oauth2ProjectList.swift
[291/326] Compiling AppwriteModels Oauth2Reject.swift
[292/326] Compiling AppwriteModels Oauth2Token.swift
[293/326] Compiling AppwriteModels Passkey.swift
[305/326] Compiling AppwriteModels CountryList.swift
[306/326] Compiling AppwriteModels Currency.swift
[307/326] Compiling AppwriteModels CurrencyList.swift
[308/326] Compiling AppwriteModels Document.swift
[309/326] Compiling AppwriteModels DocumentList.swift
[310/326] Compiling AppwriteModels Execution.swift
[311/326] Compiling AppwriteModels ExecutionList.swift
[312/326] Compiling AppwriteModels File.swift
[313/326] Compiling AppwriteModels FileList.swift
[314/326] Compiling AppwriteModels Headers.swift
[316/326] Emitting module DequeModule
[318/327] Compiling AppwriteModels SessionList.swift
[319/327] Compiling AppwriteModels Subscriber.swift
[320/327] Compiling AppwriteModels Target.swift
[321/327] Compiling AppwriteModels Team.swift
[322/327] Compiling AppwriteModels TeamList.swift
[323/327] Compiling AppwriteModels Token.swift
[324/327] Compiling AppwriteModels TokenSecret.swift
[325/327] Compiling AppwriteModels Transaction.swift
[326/327] Compiling AppwriteModels TransactionList.swift
[327/327] Compiling AppwriteModels User.swift
[329/392] Compiling NIOCore NIOCoreSendableMetatype.swift
[330/392] Compiling NIOCore NIODecodedAsyncSequence.swift
[331/392] Compiling NIOCore NIOLoopBound.swift
[332/392] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[333/392] Compiling NIOCore NIOScheduledCallback.swift
[334/392] Compiling NIOCore NIOSendable.swift
[335/392] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[336/392] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[337/392] Compiling NIOCore RecvByteBufferAllocator.swift
[338/400] Compiling NIOCore EventLoopFuture+Deprecated.swift
[339/400] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[340/400] Compiling NIOCore EventLoopFuture.swift
[341/400] Compiling NIOCore FileDescriptor.swift
[342/400] Compiling NIOCore FileHandle.swift
[343/400] Compiling NIOCore FileRegion.swift
[344/400] Compiling NIOCore GlobalSingletons.swift
[345/400] Compiling NIOCore IO.swift
[346/400] Compiling NIOCore IOData.swift
[347/400] Compiling NIOCore AddressedEnvelope.swift
[348/400] Compiling NIOCore AsyncAwaitSupport.swift
[349/400] Compiling NIOCore AsyncChannel.swift
[350/400] Compiling NIOCore AsyncChannelHandler.swift
[351/400] Compiling NIOCore AsyncChannelInboundStream.swift
[352/400] Compiling NIOCore AsyncChannelOutboundWriter.swift
[353/400] Compiling NIOCore NIOAsyncSequenceProducer.swift
[354/400] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[355/400] Compiling NIOCore NIOAsyncWriter.swift
[356/400] Compiling NIOCore IPProtocol.swift
[357/400] Compiling NIOCore IntegerBitPacking.swift
[358/400] Compiling NIOCore IntegerTypes.swift
[359/400] Compiling NIOCore Interfaces.swift
[360/400] Compiling NIOCore Linux.swift
[361/400] Compiling NIOCore MarkedCircularBuffer.swift
[362/400] Compiling NIOCore MulticastChannel.swift
[363/400] Compiling NIOCore NIOAny.swift
[364/400] Compiling NIOCore NIOCloseOnErrorHandler.swift
[365/400] Compiling NIOCore CircularBuffer.swift
[366/400] Compiling NIOCore Codec.swift
[367/400] Compiling NIOCore ConvenienceOptionSupport.swift
[368/400] Compiling NIOCore DeadChannel.swift
[369/400] Compiling NIOCore DispatchQueue+WithFuture.swift
[370/400] Compiling NIOCore EventLoop+Deprecated.swift
[371/400] Compiling NIOCore EventLoop+SerialExecutor.swift
[372/400] Compiling NIOCore EventLoop.swift
[373/400] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[374/400] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[375/400] Compiling NIOCore BSDSocketAPI.swift
[376/400] Compiling NIOCore ByteBuffer-aux.swift
[377/400] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[378/400] Compiling NIOCore ByteBuffer-conversions.swift
[379/400] Compiling NIOCore ByteBuffer-core.swift
[380/400] Compiling NIOCore ByteBuffer-hex.swift
[381/400] Compiling NIOCore ByteBuffer-int.swift
[382/400] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[383/400] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[384/400] Compiling NIOCore SocketAddresses.swift
[385/400] Compiling NIOCore SocketOptionProvider.swift
[386/400] Compiling NIOCore SystemCallHelpers.swift
[387/400] Compiling NIOCore TimeAmount+Duration.swift
[388/400] Compiling NIOCore TypeAssistedChannelHandler.swift
[389/400] Compiling NIOCore UniversalBootstrapSupport.swift
[390/400] Compiling NIOCore Utilities.swift
[391/400] Compiling NIOCore ByteBuffer-multi-int.swift
[392/400] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[393/400] Compiling NIOCore ByteBuffer-views.swift
[394/400] Compiling NIOCore Channel.swift
[395/400] Compiling NIOCore ChannelHandler.swift
[396/400] Compiling NIOCore ChannelHandlers.swift
[397/400] Compiling NIOCore ChannelInvoker.swift
[398/400] Compiling NIOCore ChannelOption.swift
[399/400] Compiling NIOCore ChannelPipeline.swift
[400/400] Emitting module NIOCore
[402/455] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[403/455] Compiling NIOEmbedded Embedded.swift
[404/455] Emitting module NIOEmbedded
[405/455] Compiling NIOEmbedded AsyncTestingChannel.swift
[407/456] Compiling NIOPosix PipeChannel.swift
[408/456] Compiling NIOPosix PipePair.swift
[409/456] Compiling NIOPosix Pool.swift
[410/456] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[411/456] Compiling NIOPosix PosixSingletons.swift
[412/456] Compiling NIOPosix RawSocketBootstrap.swift
[413/456] Compiling NIOPosix Resolver.swift
[414/463] Compiling NIOPosix BSDSocketAPICommon.swift
[415/463] Compiling NIOPosix BSDSocketAPIPosix.swift
[416/463] Compiling NIOPosix BSDSocketAPIWindows.swift
[417/463] Compiling NIOPosix BaseSocket.swift
[418/463] Compiling NIOPosix BaseSocketChannel+AccessibleTransport.swift
[419/463] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[420/463] Compiling NIOPosix BaseSocketChannel.swift
[421/463] Compiling NIOPosix SelectorWSAPoll.swift
[422/463] Compiling NIOPosix ServerSocket.swift
[423/463] Compiling NIOPosix Socket.swift
[424/463] Compiling NIOPosix SocketChannel.swift
[425/463] Compiling NIOPosix SocketProtocols.swift
[426/463] Compiling NIOPosix StructuredConcurrencyHelpers.swift
[427/463] Compiling NIOPosix System.swift
[428/463] Compiling NIOPosix Thread.swift
[429/463] Compiling NIOPosix ThreadPosix.swift
[430/463] Compiling NIOPosix ThreadWindows.swift
[431/463] Compiling NIOPosix Utilities.swift
[432/463] Compiling NIOPosix VsockAddress.swift
[433/463] Compiling NIOPosix VsockChannelEvents.swift
[434/463] Compiling NIOPosix Windows.swift
[435/463] Emitting module NIOPosix
[436/463] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[437/463] Compiling NIOPosix NIOPosixSendableMetatype.swift
[438/463] Compiling NIOPosix NIORandomizedDNSResolver.swift
[439/463] Compiling NIOPosix NIOThreadPool.swift
[440/463] Compiling NIOPosix NonBlockingFileIO.swift
[441/463] Compiling NIOPosix PendingDatagramWritesManager.swift
[442/463] Compiling NIOPosix PendingWritesManager.swift
[443/463] Compiling NIOPosix Selectable.swift
[444/463] Compiling NIOPosix SelectableChannel.swift
[445/463] Compiling NIOPosix SelectableEventLoop.swift
[446/463] Compiling NIOPosix SelectorEpoll.swift
[447/463] Compiling NIOPosix SelectorGeneric.swift
[448/463] Compiling NIOPosix SelectorKqueue.swift
[449/463] Compiling NIOPosix SelectorUring.swift
[450/463] Compiling NIOPosix BaseStreamSocketChannel.swift
[451/463] Compiling NIOPosix Bootstrap.swift
[452/463] Compiling NIOPosix ControlMessage.swift
[453/463] Compiling NIOPosix DatagramVectorReadManager.swift
[454/463] Compiling NIOPosix Errors+Any.swift
[455/463] Compiling NIOPosix FileDescriptor.swift
[456/463] Compiling NIOPosix GetaddrinfoResolver.swift
[457/463] Compiling NIOPosix HappyEyeballs.swift
[458/463] Compiling NIOPosix IO.swift
[459/463] Compiling NIOPosix IntegerBitPacking.swift
[460/463] Compiling NIOPosix IntegerTypes.swift
[461/463] Compiling NIOPosix Linux.swift
[462/463] Compiling NIOPosix LinuxCPUSet.swift
[463/463] Compiling NIOPosix LinuxUring.swift
[465/466] Compiling NIO Exports.swift
[466/466] Emitting module NIO
[468/502] Compiling NIOSOCKS SelectedAuthenticationMethod.swift
[469/503] Compiling NIOTLS TLSEvents.swift
[470/503] Emitting module NIOTLS
[471/503] Compiling NIOSOCKS ClientStateMachine.swift
[472/503] Compiling NIOHTTP1 HTTPServerRequestMethodQueue.swift
[473/503] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[474/505] Compiling NIOSOCKS SOCKSResponse.swift
[475/505] Emitting module NIOSOCKS
[476/505] Compiling NIOSOCKS ServerStateMachine.swift
[479/505] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[480/505] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[481/505] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[482/505] Compiling NIOHTTP1 ByteCollectionUtils.swift
[483/505] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[484/505] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[485/506] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[486/506] Compiling NIOTLS SNIHandler.swift
[487/506] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[488/506] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[489/507] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[490/507] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[493/507] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[494/507] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[500/507] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[501/507] Compiling NIOHTTP1 HTTPTypes.swift
[502/507] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[503/507] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[504/559] Compiling NIOSSL SSLCertificateName.swift
[505/559] Compiling NIOSSL SSLConnection.swift
[506/559] Compiling NIOSSL SSLContext.swift
[507/561] Compiling NIOSSL SSLCallbacks.swift
[508/561] Compiling NIOSSL LinuxCABundle.swift
[509/561] Compiling NIOSSL NIOSSLClientHandler.swift
[510/561] Emitting module NIOTransportServices
[511/561] Compiling NIOSSL SSLErrors.swift
[512/561] Compiling NIOSSL SSLInit.swift
[513/561] Compiling NIOSSL SSLPKCS12Bundle.swift
[514/561] Compiling NIOSSL NIOSSLServerHandler.swift
[515/561] Compiling NIOSSL ObjectIdentifier.swift
[516/561] Compiling NIOSSL PosixPort.swift
[517/561] Compiling NIOSSL IdentityVerification.swift
[518/561] Compiling NIOSSL SSLCertificate.swift
[519/561] Compiling NIOSSL SSLCertificateExtensions.swift
[520/561] Compiling NIOSSL ByteBufferBIO.swift
[521/561] Compiling NIOSSL CustomPrivateKey.swift
[522/561] Compiling NIOSSL FreeBSDCABundle.swift
[523/561] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[524/561] Compiling NIOSSL NIOSSLHandler.swift
[525/561] Compiling NIOSSL AndroidCABundle.swift
[526/561] Compiling NIOTransportServices TCPOptions+SocketChannelOption.swift
[527/561] Compiling NIOTransportServices UDPOptions+SocketChannelOption.swift
[531/562] Emitting module NIOHTTP1
[534/574] Compiling NIOSSL SubjectAlternativeName.swift
[535/574] Compiling NIOSSL NIOSSLSecureBytes.swift
[536/574] Compiling NIOSSL RNG.swift
[537/574] Compiling NIOSSL SafeCompare.swift
[540/574] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[541/574] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[542/594] Emitting module NIOSSL
[543/594] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[544/594] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[545/594] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[546/594] Compiling NIOWebSocket SHA1.swift
[549/595] Compiling NIOHTTPCompression HTTPRequestCompressor.swift
[550/595] Compiling NIOHPACK IndexedHeaderTable.swift
[551/595] Compiling NIOHPACK IntegerCoding.swift
[552/595] Compiling NIOHPACK HuffmanCoding.swift
[553/595] Compiling NIOHPACK HuffmanTables.swift
[554/595] Compiling NIOHTTPCompression HTTPResponseCompressor.swift
[555/595] Compiling NIOHTTPCompression HTTPDecompressor.swift
[556/595] Compiling NIOWebSocket WebSocketOpcode.swift
[557/595] Emitting module NIOHTTPCompression
[566/596] Compiling NIOHPACK HPACKHeader.swift
[567/596] Compiling NIOHPACK HeaderTables.swift
[575/596] Compiling NIOHPACK StaticHeaderTable.swift
[578/596] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[579/596] Compiling NIOHTTPCompression HTTPDecompression.swift
[580/596] Compiling NIOHTTPCompression HTTPCompression.swift
[581/597] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[582/597] Emitting module NIOWebSocket
[589/597] Compiling NIOWebSocket WebSocketErrorCodes.swift
[590/597] Compiling NIOWebSocket WebSocketFrame.swift
[592/597] Emitting module NIOHPACK
[593/598] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[596/599] Compiling NIOSSL Zeroization.swift
[597/599] Compiling NIOSSL TLSConfiguration.swift
[598/599] Compiling NIOSSL UniversalBootstrapSupport.swift
[599/599] Compiling NIOSSL UnsafeKeyAndChainTarget.swift
[601/685] Compiling MQTTNIO MQTTError.swift
[602/685] Compiling MQTTNIO MQTTInflight.swift
[603/685] Compiling MQTTNIO MQTTListeners.swift
[604/688] Compiling MQTTNIO MQTTConnection.swift
[605/688] Compiling MQTTNIO MQTTCoreTypes.swift
[606/688] Compiling MQTTNIO MQTTCoreTypesV5.swift
[607/688] Emitting module MQTTNIO
[608/688] Compiling MQTTNIO MQTTSerializer.swift
[609/688] Compiling MQTTNIO MQTTTask.swift
[610/688] Compiling MQTTNIO TSTLSConfiguration.swift
[611/688] Compiling MQTTNIO MQTTPacket.swift
[612/688] Compiling MQTTNIO MQTTProperties.swift
[613/688] Compiling MQTTNIO MQTTReason.swift
[614/688] Compiling NIOHTTP2 HTTP2StreamMultiplexer.swift
[615/688] Compiling NIOHTTP2 HTTP2ToHTTP1Codec.swift
[616/688] Compiling NIOHTTP2 HTTP2UserEvents.swift
[617/688] Compiling NIOHTTP2 InboundEventBuffer.swift
[618/688] Compiling NIOHTTP2 InboundWindowManager.swift
[619/688] Compiling NIOHTTP2 MultiplexerAbstractChannel.swift
[620/688] Compiling NIOHTTP2 NIOHTTP2FrameDelegate.swift
[621/688] Compiling NIOHTTP2 NIOHTTP2ServerConnectionManagementHandler+StateMachine.swift
[622/688] Compiling NIOHTTP2 MaySendFrames.swift
[623/688] Compiling NIOHTTP2 SendingDataState.swift
[624/688] Compiling NIOHTTP2 SendingGoawayState.swift
[625/688] Compiling NIOHTTP2 SendingHeadersState.swift
[626/688] Compiling NIOHTTP2 SendingPushPromiseState.swift
[627/688] Compiling NIOHTTP2 SendingRstStreamState.swift
[628/688] Compiling NIOHTTP2 SendingWindowUpdateState.swift
[629/688] Compiling NIOHTTP2 HTTP2SettingsState.swift
[630/688] Compiling NIOHTTP2 HasExtendedConnectSettings.swift
[631/696] Compiling NIOHTTP2 HasFlowControlWindows.swift
[632/696] Compiling NIOHTTP2 HasLocalSettings.swift
[633/696] Compiling NIOHTTP2 HasRemoteSettings.swift
[634/696] Compiling NIOHTTP2 LocallyQuiescingState.swift
[635/696] Compiling NIOHTTP2 QuiescingState.swift
[636/696] Compiling NIOHTTP2 RemotelyQuiescingState.swift
[637/696] Compiling NIOHTTP2 SendAndReceiveGoawayState.swift
[638/696] Compiling NIOHTTP2 StateMachineResult.swift
[639/696] Compiling NIOHTTP2 ContentLengthVerifier.swift
[640/696] Compiling NIOHTTP2 DOSHeuristics.swift
[641/696] Compiling NIOHTTP2 Error+Any.swift
[642/696] Compiling NIOHTTP2 ConcurrentStreamBuffer.swift
[643/696] Compiling NIOHTTP2 ControlFrameBuffer.swift
[644/696] Compiling NIOHTTP2 OutboundFlowControlBuffer.swift
[645/696] Compiling NIOHTTP2 OutboundFrameBuffer.swift
[646/696] Compiling NIOHTTP2 GlitchesMonitor.swift
[647/696] Compiling NIOHTTP2 HPACKHeaders+Validation.swift
[648/696] Compiling NIOHTTP2 HTTP2ChannelHandler+InboundStreamMultiplexer.swift
[649/696] Compiling MQTTNIO MQTTClient.swift
[650/696] Compiling MQTTNIO MQTTClientV5.swift
[651/696] Compiling MQTTNIO MQTTConfiguration.swift
[652/696] Compiling MQTTNIO MQTTMessageDecoder.swift
[653/696] Compiling MQTTNIO MQTTMessageHandler.swift
[654/696] Compiling MQTTNIO MQTTTaskHandler.swift
[655/696] Compiling MQTTNIO PingreqHandler.swift
[656/696] Compiling MQTTNIO WebSocketHandler.swift
[657/696] Compiling MQTTNIO WebSocketInitialRequest.swift
[658/696] Emitting module NIOHTTP2
[662/696] Compiling MQTTNIO MQTTClient+async.swift
[663/696] Compiling MQTTNIO MQTTClientV5+async.swift
[664/696] Compiling MQTTNIO Sendable.swift
[672/697] Compiling NIOHTTP2 NIOHTTP2ServerConnectionManagementHandler.swift
[673/697] Compiling NIOHTTP2 StreamChannelFlowController.swift
[674/697] Compiling NIOHTTP2 StreamChannelList.swift
[675/697] Compiling NIOHTTP2 StreamMap.swift
[676/697] Compiling NIOHTTP2 StreamStateMachine.swift
[677/697] Compiling NIOHTTP2 Timer.swift
[678/697] Compiling NIOHTTP2 UnsafeTransfer.swift
[679/697] Compiling NIOHTTP2 WatermarkedFlowController.swift
[686/697] Compiling NIOHTTP2 HTTP2StreamChannel.swift
[687/697] Compiling NIOHTTP2 HTTP2StreamDelegate.swift
[688/697] Compiling NIOHTTP2 HTTP2StreamID.swift
[699/762] Emitting module AsyncHTTPClient
[700/770] Compiling AsyncHTTPClient AnyAsyncSequence.swift
[701/770] Compiling AsyncHTTPClient AnyAsyncSequenceProucerDelete.swift
[702/770] Compiling AsyncHTTPClient AsyncLazySequence.swift
[703/770] Compiling AsyncHTTPClient HTTPClient+execute.swift
[704/770] Compiling AsyncHTTPClient HTTPClient+shutdown.swift
[705/770] Compiling AsyncHTTPClient HTTPClient+tracing.swift
[706/770] Compiling AsyncHTTPClient HTTPClientRequest+Prepared.swift
[707/770] Compiling AsyncHTTPClient HTTPClientRequest+auth.swift
[708/770] Compiling AsyncHTTPClient HTTPClientRequest.swift
[709/770] Compiling AsyncHTTPClient HTTPClientResponse.swift
[710/770] Compiling AsyncHTTPClient SingleIteratorPrecondition.swift
[711/770] Compiling AsyncHTTPClient Transaction+StateMachine.swift
[712/770] Compiling AsyncHTTPClient Transaction.swift
[713/770] Compiling AsyncHTTPClient Base64.swift
[714/770] Compiling AsyncHTTPClient BasicAuth.swift
[715/770] Compiling AsyncHTTPClient BestEffortHashableTLSConfiguration.swift
[716/770] Compiling AsyncHTTPClient Configuration+BrowserLike.swift
[717/770] Compiling AsyncHTTPClient ConnectionPool.swift
[718/770] Compiling AsyncHTTPClient RequestValidation.swift
[719/770] Compiling AsyncHTTPClient SSLContextCache.swift
[720/770] Compiling AsyncHTTPClient Scheme.swift
[721/770] Compiling AsyncHTTPClient Singleton.swift
[722/770] Compiling AsyncHTTPClient StringConvertibleInstances.swift
[723/770] Compiling AsyncHTTPClient StructuredConcurrencyHelpers.swift
[724/770] Compiling AsyncHTTPClient TracingSupport.swift
[725/770] Compiling AsyncHTTPClient Utils.swift
[726/770] Compiling AsyncHTTPClient HTTPConnectionEvent.swift
[727/770] Compiling AsyncHTTPClient HTTPConnectionPool+Factory.swift
[728/770] Compiling AsyncHTTPClient HTTPConnectionPool+Manager.swift
[729/770] Compiling AsyncHTTPClient HTTPConnectionPool.swift
[730/770] Compiling AsyncHTTPClient HTTPExecutableRequest.swift
[731/770] Compiling AsyncHTTPClient HTTPRequestStateMachine+Demand.swift
[732/770] Compiling AsyncHTTPClient HTTPRequestStateMachine.swift
[733/770] Compiling AsyncHTTPClient RequestBodyLength.swift
[734/770] Compiling AsyncHTTPClient RequestFramingMetadata.swift
[735/770] Compiling AsyncHTTPClient HTTP1ProxyConnectHandler.swift
[736/770] Compiling AsyncHTTPClient SOCKSEventsHandler.swift
[737/770] Compiling AsyncHTTPClient TLSEventsHandler.swift
[738/770] Compiling AsyncHTTPClient HTTP1ClientChannelHandler.swift
[739/770] Compiling AsyncHTTPClient HTTP1Connection.swift
[740/770] Compiling AsyncHTTPClient HTTP1ConnectionStateMachine.swift
[741/770] Compiling AsyncHTTPClient HTTP2ClientRequestHandler.swift
[742/770] Compiling AsyncHTTPClient HTTP2Connection.swift
[743/770] Compiling AsyncHTTPClient HTTP2IdleHandler.swift
[744/770] Compiling AsyncHTTPClient RequestOptions.swift
[745/770] Compiling AsyncHTTPClient HTTPConnectionPool+Backoff.swift
[746/770] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP1Connections.swift
[747/770] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP1StateMachine.swift
[748/770] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP2Connections.swift
[749/770] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP2StateMachine.swift
[750/770] Compiling AsyncHTTPClient HTTPConnectionPool+RequestQueue.swift
[751/770] Compiling AsyncHTTPClient HTTPConnectionPool+StateMachine.swift
[752/770] Compiling AsyncHTTPClient ConnectionTarget.swift
[753/770] Compiling AsyncHTTPClient LRUCache.swift
[754/770] Compiling AsyncHTTPClient NIOLoopBound+Execute.swift
[755/770] Compiling AsyncHTTPClient NWErrorHandler.swift
[756/770] Compiling AsyncHTTPClient NWWaitingHandler.swift
[757/770] Compiling AsyncHTTPClient TLSConfiguration.swift
[758/770] Compiling AsyncHTTPClient RedirectState.swift
[759/770] Compiling AsyncHTTPClient RequestBag+StateMachine.swift
[760/770] Compiling AsyncHTTPClient RequestBag+Tracing.swift
[761/770] Compiling AsyncHTTPClient RequestBag.swift
[762/770] Compiling AsyncHTTPClient DeconstructedURL.swift
[763/770] Compiling AsyncHTTPClient FileDownloadDelegate.swift
[764/770] Compiling AsyncHTTPClient FoundationExtensions.swift
[765/770] Compiling AsyncHTTPClient HTTPClient+HTTPCookie.swift
[766/770] Compiling AsyncHTTPClient HTTPClient+Proxy.swift
[767/770] Compiling AsyncHTTPClient HTTPClient+StructuredConcurrency.swift
[768/770] Compiling AsyncHTTPClient HTTPClient.swift
[769/770] Compiling AsyncHTTPClient HTTPClientConfiguration+SwiftConfiguration.swift
[770/770] Compiling AsyncHTTPClient HTTPHandler.swift
[772/824] Compiling Appwrite OSPackageInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[773/824] Compiling Appwrite PackageInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[774/824] Compiling Appwrite PackageInfo+Windows.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[775/824] Compiling Appwrite Permission.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[776/824] Compiling Appwrite Query.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[777/824] Compiling Appwrite Builder.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[778/824] Compiling Appwrite Role.swift
/host/spi-builder-workspace/Sources/Appwrite/PackageInfo/OSPackageInfo.swift:13:5: error: missing return in static method expected to return 'PackageInfo'
11 | return PackageInfo.getWindowsPackage()
12 | #endif
13 | }
| `- error: missing return in static method expected to return 'PackageInfo'
14 | }
15 |
[779/831] Emitting module Appwrite
[780/831] Compiling Appwrite Channel.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[781/831] Compiling Appwrite Client.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[782/831] Compiling Appwrite LinuxDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[783/831] Compiling Appwrite OSDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[784/831] Compiling Appwrite WindowsDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[785/831] Compiling Appwrite IOSDeviceInfo.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[786/831] Compiling Appwrite UIDevice+ModelName.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[787/831] Compiling Appwrite CwlSysCtl.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:967:5: error: missing return in static method expected to return 'String'
965 | return "windows"
966 | #endif
967 | }
| `- error: missing return in static method expected to return 'String'
968 |
969 | private static func getDevice() -> String {
[788/831] Compiling Appwrite StreamingDelegate.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[789/831] Compiling Appwrite Topic.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[790/831] Compiling Appwrite HTTPHandler.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[791/831] Compiling Appwrite MessageHandler.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[792/831] Compiling Appwrite WebSocketClient.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[793/831] Compiling Appwrite WebSocketClientDelegate.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[794/831] Compiling Appwrite WebSocketClientError.swift
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:268:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
266 | .channelOption(socketOptions, value: 1)
267 | .channelInitializer {
268 | self.openChannel(channel: $0, upgraded: upgraded)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
269 | }
270 |
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:306:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
304 | upgraders: [basicUpgrader],
305 | completionHandler: { context in
306 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
307 | }
308 | )
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/host/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:320:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
318 | let sslHandler = try! NIOSSLClientHandler(
319 | context: sslContext, serverHostname: self.host)
320 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
321 | } else {
322 | return channel.eventLoop.makeSucceededFuture(())
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
[795/831] Compiling Appwrite InputFile.swift
[796/831] Compiling Appwrite RealtimeModels.swift
[797/831] Compiling Appwrite UploadProgress.swift
[798/831] Compiling Appwrite View+OAuth.swift
[799/831] Compiling Appwrite WebAuthComponent.swift
[800/831] Compiling Appwrite Operator.swift
[801/831] Compiling Appwrite PackageInfo+Apple.swift
[802/831] Compiling Appwrite PackageInfo+Linux.swift
[803/831] Compiling Appwrite PushServiceExtension.swift
[804/831] Compiling Appwrite Realtime.swift
[805/831] Compiling Appwrite Service.swift
[806/831] Compiling Appwrite Storage.swift
[807/831] Compiling Appwrite TablesDB.swift
[808/831] Compiling Appwrite Teams.swift
[809/831] Compiling Appwrite VectorsDB.swift
[810/831] Compiling Appwrite Account.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[811/831] Compiling Appwrite Analytics.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[812/831] Compiling Appwrite Apps.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[813/831] Compiling Appwrite Avatars.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[814/831] Compiling Appwrite Databases.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[815/831] Compiling Appwrite DocumentsDB.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[816/831] Compiling Appwrite Functions.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2382:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2380 | ]
2381 |
2382 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2383 | "X-Appwrite-Project": client.config["project"] ?? "",
2384 | "accept": "text/html",
/host/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2944:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2942 | ]
2943 |
2944 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2945 | "X-Appwrite-Project": client.config["project"] ?? "",
2946 | "accept": "text/html",
[817/831] Compiling Appwrite MacOSDeviceInfo.swift
[818/831] Compiling Appwrite WKInterfaceDevice+ModelName.swift
[819/831] Compiling Appwrite WatchOSDeviceInfo.swift
[820/831] Compiling Appwrite Cookie+Codable.swift
[821/831] Compiling Appwrite HTTPClientRequest+Cookies.swift
[822/831] Compiling Appwrite String+MimeTypes.swift
[823/831] Compiling Appwrite ID.swift
[824/831] Compiling Appwrite AppwriteError.swift
[825/831] Compiling Appwrite Graphql.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
[826/831] Compiling Appwrite Locale.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
[827/831] Compiling Appwrite Messaging.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
[828/831] Compiling Appwrite Oauth2.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
[829/831] Compiling Appwrite Organization.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
[830/831] Compiling Appwrite Presences.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
[831/831] Compiling Appwrite Push.swift
/host/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:923:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
921 | port: port,
922 | identifier: id,
923 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
924 | configuration: configuration
925 | )
BUILD FAILURE 6.1 android