The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Appwrite, reference main (903c6f), with Swift 6.1 for Linux on 30 Oct 2026 13:50:46 UTC.

Swift 6 data race errors: 20

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

    |                               |           `- note: closure captures 'uploadChunk(index:uploadId:)' 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
716 |                 nextChunk += 1
717 |                 inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:741:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
739 |                     let index = nextChunk
740 |                     let currentUploadId = uploadId
741 |                     group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                                   |           `- note: closure captures 'uploadChunk(index:uploadId:)' 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
742 |                     nextChunk += 1
743 |                     inFlight += 1
[1266/1289] Compiling Appwrite UIDevice+ModelName.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:19:23: warning: static property 'chunkSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |     // MARK: Properties
 19 |     public static var chunkSize = 5 * 1024 * 1024  // 5MB
    |                       |- warning: static property 'chunkSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'chunkSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'chunkSize' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     public static var maxConcurrentUploads = 8
 21 |
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:20:23: warning: static property 'maxConcurrentUploads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     // MARK: Properties
 19 |     public static var chunkSize = 5 * 1024 * 1024  // 5MB
 20 |     public static var maxConcurrentUploads = 8
    |                       |- warning: static property 'maxConcurrentUploads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'maxConcurrentUploads' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'maxConcurrentUploads' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |     /// Characters a path segment keeps as they are: letters, digits and -_.!~*'(), as encodeURIComponent.
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:58:24: warning: static property 'eventLoopGroupProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     private static let boundary = randomBoundary()
 57 |
 58 |     private static var eventLoopGroupProvider = HTTPClient.EventLoopGroupProvider.singleton
    |                        |- warning: static property 'eventLoopGroupProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'eventLoopGroupProvider' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'eventLoopGroupProvider' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     // MARK: Methods
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:524:48: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
522 |         if let warning = response.headers["x-appwrite-warning"].first {
523 |             warning.split(separator: ";").forEach { warning in
524 |                 fputs("Warning: \(warning)\n", stderr)
    |                                                `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
525 |             }
526 |         }
/usr/include/stdio.h:151:14: note: var declared here
149 | extern FILE *stdin;		/* Standard input stream.  */
150 | extern FILE *stdout;		/* Standard output stream.  */
151 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
152 | /* C89/C99 say they're macros.  Make them happy.  */
153 | #define stdin stdin
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:709:19: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
707 |         let maxConcurrency = Client.maxConcurrentUploads
708 |
709 |         try await withThrowingTaskGroup(of: (Int, Int, [String: Any]).self) { group in
    |                   `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
710 |             var inFlight = 0
711 |
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:709:77: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
707 |         let maxConcurrency = Client.maxConcurrentUploads
708 |
709 |         try await withThrowingTaskGroup(of: (Int, Int, [String: Any]).self) { group in
    |                                                                             `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
710 |             var inFlight = 0
711 |
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:715:23: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
713 |                 let index = nextChunk
714 |                 let currentUploadId = uploadId
715 |                 group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                       `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
716 |                 nextChunk += 1
717 |                 inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:720:47: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
718 |             }
719 |
720 |             while let chunk = try await group.next() {
    |                                               `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
721 |                 inFlight -= 1
722 |                 completedChunks += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:741:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
739 |                     let index = nextChunk
740 |                     let currentUploadId = uploadId
741 |                     group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                           `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
742 |                     nextChunk += 1
743 |                     inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:715:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
713 |                 let index = nextChunk
714 |                 let currentUploadId = uploadId
715 |                 group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                               |           `- note: closure captures 'uploadChunk(index:uploadId:)' 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
716 |                 nextChunk += 1
717 |                 inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:741:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
739 |                     let index = nextChunk
740 |                     let currentUploadId = uploadId
741 |                     group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                                   |           `- note: closure captures 'uploadChunk(index:uploadId:)' 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
742 |                     nextChunk += 1
743 |                     inFlight += 1
[1267/1289] Compiling Appwrite CwlSysCtl.swift
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:19:23: warning: static property 'chunkSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |     // MARK: Properties
 19 |     public static var chunkSize = 5 * 1024 * 1024  // 5MB
    |                       |- warning: static property 'chunkSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'chunkSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'chunkSize' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     public static var maxConcurrentUploads = 8
 21 |
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:20:23: warning: static property 'maxConcurrentUploads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     // MARK: Properties
 19 |     public static var chunkSize = 5 * 1024 * 1024  // 5MB
 20 |     public static var maxConcurrentUploads = 8
    |                       |- warning: static property 'maxConcurrentUploads' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'maxConcurrentUploads' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'maxConcurrentUploads' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |     /// Characters a path segment keeps as they are: letters, digits and -_.!~*'(), as encodeURIComponent.
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:58:24: warning: static property 'eventLoopGroupProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     private static let boundary = randomBoundary()
 57 |
 58 |     private static var eventLoopGroupProvider = HTTPClient.EventLoopGroupProvider.singleton
    |                        |- warning: static property 'eventLoopGroupProvider' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'eventLoopGroupProvider' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'eventLoopGroupProvider' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     // MARK: Methods
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:524:48: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
522 |         if let warning = response.headers["x-appwrite-warning"].first {
523 |             warning.split(separator: ";").forEach { warning in
524 |                 fputs("Warning: \(warning)\n", stderr)
    |                                                `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
525 |             }
526 |         }
/usr/include/stdio.h:151:14: note: var declared here
149 | extern FILE *stdin;		/* Standard input stream.  */
150 | extern FILE *stdout;		/* Standard output stream.  */
151 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
152 | /* C89/C99 say they're macros.  Make them happy.  */
153 | #define stdin stdin
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:709:19: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
707 |         let maxConcurrency = Client.maxConcurrentUploads
708 |
709 |         try await withThrowingTaskGroup(of: (Int, Int, [String: Any]).self) { group in
    |                   `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
710 |             var inFlight = 0
711 |
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:709:77: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
707 |         let maxConcurrency = Client.maxConcurrentUploads
708 |
709 |         try await withThrowingTaskGroup(of: (Int, Int, [String: Any]).self) { group in
    |                                                                             `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
710 |             var inFlight = 0
711 |
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:715:23: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
713 |                 let index = nextChunk
714 |                 let currentUploadId = uploadId
715 |                 group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                       `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
716 |                 nextChunk += 1
717 |                 inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:720:47: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
718 |             }
719 |
720 |             while let chunk = try await group.next() {
    |                                               `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
721 |                 inFlight -= 1
722 |                 completedChunks += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:741:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
739 |                     let index = nextChunk
740 |                     let currentUploadId = uploadId
741 |                     group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                           `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
742 |                     nextChunk += 1
743 |                     inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:715:31: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
713 |                 let index = nextChunk
714 |                 let currentUploadId = uploadId
715 |                 group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                               |           `- note: closure captures 'uploadChunk(index:uploadId:)' 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
716 |                 nextChunk += 1
717 |                 inFlight += 1
/host/spi-builder-workspace/Sources/Appwrite/Client.swift:741:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
739 |                     let index = nextChunk
740 |                     let currentUploadId = uploadId
741 |                     group.addTask { try await uploadChunk(index: index, uploadId: currentUploadId) }
    |                                   |           `- note: closure captures 'uploadChunk(index:uploadId:)' 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
742 |                     nextChunk += 1
743 |                     inFlight += 1
[1268/1289] Compiling Appwrite InputFile.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1269/1289] Compiling Appwrite RealtimeModels.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1270/1289] Compiling Appwrite UploadProgress.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1271/1289] Compiling Appwrite View+OAuth.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1272/1289] Compiling Appwrite WebAuthComponent.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1273/1289] Compiling Appwrite Operator.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1274/1289] Compiling Appwrite PackageInfo+Apple.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1275/1289] Compiling Appwrite PackageInfo+Linux.swift
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:16:24: warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | public class WebAuthComponent {
 15 |
 16 |     private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
    |                        |- warning: static property 'callbacks' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'callbacks' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'callbacks' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
/host/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:19:24: warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |     /// The endpoint host of each login in progress, by callback scheme. A callback URL
 18 |     /// can only set a session for a login this app started, and only for its endpoint.
 19 |     private static var hosts = [String: String]()
    |                        |- warning: static property 'hosts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'hosts' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'hosts' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |     #if canImport(AuthenticationServices)
 21 |         private static var currentAuthSession: ASWebAuthenticationSession?
[1276/1289] Compiling Appwrite Graphql.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 |         }
[1277/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 |         }
[1278/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 |         }
[1279/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 |         }
[1280/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 |         }
[1281/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 |         }
[1282/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 |         }
[1283/1289] 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",
[1284/1289] 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",
[1285/1289] 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",
[1286/1289] 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",
[1287/1289] 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",
[1288/1289] 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",
[1289/1289] 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",
Build complete! (106.47s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "async-http-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.36.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/async-http-client.git"
    },
    {
      "identity" : "swift-distributed-tracing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "1.6.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-distributed-tracing.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.104.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "mqtt-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.13.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server-community/mqtt-nio.git"
    }
  ],
  "manifest_display_name" : "Appwrite",
  "name" : "Appwrite",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "Appwrite",
      "targets" : [
        "Appwrite",
        "AppwriteEnums",
        "AppwriteModels",
        "JSONCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "JSONCodable",
      "module_type" : "SwiftTarget",
      "name" : "JSONCodable",
      "path" : "Sources/JSONCodable",
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "Codable+JSON.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AppwriteTests",
      "module_type" : "SwiftTarget",
      "name" : "AppwriteTests",
      "path" : "Tests/AppwriteTests",
      "product_dependencies" : [
        "NIOCore",
        "NIOEmbedded",
        "NIOWebSocket"
      ],
      "sources" : [
        "MessageHandlerTests.swift",
        "PushTests.swift",
        "Tests.swift",
        "WebAuthComponentTests.swift"
      ],
      "target_dependencies" : [
        "Appwrite"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AppwriteModels",
      "module_type" : "SwiftTarget",
      "name" : "AppwriteModels",
      "path" : "Sources/AppwriteModels",
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "Account.swift",
        "AlgoArgon2.swift",
        "AlgoBcrypt.swift",
        "AlgoMd5.swift",
        "AlgoPhpass.swift",
        "AlgoScrypt.swift",
        "AlgoScryptModified.swift",
        "AlgoSha.swift",
        "App.swift",
        "AppInstallation.swift",
        "AppInstallationList.swift",
        "AppKey.swift",
        "AppKeyList.swift",
        "AppScope.swift",
        "AppScopeList.swift",
        "AppSecret.swift",
        "AppSecretList.swift",
        "AppSecretPlaintext.swift",
        "AppsList.swift",
        "Continent.swift",
        "ContinentList.swift",
        "Country.swift",
        "CountryList.swift",
        "Currency.swift",
        "CurrencyList.swift",
        "Document.swift",
        "DocumentList.swift",
        "Execution.swift",
        "ExecutionList.swift",
        "File.swift",
        "FileList.swift",
        "Headers.swift",
        "Identity.swift",
        "IdentityList.swift",
        "Jwt.swift",
        "Language.swift",
        "LanguageList.swift",
        "Locale.swift",
        "LocaleCode.swift",
        "LocaleCodeList.swift",
        "Membership.swift",
        "MembershipList.swift",
        "MfaChallenge.swift",
        "MfaFactors.swift",
        "MfaRecoveryCodes.swift",
        "MfaType.swift",
        "Oauth2Approve.swift",
        "Oauth2Authorize.swift",
        "Oauth2Consent.swift",
        "Oauth2ConsentList.swift",
        "Oauth2ConsentToken.swift",
        "Oauth2ConsentTokenList.swift",
        "Oauth2DeviceAuthorization.swift",
        "Oauth2Grant.swift",
        "Oauth2Organization.swift",
        "Oauth2OrganizationList.swift",
        "Oauth2PAR.swift",
        "Oauth2Project.swift",
        "Oauth2ProjectList.swift",
        "Oauth2Reject.swift",
        "Oauth2Token.swift",
        "Passkey.swift",
        "PasskeyChallenge.swift",
        "PasskeyList.swift",
        "Phone.swift",
        "PhoneList.swift",
        "Preferences.swift",
        "Presence.swift",
        "PresenceList.swift",
        "Row.swift",
        "RowList.swift",
        "Session.swift",
        "SessionList.swift",
        "Subscriber.swift",
        "Target.swift",
        "Team.swift",
        "TeamList.swift",
        "Token.swift",
        "TokenSecret.swift",
        "Transaction.swift",
        "TransactionList.swift",
        "User.swift"
      ],
      "target_dependencies" : [
        "AppwriteEnums",
        "JSONCodable"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AppwriteEnums",
      "module_type" : "SwiftTarget",
      "name" : "AppwriteEnums",
      "path" : "Sources/AppwriteEnums",
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "AuthenticationFactor.swift",
        "AuthenticatorType.swift",
        "Browser.swift",
        "BrowserPermission.swift",
        "BrowserTheme.swift",
        "CreditCard.swift",
        "ExecutionMethod.swift",
        "ExecutionResourceType.swift",
        "ExecutionStatus.swift",
        "ExecutionTrigger.swift",
        "Flag.swift",
        "IdTokenProvider.swift",
        "ImageFormat.swift",
        "ImageGravity.swift",
        "OAuthProvider.swift",
        "Timezone.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Appwrite",
      "module_type" : "SwiftTarget",
      "name" : "Appwrite",
      "path" : "Sources/Appwrite",
      "product_dependencies" : [
        "AsyncHTTPClient",
        "NIOWebSocket",
        "NIOCore",
        "MQTTNIO"
      ],
      "product_memberships" : [
        "Appwrite"
      ],
      "sources" : [
        "Channel.swift",
        "Client.swift",
        "DeviceInfo/Linux/LinuxDeviceInfo.swift",
        "DeviceInfo/OSDeviceInfo.swift",
        "DeviceInfo/Windows/WindowsDeviceInfo.swift",
        "DeviceInfo/iOS/IOSDeviceInfo.swift",
        "DeviceInfo/iOS/UIDevice+ModelName.swift",
        "DeviceInfo/macOS/CwlSysCtl.swift",
        "DeviceInfo/macOS/MacOSDeviceInfo.swift",
        "DeviceInfo/watchOS/WKInterfaceDevice+ModelName.swift",
        "DeviceInfo/watchOS/WatchOSDeviceInfo.swift",
        "Extensions/Cookie+Codable.swift",
        "Extensions/HTTPClientRequest+Cookies.swift",
        "Extensions/String+MimeTypes.swift",
        "ID.swift",
        "Models/AppwriteError.swift",
        "Models/InputFile.swift",
        "Models/RealtimeModels.swift",
        "Models/UploadProgress.swift",
        "OAuth/View+OAuth.swift",
        "OAuth/WebAuthComponent.swift",
        "Operator.swift",
        "PackageInfo/Apple/PackageInfo+Apple.swift",
        "PackageInfo/Linux/PackageInfo+Linux.swift",
        "PackageInfo/OSPackageInfo.swift",
        "PackageInfo/PackageInfo.swift",
        "PackageInfo/Windows/PackageInfo+Windows.swift",
        "Permission.swift",
        "Query.swift",
        "Query/Builder.swift",
        "Role.swift",
        "Services/Account.swift",
        "Services/Analytics.swift",
        "Services/Apps.swift",
        "Services/Avatars.swift",
        "Services/Databases.swift",
        "Services/DocumentsDB.swift",
        "Services/Functions.swift",
        "Services/Graphql.swift",
        "Services/Locale.swift",
        "Services/Messaging.swift",
        "Services/Oauth2.swift",
        "Services/Organization.swift",
        "Services/Presences.swift",
        "Services/Push.swift",
        "Services/PushServiceExtension.swift",
        "Services/Realtime.swift",
        "Services/Service.swift",
        "Services/Storage.swift",
        "Services/TablesDB.swift",
        "Services/Teams.swift",
        "Services/VectorsDB.swift",
        "StreamingDelegate.swift",
        "Topic.swift",
        "WebSockets/HTTPHandler.swift",
        "WebSockets/MessageHandler.swift",
        "WebSockets/WebSocketClient.swift",
        "WebSockets/WebSocketClientDelegate.swift",
        "WebSockets/WebSocketClientError.swift"
      ],
      "target_dependencies" : [
        "AppwriteModels",
        "AppwriteEnums",
        "JSONCodable"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:b6bfb4c5da2c5a0e111d7eb0c087cb4f5887cce9a34b7779faa557952c747cfc
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:5:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
 3 | import PackageDescription
 4 |
 5 | let package = Package(
   |               |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
 6 |     name: "Appwrite",
 7 |     platforms: [
Done.