Build Information
Successful build of Appwrite, reference main (3898bb), with Swift 6.1 for macOS (SPM) on 10 Oct 2026 00:15:05 UTC.
Swift 6 data race errors: 9
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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 InferSendableFromCapturesBuild Log
| |- 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
54 |
55 | // MARK: Methods
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:19: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:77: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696:23: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:701:47: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
699 | }
700 |
701 | 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
702 | inFlight -= 1
703 | completedChunks += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696: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
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722: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
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
[1229/1264] Compiling Appwrite OSDeviceInfo.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 | open var endPoint = "https://cloud.appwrite.io/v1"
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:53: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
51 | private static let boundary = randomBoundary()
52 |
53 | 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
54 |
55 | // MARK: Methods
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:19: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:77: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696:23: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:701:47: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
699 | }
700 |
701 | 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
702 | inFlight -= 1
703 | completedChunks += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696: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
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722: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
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
[1230/1264] Compiling Appwrite WindowsDeviceInfo.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 | open var endPoint = "https://cloud.appwrite.io/v1"
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:53: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
51 | private static let boundary = randomBoundary()
52 |
53 | 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
54 |
55 | // MARK: Methods
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:19: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:77: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696:23: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:701:47: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
699 | }
700 |
701 | 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
702 | inFlight -= 1
703 | completedChunks += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696: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
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722: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
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
[1231/1264] Compiling Appwrite IOSDeviceInfo.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 | open var endPoint = "https://cloud.appwrite.io/v1"
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:53: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
51 | private static let boundary = randomBoundary()
52 |
53 | 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
54 |
55 | // MARK: Methods
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:19: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:690:77: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
688 | let maxConcurrency = Client.maxConcurrentUploads
689 |
690 | 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
691 | var inFlight = 0
692 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696:23: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:701:47: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
699 | }
700 |
701 | 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
702 | inFlight -= 1
703 | completedChunks += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:696: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
694 | let index = nextChunk
695 | let currentUploadId = uploadId
696 | 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
697 | nextChunk += 1
698 | inFlight += 1
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Client.swift:722: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
720 | let index = nextChunk
721 | let currentUploadId = uploadId
722 | 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
723 | nextChunk += 1
724 | inFlight += 1
[1232/1264] Compiling Appwrite HTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:213:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
211 |
212 | DispatchQueue.global(qos: .background).async {
213 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
214 | }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:240:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
238 |
239 | DispatchQueue.global(qos: .background).async {
240 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:260:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
258 | .channelOption(socketOptions, value: 1)
259 | .channelInitializer {
260 | self.openChannel(channel: $0)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
261 | }
262 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:286:74: warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
284 | )
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
| `- warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:293:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
291 | let sslHandler = try! NIOSSLClientHandler(
292 | context: sslContext, serverHostname: self.host)
293 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
294 | } else {
295 | return channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:275:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
273 | requestKey: self.frameKey,
274 | upgradePipelineHandler: { channel, response in
275 | self.upgradePipelineHandler(channel: channel, response: response)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
276 | }
277 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:310:44: warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
308 | }
309 |
310 | return channel.pipeline.addHandler(handler).map {
| `- warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
311 | if let delegate = self.delegate {
312 | delegate.onOpen(channel: channel)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/MessageHandler.swift:13:7: note: class 'MessageHandler' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
13 | class MessageHandler {
| `- note: class 'MessageHandler' does not conform to the 'Sendable' protocol
14 |
15 | private let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:311:31: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
309 |
310 | return channel.pipeline.addHandler(handler).map {
311 | if let delegate = self.delegate {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
312 | delegate.onOpen(channel: channel)
313 | } else {
[1233/1264] Compiling Appwrite MessageHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:213:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
211 |
212 | DispatchQueue.global(qos: .background).async {
213 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
214 | }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:240:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
238 |
239 | DispatchQueue.global(qos: .background).async {
240 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:260:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
258 | .channelOption(socketOptions, value: 1)
259 | .channelInitializer {
260 | self.openChannel(channel: $0)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
261 | }
262 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:286:74: warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
284 | )
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
| `- warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:293:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
291 | let sslHandler = try! NIOSSLClientHandler(
292 | context: sslContext, serverHostname: self.host)
293 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
294 | } else {
295 | return channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:275:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
273 | requestKey: self.frameKey,
274 | upgradePipelineHandler: { channel, response in
275 | self.upgradePipelineHandler(channel: channel, response: response)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
276 | }
277 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:310:44: warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
308 | }
309 |
310 | return channel.pipeline.addHandler(handler).map {
| `- warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
311 | if let delegate = self.delegate {
312 | delegate.onOpen(channel: channel)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/MessageHandler.swift:13:7: note: class 'MessageHandler' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
13 | class MessageHandler {
| `- note: class 'MessageHandler' does not conform to the 'Sendable' protocol
14 |
15 | private let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:311:31: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
309 |
310 | return channel.pipeline.addHandler(handler).map {
311 | if let delegate = self.delegate {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
312 | delegate.onOpen(channel: channel)
313 | } else {
[1234/1264] Compiling Appwrite WebSocketClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:213:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
211 |
212 | DispatchQueue.global(qos: .background).async {
213 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
214 | }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:240:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
238 |
239 | DispatchQueue.global(qos: .background).async {
240 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:260:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
258 | .channelOption(socketOptions, value: 1)
259 | .channelInitializer {
260 | self.openChannel(channel: $0)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
261 | }
262 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:286:74: warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
284 | )
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
| `- warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:293:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
291 | let sslHandler = try! NIOSSLClientHandler(
292 | context: sslContext, serverHostname: self.host)
293 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
294 | } else {
295 | return channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:275:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
273 | requestKey: self.frameKey,
274 | upgradePipelineHandler: { channel, response in
275 | self.upgradePipelineHandler(channel: channel, response: response)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
276 | }
277 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:310:44: warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
308 | }
309 |
310 | return channel.pipeline.addHandler(handler).map {
| `- warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
311 | if let delegate = self.delegate {
312 | delegate.onOpen(channel: channel)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/MessageHandler.swift:13:7: note: class 'MessageHandler' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
13 | class MessageHandler {
| `- note: class 'MessageHandler' does not conform to the 'Sendable' protocol
14 |
15 | private let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:311:31: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
309 |
310 | return channel.pipeline.addHandler(handler).map {
311 | if let delegate = self.delegate {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
312 | delegate.onOpen(channel: channel)
313 | } else {
[1235/1264] Compiling Appwrite WebSocketClientDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:213:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
211 |
212 | DispatchQueue.global(qos: .background).async {
213 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
214 | }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:240:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
238 |
239 | DispatchQueue.global(qos: .background).async {
240 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:260:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
258 | .channelOption(socketOptions, value: 1)
259 | .channelInitializer {
260 | self.openChannel(channel: $0)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
261 | }
262 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:286:74: warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
284 | )
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
| `- warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:293:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
291 | let sslHandler = try! NIOSSLClientHandler(
292 | context: sslContext, serverHostname: self.host)
293 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
294 | } else {
295 | return channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:275:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
273 | requestKey: self.frameKey,
274 | upgradePipelineHandler: { channel, response in
275 | self.upgradePipelineHandler(channel: channel, response: response)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
276 | }
277 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:310:44: warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
308 | }
309 |
310 | return channel.pipeline.addHandler(handler).map {
| `- warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
311 | if let delegate = self.delegate {
312 | delegate.onOpen(channel: channel)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/MessageHandler.swift:13:7: note: class 'MessageHandler' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
13 | class MessageHandler {
| `- note: class 'MessageHandler' does not conform to the 'Sendable' protocol
14 |
15 | private let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:311:31: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
309 |
310 | return channel.pipeline.addHandler(handler).map {
311 | if let delegate = self.delegate {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
312 | delegate.onOpen(channel: channel)
313 | } else {
[1236/1264] Compiling Appwrite WebSocketClientError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:213:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
211 |
212 | DispatchQueue.global(qos: .background).async {
213 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
214 | }
215 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:240:13: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
238 |
239 | DispatchQueue.global(qos: .background).async {
240 | self.threadGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:260:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
258 | .channelOption(socketOptions, value: 1)
259 | .channelInitializer {
260 | self.openChannel(channel: $0)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
261 | }
262 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:286:74: warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
284 | )
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
| `- warning: type 'any NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:293:56: warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
291 | let sslHandler = try! NIOSSLClientHandler(
292 | context: sslContext, serverHostname: self.host)
293 | return channel.pipeline.addHandler(sslHandler, position: .first)
| `- warning: conformance of 'NIOSSLClientHandler' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
294 | } else {
295 | return channel.eventLoop.makeSucceededFuture(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:294:1: note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
292 | #if compiler(<6.2)
293 | @available(*, unavailable)
294 | extension NIOSSLClientHandler: Sendable {}
| `- note: conformance of 'NIOSSLClientHandler' to 'Sendable' has been explicitly marked unavailable here
295 | #endif
296 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:275:17: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
273 | requestKey: self.frameKey,
274 | upgradePipelineHandler: { channel, response in
275 | self.upgradePipelineHandler(channel: channel, response: response)
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
276 | }
277 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:282:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
280 | upgraders: [basicUpgrader],
281 | completionHandler: { context in
282 | context.channel.pipeline.removeHandler(httpHandler, promise: nil)
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
283 | }
284 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:287:48: warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
285 |
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
| `- warning: capture of 'httpHandler' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
288 | if self.tlsEnabled {
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/HTTPHandler.swift:8:7: note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
6 | ///
7 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
8 | class HTTPHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
9 |
10 | unowned let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:288:20: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
286 | return channel.pipeline.addHTTPClientHandlers(withClientUpgrade: config).flatMap { _ in
287 | return channel.pipeline.addHandler(httpHandler).flatMap { _ in
288 | if self.tlsEnabled {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
289 | let tlsConfig = TLSConfiguration.makeClientConfiguration()
290 | let sslContext = try! NIOSSLContext(configuration: tlsConfig)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:310:44: warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
308 | }
309 |
310 | return channel.pipeline.addHandler(handler).map {
| `- warning: type 'MessageHandler' does not conform to the 'Sendable' protocol
311 | if let delegate = self.delegate {
312 | delegate.onOpen(channel: channel)
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/MessageHandler.swift:13:7: note: class 'MessageHandler' does not conform to the 'Sendable' protocol
11 | ///
12 | /// Adds the required headers to the outbound upgrade connection request and handles success and failures responses.
13 | class MessageHandler {
| `- note: class 'MessageHandler' does not conform to the 'Sendable' protocol
14 |
15 | private let client: WebSocketClient
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/WebSockets/WebSocketClient.swift:311:31: warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
17 | ///
18 | /// Creates a connection to the remote host and allows setting callbacks for messages sent from the WebSocket server.
19 | public class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Properties
:
309 |
310 | return channel.pipeline.addHandler(handler).map {
311 | if let delegate = self.delegate {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient' in a '@Sendable' closure
312 | delegate.onOpen(channel: channel)
313 | } else {
[1237/1264] Compiling Appwrite Presences.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:47:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// delegate when the first `Push` is created and forwards everything else to the delegate it
45 | /// replaced. A tap while nothing listens waits for `Push.getInitialNotification()`.
46 | final class PushNotificationTaps: NSObject, UNUserNotificationCenterDelegate {
| `- note: class 'PushNotificationTaps' does not conform to the 'Sendable' protocol
47 | static let shared = PushNotificationTaps()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:602:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
213 | /// // sub.update(background: true, title: "Messages")
214 | /// sub.unsubscribe()
215 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
216 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
217 | private static let keepAliveSeconds: UInt16 = 60
:
600 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
601 | } catch {
602 | self?.surface(Push.describe(error))
| `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
603 | }
604 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:808:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
806 | port: port,
807 | identifier: id,
808 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
809 | configuration: configuration
810 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1082:21: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
1080 | URLSession.shared.downloadTask(with: URLRequest(url: url, timeoutInterval: 10)) { location, response, _ in
1081 | guard let location, let fileExtension = attachmentExtension(url, mimeType: response?.mimeType) else {
1082 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1083 | return
1084 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:956: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
954 | // report its failure. Failures after a deliberate close() are its own teardown, not errors.
955 | private func inBackground(_ operation: @escaping () async throws -> Void) {
956 | 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
957 | do {
958 | try await operation()
| `- note: closure captures non-Sendable 'operation'
959 | } catch {
960 | guard let self, !self.sync.sync(execute: { self.closing }) else { return }
| `- note: closure captures non-Sendable 'self'
961 | self.surface(Push.describe(error))
962 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:651: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
649 | self.connectedKey = key
650 | let epoch = self.connectionEpoch
651 | 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
652 | do {
653 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
654 | let current = self.sync.sync { () -> Bool in
655 | guard self.connectionEpoch == epoch else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:879: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
877 | }
878 | guard let client else { return }
879 | 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
880 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
881 | sync.sync { self.reconnecting = false }
882 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | private func startHeartbeat() {
62 | stopHeartbeat()
63 | heartbeatTask = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | while !Task.isCancelled {
66 | if let client = socketClient, client.isConnected {
| `- note: closure captures 'self' which is accessible to code in the current task
67 | client.send(text: #"{"type": "ping"}"#)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | return existing
100 | }
101 | let newTask = Task<Void, Swift.Error> { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 | guard let self = self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
103 | defer {
104 | self.connectSync.sync { self.socketCreationTask = nil }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:348: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
346 | }
347 | if needsSocket {
348 | 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
349 | do {
350 | try await self?.createSocket()
| `- note: closure captures 'self' which is accessible to code in the current task
351 | } catch {
352 | Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
[1238/1264] Compiling Appwrite Push.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:47:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// delegate when the first `Push` is created and forwards everything else to the delegate it
45 | /// replaced. A tap while nothing listens waits for `Push.getInitialNotification()`.
46 | final class PushNotificationTaps: NSObject, UNUserNotificationCenterDelegate {
| `- note: class 'PushNotificationTaps' does not conform to the 'Sendable' protocol
47 | static let shared = PushNotificationTaps()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:602:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
213 | /// // sub.update(background: true, title: "Messages")
214 | /// sub.unsubscribe()
215 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
216 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
217 | private static let keepAliveSeconds: UInt16 = 60
:
600 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
601 | } catch {
602 | self?.surface(Push.describe(error))
| `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
603 | }
604 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:808:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
806 | port: port,
807 | identifier: id,
808 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
809 | configuration: configuration
810 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1082:21: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
1080 | URLSession.shared.downloadTask(with: URLRequest(url: url, timeoutInterval: 10)) { location, response, _ in
1081 | guard let location, let fileExtension = attachmentExtension(url, mimeType: response?.mimeType) else {
1082 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1083 | return
1084 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:956: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
954 | // report its failure. Failures after a deliberate close() are its own teardown, not errors.
955 | private func inBackground(_ operation: @escaping () async throws -> Void) {
956 | 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
957 | do {
958 | try await operation()
| `- note: closure captures non-Sendable 'operation'
959 | } catch {
960 | guard let self, !self.sync.sync(execute: { self.closing }) else { return }
| `- note: closure captures non-Sendable 'self'
961 | self.surface(Push.describe(error))
962 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:651: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
649 | self.connectedKey = key
650 | let epoch = self.connectionEpoch
651 | 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
652 | do {
653 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
654 | let current = self.sync.sync { () -> Bool in
655 | guard self.connectionEpoch == epoch else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:879: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
877 | }
878 | guard let client else { return }
879 | 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
880 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
881 | sync.sync { self.reconnecting = false }
882 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | private func startHeartbeat() {
62 | stopHeartbeat()
63 | heartbeatTask = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | while !Task.isCancelled {
66 | if let client = socketClient, client.isConnected {
| `- note: closure captures 'self' which is accessible to code in the current task
67 | client.send(text: #"{"type": "ping"}"#)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | return existing
100 | }
101 | let newTask = Task<Void, Swift.Error> { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 | guard let self = self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
103 | defer {
104 | self.connectSync.sync { self.socketCreationTask = nil }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:348: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
346 | }
347 | if needsSocket {
348 | 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
349 | do {
350 | try await self?.createSocket()
| `- note: closure captures 'self' which is accessible to code in the current task
351 | } catch {
352 | Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
[1239/1264] Compiling Appwrite Realtime.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:47:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// delegate when the first `Push` is created and forwards everything else to the delegate it
45 | /// replaced. A tap while nothing listens waits for `Push.getInitialNotification()`.
46 | final class PushNotificationTaps: NSObject, UNUserNotificationCenterDelegate {
| `- note: class 'PushNotificationTaps' does not conform to the 'Sendable' protocol
47 | static let shared = PushNotificationTaps()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:602:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
213 | /// // sub.update(background: true, title: "Messages")
214 | /// sub.unsubscribe()
215 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
216 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
217 | private static let keepAliveSeconds: UInt16 = 60
:
600 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
601 | } catch {
602 | self?.surface(Push.describe(error))
| `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
603 | }
604 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:808:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
806 | port: port,
807 | identifier: id,
808 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
809 | configuration: configuration
810 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1082:21: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
1080 | URLSession.shared.downloadTask(with: URLRequest(url: url, timeoutInterval: 10)) { location, response, _ in
1081 | guard let location, let fileExtension = attachmentExtension(url, mimeType: response?.mimeType) else {
1082 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1083 | return
1084 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:956: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
954 | // report its failure. Failures after a deliberate close() are its own teardown, not errors.
955 | private func inBackground(_ operation: @escaping () async throws -> Void) {
956 | 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
957 | do {
958 | try await operation()
| `- note: closure captures non-Sendable 'operation'
959 | } catch {
960 | guard let self, !self.sync.sync(execute: { self.closing }) else { return }
| `- note: closure captures non-Sendable 'self'
961 | self.surface(Push.describe(error))
962 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:651: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
649 | self.connectedKey = key
650 | let epoch = self.connectionEpoch
651 | 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
652 | do {
653 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
654 | let current = self.sync.sync { () -> Bool in
655 | guard self.connectionEpoch == epoch else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:879: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
877 | }
878 | guard let client else { return }
879 | 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
880 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
881 | sync.sync { self.reconnecting = false }
882 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | private func startHeartbeat() {
62 | stopHeartbeat()
63 | heartbeatTask = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | while !Task.isCancelled {
66 | if let client = socketClient, client.isConnected {
| `- note: closure captures 'self' which is accessible to code in the current task
67 | client.send(text: #"{"type": "ping"}"#)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | return existing
100 | }
101 | let newTask = Task<Void, Swift.Error> { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 | guard let self = self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
103 | defer {
104 | self.connectSync.sync { self.socketCreationTask = nil }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:348: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
346 | }
347 | if needsSocket {
348 | 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
349 | do {
350 | try await self?.createSocket()
| `- note: closure captures 'self' which is accessible to code in the current task
351 | } catch {
352 | Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
[1240/1264] Compiling Appwrite Service.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:47:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// delegate when the first `Push` is created and forwards everything else to the delegate it
45 | /// replaced. A tap while nothing listens waits for `Push.getInitialNotification()`.
46 | final class PushNotificationTaps: NSObject, UNUserNotificationCenterDelegate {
| `- note: class 'PushNotificationTaps' does not conform to the 'Sendable' protocol
47 | static let shared = PushNotificationTaps()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:602:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
213 | /// // sub.update(background: true, title: "Messages")
214 | /// sub.unsubscribe()
215 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
216 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
217 | private static let keepAliveSeconds: UInt16 = 60
:
600 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
601 | } catch {
602 | self?.surface(Push.describe(error))
| `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
603 | }
604 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:808:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
806 | port: port,
807 | identifier: id,
808 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
809 | configuration: configuration
810 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1082:21: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
1080 | URLSession.shared.downloadTask(with: URLRequest(url: url, timeoutInterval: 10)) { location, response, _ in
1081 | guard let location, let fileExtension = attachmentExtension(url, mimeType: response?.mimeType) else {
1082 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1083 | return
1084 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:956: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
954 | // report its failure. Failures after a deliberate close() are its own teardown, not errors.
955 | private func inBackground(_ operation: @escaping () async throws -> Void) {
956 | 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
957 | do {
958 | try await operation()
| `- note: closure captures non-Sendable 'operation'
959 | } catch {
960 | guard let self, !self.sync.sync(execute: { self.closing }) else { return }
| `- note: closure captures non-Sendable 'self'
961 | self.surface(Push.describe(error))
962 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:651: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
649 | self.connectedKey = key
650 | let epoch = self.connectionEpoch
651 | 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
652 | do {
653 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
654 | let current = self.sync.sync { () -> Bool in
655 | guard self.connectionEpoch == epoch else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:879: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
877 | }
878 | guard let client else { return }
879 | 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
880 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
881 | sync.sync { self.reconnecting = false }
882 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | private func startHeartbeat() {
62 | stopHeartbeat()
63 | heartbeatTask = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | while !Task.isCancelled {
66 | if let client = socketClient, client.isConnected {
| `- note: closure captures 'self' which is accessible to code in the current task
67 | client.send(text: #"{"type": "ping"}"#)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | return existing
100 | }
101 | let newTask = Task<Void, Swift.Error> { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 | guard let self = self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
103 | defer {
104 | self.connectSync.sync { self.socketCreationTask = nil }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:348: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
346 | }
347 | if needsSocket {
348 | 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
349 | do {
350 | try await self?.createSocket()
| `- note: closure captures 'self' which is accessible to code in the current task
351 | } catch {
352 | Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
[1241/1264] Compiling Appwrite Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:47:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
44 | /// delegate when the first `Push` is created and forwards everything else to the delegate it
45 | /// replaced. A tap while nothing listens waits for `Push.getInitialNotification()`.
46 | final class PushNotificationTaps: NSObject, UNUserNotificationCenterDelegate {
| `- note: class 'PushNotificationTaps' does not conform to the 'Sendable' protocol
47 | static let shared = PushNotificationTaps()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PushNotificationTaps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:602:17: warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
213 | /// // sub.update(background: true, title: "Messages")
214 | /// sub.unsubscribe()
215 | open class Push: Service {
| `- note: class 'Push' does not conform to the 'Sendable' protocol
216 | // Fixed keep-alive (PINGREQ interval) in seconds — not exposed as an option.
217 | private static let keepAliveSeconds: UInt16 = 60
:
600 | // Already disconnected (e.g. the broker dropped the connection); nothing to send.
601 | } catch {
602 | self?.surface(Push.describe(error))
| `- warning: capture of 'self' with non-sendable type 'Push?' in a '@Sendable' closure
603 | }
604 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:808:38: warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
806 | port: port,
807 | identifier: id,
808 | eventLoopGroupProvider: .createNew,
| `- warning: 'createNew' is deprecated: Please use `.shared(existingGroup)` or use the singleton via `.shared(MultiThreadedEventLoopGroup.singleton)` or similar
809 | configuration: configuration
810 | )
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:1082:21: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
1080 | URLSession.shared.downloadTask(with: URLRequest(url: url, timeoutInterval: 10)) { location, response, _ in
1081 | guard let location, let fileExtension = attachmentExtension(url, mimeType: response?.mimeType) else {
1082 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1083 | return
1084 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:956: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
954 | // report its failure. Failures after a deliberate close() are its own teardown, not errors.
955 | private func inBackground(_ operation: @escaping () async throws -> Void) {
956 | 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
957 | do {
958 | try await operation()
| `- note: closure captures non-Sendable 'operation'
959 | } catch {
960 | guard let self, !self.sync.sync(execute: { self.closing }) else { return }
| `- note: closure captures non-Sendable 'self'
961 | self.surface(Push.describe(error))
962 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:651: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
649 | self.connectedKey = key
650 | let epoch = self.connectionEpoch
651 | 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
652 | do {
653 | let client = try await self.open()
| `- note: closure captures 'self' which is accessible to code in the current task
654 | let current = self.sync.sync { () -> Bool in
655 | guard self.connectionEpoch == epoch else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Push.swift:879: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
877 | }
878 | guard let client else { return }
879 | 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
880 | await reconnectLoop(client)
| `- note: closure captures 'self' which is accessible to code in the current task
881 | sync.sync { self.reconnecting = false }
882 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:63:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | private func startHeartbeat() {
62 | stopHeartbeat()
63 | heartbeatTask = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | while !Task.isCancelled {
66 | if let client = socketClient, client.isConnected {
| `- note: closure captures 'self' which is accessible to code in the current task
67 | client.send(text: #"{"type": "ping"}"#)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:101:51: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
99 | return existing
100 | }
101 | let newTask = Task<Void, Swift.Error> { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
102 | guard let self = self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
103 | defer {
104 | self.connectSync.sync { self.socketCreationTask = nil }
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Realtime.swift:348: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
346 | }
347 | if needsSocket {
348 | 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
349 | do {
350 | try await self?.createSocket()
| `- note: closure captures 'self' which is accessible to code in the current task
351 | } catch {
352 | Realtime.logDiagnostic("Failed to open realtime socket for presence: \(error)")
[1242/1264] Compiling Appwrite TablesDB.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:5:7: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | class StreamingDelegate: HTTPClientResponseDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 |
7 | public typealias Response = HTTPClient.Response
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:17:9: warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
15 | }
16 |
17 | var state = State.idle
| `- warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
18 | let request: HTTPClient.Request
19 |
[1243/1264] Compiling Appwrite Teams.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:5:7: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | class StreamingDelegate: HTTPClientResponseDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 |
7 | public typealias Response = HTTPClient.Response
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:17:9: warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
15 | }
16 |
17 | var state = State.idle
| `- warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
18 | let request: HTTPClient.Request
19 |
[1244/1264] Compiling Appwrite VectorsDB.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:5:7: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | class StreamingDelegate: HTTPClientResponseDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 |
7 | public typealias Response = HTTPClient.Response
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:17:9: warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
15 | }
16 |
17 | var state = State.idle
| `- warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
18 | let request: HTTPClient.Request
19 |
[1245/1264] Compiling Appwrite StreamingDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:5:7: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | class StreamingDelegate: HTTPClientResponseDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 |
7 | public typealias Response = HTTPClient.Response
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:17:9: warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
15 | }
16 |
17 | var state = State.idle
| `- warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
18 | let request: HTTPClient.Request
19 |
[1246/1264] Compiling Appwrite Topic.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:5:7: warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
3 | import NIOHTTP1
4 |
5 | class StreamingDelegate: HTTPClientResponseDelegate {
| `- warning: non-final class 'StreamingDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 |
7 | public typealias Response = HTTPClient.Response
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/StreamingDelegate.swift:17:9: warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
15 | }
16 |
17 | var state = State.idle
| `- warning: stored property 'state' of 'Sendable'-conforming class 'StreamingDelegate' is mutable; this is an error in the Swift 6 language mode
18 | let request: HTTPClient.Request
19 |
[1247/1264] Compiling Appwrite Account.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2082:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2080 | ]
2081 |
2082 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2083 | "X-Appwrite-Project": client.config["project"] ?? "",
2084 | "accept": "text/html",
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2629:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2627 | ]
2628 |
2629 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2630 | "X-Appwrite-Project": client.config["project"] ?? "",
2631 | "accept": "text/html",
[1248/1264] Compiling Appwrite Apps.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2082:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2080 | ]
2081 |
2082 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2083 | "X-Appwrite-Project": client.config["project"] ?? "",
2084 | "accept": "text/html",
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2629:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2627 | ]
2628 |
2629 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2630 | "X-Appwrite-Project": client.config["project"] ?? "",
2631 | "accept": "text/html",
[1249/1264] Compiling Appwrite Avatars.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2082:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2080 | ]
2081 |
2082 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2083 | "X-Appwrite-Project": client.config["project"] ?? "",
2084 | "accept": "text/html",
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2629:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2627 | ]
2628 |
2629 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2630 | "X-Appwrite-Project": client.config["project"] ?? "",
2631 | "accept": "text/html",
[1250/1264] Compiling Appwrite Databases.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2082:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2080 | ]
2081 |
2082 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2083 | "X-Appwrite-Project": client.config["project"] ?? "",
2084 | "accept": "text/html",
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2629:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2627 | ]
2628 |
2629 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2630 | "X-Appwrite-Project": client.config["project"] ?? "",
2631 | "accept": "text/html",
[1251/1264] Compiling Appwrite DocumentsDB.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2082:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2080 | ]
2081 |
2082 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2083 | "X-Appwrite-Project": client.config["project"] ?? "",
2084 | "accept": "text/html",
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2629:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2627 | ]
2628 |
2629 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2630 | "X-Appwrite-Project": client.config["project"] ?? "",
2631 | "accept": "text/html",
[1252/1264] Compiling Appwrite Functions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2082:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2080 | ]
2081 |
2082 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2083 | "X-Appwrite-Project": client.config["project"] ?? "",
2084 | "accept": "text/html",
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/Services/Account.swift:2629:13: warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2627 | ]
2628 |
2629 | let apiHeaders: [String: String] = [
| `- warning: immutable value 'apiHeaders' was never used; consider replacing with '_' or removing it
2630 | "X-Appwrite-Project": client.config["project"] ?? "",
2631 | "accept": "text/html",
[1253/1264] Compiling Appwrite UIDevice+ModelName.swift
[1254/1264] Compiling Appwrite CwlSysCtl.swift
[1255/1264] Compiling Appwrite MacOSDeviceInfo.swift
[1256/1264] Compiling Appwrite WKInterfaceDevice+ModelName.swift
[1257/1264] Compiling Appwrite WatchOSDeviceInfo.swift
[1258/1264] Compiling Appwrite Cookie+Codable.swift
[1259/1264] Compiling Appwrite UploadProgress.swift
/Users/admin/builder/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 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:18:28: warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
17 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
| |- warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentAuthSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentAuthSession' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #endif
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:59:83: warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - onComplete: The callback to run when a result (success or failure) is received
34 | ///
35 | internal static func authenticate(
| `- note: add '@MainActor' to make static method 'authenticate(url:callbackScheme:onComplete:)' part of global actor 'MainActor'
36 | url: URL,
37 | callbackScheme: String,
:
57 | /// Indicates that the session should be a private session.
58 | session.prefersEphemeralWebBrowserSession = true
59 | session.presentationContextProvider = PresentationContextProvider.shared
| `- warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | session.start()
61 | } else {
:
162 | /// Presentation context for the ASWebAuthenticationSession.
163 | class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
164 | static let shared = PresentationContextProvider()
| `- note: static property declared here
165 |
166 | func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
[1260/1264] Compiling Appwrite View+OAuth.swift
/Users/admin/builder/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 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:18:28: warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
17 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
| |- warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentAuthSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentAuthSession' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #endif
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:59:83: warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - onComplete: The callback to run when a result (success or failure) is received
34 | ///
35 | internal static func authenticate(
| `- note: add '@MainActor' to make static method 'authenticate(url:callbackScheme:onComplete:)' part of global actor 'MainActor'
36 | url: URL,
37 | callbackScheme: String,
:
57 | /// Indicates that the session should be a private session.
58 | session.prefersEphemeralWebBrowserSession = true
59 | session.presentationContextProvider = PresentationContextProvider.shared
| `- warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | session.start()
61 | } else {
:
162 | /// Presentation context for the ASWebAuthenticationSession.
163 | class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
164 | static let shared = PresentationContextProvider()
| `- note: static property declared here
165 |
166 | func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
[1261/1264] Compiling Appwrite WebAuthComponent.swift
/Users/admin/builder/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 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:18:28: warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
17 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
| |- warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentAuthSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentAuthSession' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #endif
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:59:83: warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - onComplete: The callback to run when a result (success or failure) is received
34 | ///
35 | internal static func authenticate(
| `- note: add '@MainActor' to make static method 'authenticate(url:callbackScheme:onComplete:)' part of global actor 'MainActor'
36 | url: URL,
37 | callbackScheme: String,
:
57 | /// Indicates that the session should be a private session.
58 | session.prefersEphemeralWebBrowserSession = true
59 | session.presentationContextProvider = PresentationContextProvider.shared
| `- warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | session.start()
61 | } else {
:
162 | /// Presentation context for the ASWebAuthenticationSession.
163 | class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
164 | static let shared = PresentationContextProvider()
| `- note: static property declared here
165 |
166 | func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
[1262/1264] Compiling Appwrite Operator.swift
/Users/admin/builder/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 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:18:28: warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
17 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
| |- warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentAuthSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentAuthSession' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #endif
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:59:83: warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - onComplete: The callback to run when a result (success or failure) is received
34 | ///
35 | internal static func authenticate(
| `- note: add '@MainActor' to make static method 'authenticate(url:callbackScheme:onComplete:)' part of global actor 'MainActor'
36 | url: URL,
37 | callbackScheme: String,
:
57 | /// Indicates that the session should be a private session.
58 | session.prefersEphemeralWebBrowserSession = true
59 | session.presentationContextProvider = PresentationContextProvider.shared
| `- warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | session.start()
61 | } else {
:
162 | /// Presentation context for the ASWebAuthenticationSession.
163 | class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
164 | static let shared = PresentationContextProvider()
| `- note: static property declared here
165 |
166 | func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
[1263/1264] Compiling Appwrite PackageInfo+Apple.swift
/Users/admin/builder/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 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:18:28: warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
17 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
| |- warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentAuthSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentAuthSession' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #endif
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:59:83: warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - onComplete: The callback to run when a result (success or failure) is received
34 | ///
35 | internal static func authenticate(
| `- note: add '@MainActor' to make static method 'authenticate(url:callbackScheme:onComplete:)' part of global actor 'MainActor'
36 | url: URL,
37 | callbackScheme: String,
:
57 | /// Indicates that the session should be a private session.
58 | session.prefersEphemeralWebBrowserSession = true
59 | session.presentationContextProvider = PresentationContextProvider.shared
| `- warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | session.start()
61 | } else {
:
162 | /// Presentation context for the ASWebAuthenticationSession.
163 | class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
164 | static let shared = PresentationContextProvider()
| `- note: static property declared here
165 |
166 | func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
[1264/1264] Compiling Appwrite PackageInfo+Linux.swift
/Users/admin/builder/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 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:18:28: warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private static var callbacks = [String: (Result<String, AppwriteError>) -> Void]()
17 | #if canImport(AuthenticationServices)
18 | private static var currentAuthSession: ASWebAuthenticationSession?
| |- warning: static property 'currentAuthSession' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentAuthSession' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'currentAuthSession' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | #endif
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Appwrite/OAuth/WebAuthComponent.swift:59:83: warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// - onComplete: The callback to run when a result (success or failure) is received
34 | ///
35 | internal static func authenticate(
| `- note: add '@MainActor' to make static method 'authenticate(url:callbackScheme:onComplete:)' part of global actor 'MainActor'
36 | url: URL,
37 | callbackScheme: String,
:
57 | /// Indicates that the session should be a private session.
58 | session.prefersEphemeralWebBrowserSession = true
59 | session.presentationContextProvider = PresentationContextProvider.shared
| `- warning: main actor-isolated static property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | session.start()
61 | } else {
:
162 | /// Presentation context for the ASWebAuthenticationSession.
163 | class PresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
164 | static let shared = PresentationContextProvider()
| `- note: static property declared here
165 |
166 | func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
Build complete! (82.66s)
warning: 'spi-builder-workspace': /Users/admin/builder/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: [
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/swift-server-community/mqtt-nio.git
Fetching https://github.com/swift-server/async-http-client.git from cache
[1/12416] Fetching mqtt-nio
Fetched https://github.com/swift-server/async-http-client.git from cache (1.40s)
Fetched https://github.com/swift-server-community/mqtt-nio.git from cache (2.92s)
Fetched https://github.com/apple/swift-nio.git from cache (3.07s)
Computing version for https://github.com/swift-server-community/mqtt-nio.git
Computed https://github.com/swift-server-community/mqtt-nio.git at 2.13.0 (6.32s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio-ssl.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-nio-transport-services.git from cache
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.44s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.44s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.47s)
Fetched https://github.com/apple/swift-log.git from cache (1.50s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.36.2 (2.04s)
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-algorithms.git from cache
Fetching https://github.com/apple/swift-nio-http2.git from cache
Fetching https://github.com/apple/swift-nio-extras.git from cache
[1/6551] Fetching swift-distributed-tracing
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.16s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.16s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.40s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.41s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (2.11s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (1.99s)
Fetched https://github.com/apple/swift-collections.git from cache (2.02s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (2.51s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.56s)
Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (1.04s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.5.0 (1.52s)
Fetching https://github.com/apple/swift-service-context.git
[1/1500] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.94s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (1.42s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.45s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.46s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.47s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.43s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.56s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (2.53s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-structured-headers.git from cache
Fetching https://github.com/apple/swift-asn1.git from cache
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-http-types.git from cache
[1/2867] Fetching swift-service-lifecycle
[2/10476] Fetching swift-service-lifecycle, swift-certificates
[3/17295] Fetching swift-service-lifecycle, swift-certificates, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.29s)
[8042/10476] Fetching swift-service-lifecycle, swift-certificates
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.31s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.32s)
Fetched https://github.com/apple/swift-http-types.git from cache (1.32s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.38s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.38s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.12.1 (1.87s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.49s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.45s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.48s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.57s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.62s)
Fetching https://github.com/apple/swift-crypto.git from cache
Fetched https://github.com/apple/swift-crypto.git from cache (2.27s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (2.78s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.02s)
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.12.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/swift-server-community/mqtt-nio.git
Working copy of https://github.com/swift-server-community/mqtt-nio.git resolved at 2.13.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.36.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
Build complete.
{
"dependencies" : [
{
"identity" : "async-http-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.36.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/async-http-client.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.102.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" : "/Users/admin/builder/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",
"sources" : [
"Tests.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",
"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",
"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",
"Role.swift",
"Services/Account.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/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"
}
warning: 'spi-builder-workspace': /Users/admin/builder/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.