Build Information
Successful build of JacquardSDK, reference main (7db0fe
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 11:11:17 UTC.
Swift 6 data race errors: 43
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 InferSendableFromCaptures
Build Log
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notify' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:25:14: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:26:14: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authenticatedSignedWrites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:27:14: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'extendedProperties' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:28:14: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notifyEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
30 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:29:14: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicateEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | fileprivate init(_ cbProperty: CBCharacteristicProperties) {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:52:14: warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| `- warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | // v2 characteristics
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
13 | // limitations under the License.
14 |
15 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
16 |
17 | /// Contains the known protocol versions.
:
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| |- note: add '@MainActor' to make static property 'v2Service' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | // v2 characteristics
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:56:14: warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
54 | // v2 characteristics
55 | // Used to send commands to the device.
56 | static let commandUUID = CBUUID(string: "D2F2EABB-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'commandUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // Used to receive and process responses to commands given to the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:59:14: warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | // Used to receive and process responses to commands given to the device.
59 | static let responseUUID = CBUUID(string: "D2F2B8D0-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'responseUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | // Used to get and react to notifications produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:62:14: warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | // Used to get and react to notifications produced by the device.
62 | static let notifyUUID = CBUUID(string: "D2F2B8D1-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notifyUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | // Used to get raw data stream produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:65:14: warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | // Used to get raw data stream produced by the device.
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rawDataUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:67:14: warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
| |- warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'v2Characteristics' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | }
69 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:182:23: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
180 | func send(data: Data) {
181 | requestResponseQueue.async {
182 | let fragments = self.transportState.commandFragmenter.fragments(fromPacket: data)
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
183 | for fragment in fragments {
184 | jqLogger.debug(
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:7: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:36: warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/CommandRequest.swift:103:17: note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
101 | ///
102 | /// :nodoc:
103 | public protocol V2ProtocolCommandRequestIDInjectable {
| `- note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
104 | var id: UInt32 { get set }
105 | func serializedData(partial: Bool) throws -> Data
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:60: warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| |- warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:258:13: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
256 | invalidateCommandExecutionTimer()
257 | requestResponseQueue.async {
258 | guard self.pendingRequests.count > 0 else {
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
259 | jqLogger.warning("Received command response, but pendingRequests array was empty.")
260 | // This can happen if the tag re-sends a response, so silently drop.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:248:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
246 | // Dispatch off our queue in case the callback takes some time.
247 | DispatchQueue.main.async {
248 | callback(.failure(error))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:232:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
230 | // Dispatch off our queue in case the callback takes some time.
231 | DispatchQueue.main.async {
232 | callback(.failure(CommandResponseStatus.errorAppTimeout))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
233 | }
234 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:269:9: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
267 | // Dispatch off our queue in case the callback takes some time.
268 | DispatchQueue.main.async {
269 | callback(.success(packet))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
270 | }
271 | self.sendNextRequest()
| `- note: access can happen concurrently
272 | }
273 | }
[175/185] Compiling JacquardSDK TransportV2Implementation.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:20:14: warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | let rawValue: UInt
19 |
20 | static var broadcast = CharacteristicProperties(.broadcast)
| |- warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'broadcast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'broadcast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:21:14: warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | static var broadcast = CharacteristicProperties(.broadcast)
21 | static var read = CharacteristicProperties(.read)
| |- warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'read' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'read' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:22:14: warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | static var broadcast = CharacteristicProperties(.broadcast)
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
| |- warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'writeWithoutResponse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'writeWithoutResponse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:23:14: warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
| |- warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'write' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:24:14: warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notify' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:25:14: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:26:14: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authenticatedSignedWrites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:27:14: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'extendedProperties' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:28:14: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notifyEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
30 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:29:14: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicateEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | fileprivate init(_ cbProperty: CBCharacteristicProperties) {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:52:14: warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| `- warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | // v2 characteristics
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
13 | // limitations under the License.
14 |
15 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
16 |
17 | /// Contains the known protocol versions.
:
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| |- note: add '@MainActor' to make static property 'v2Service' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | // v2 characteristics
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:56:14: warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
54 | // v2 characteristics
55 | // Used to send commands to the device.
56 | static let commandUUID = CBUUID(string: "D2F2EABB-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'commandUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // Used to receive and process responses to commands given to the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:59:14: warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | // Used to receive and process responses to commands given to the device.
59 | static let responseUUID = CBUUID(string: "D2F2B8D0-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'responseUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | // Used to get and react to notifications produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:62:14: warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | // Used to get and react to notifications produced by the device.
62 | static let notifyUUID = CBUUID(string: "D2F2B8D1-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notifyUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | // Used to get raw data stream produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:65:14: warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | // Used to get raw data stream produced by the device.
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rawDataUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:67:14: warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
| |- warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'v2Characteristics' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | }
69 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:182:23: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
180 | func send(data: Data) {
181 | requestResponseQueue.async {
182 | let fragments = self.transportState.commandFragmenter.fragments(fromPacket: data)
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
183 | for fragment in fragments {
184 | jqLogger.debug(
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:7: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:36: warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/CommandRequest.swift:103:17: note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
101 | ///
102 | /// :nodoc:
103 | public protocol V2ProtocolCommandRequestIDInjectable {
| `- note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
104 | var id: UInt32 { get set }
105 | func serializedData(partial: Bool) throws -> Data
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:60: warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| |- warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:258:13: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
256 | invalidateCommandExecutionTimer()
257 | requestResponseQueue.async {
258 | guard self.pendingRequests.count > 0 else {
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
259 | jqLogger.warning("Received command response, but pendingRequests array was empty.")
260 | // This can happen if the tag re-sends a response, so silently drop.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:248:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
246 | // Dispatch off our queue in case the callback takes some time.
247 | DispatchQueue.main.async {
248 | callback(.failure(error))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:232:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
230 | // Dispatch off our queue in case the callback takes some time.
231 | DispatchQueue.main.async {
232 | callback(.failure(CommandResponseStatus.errorAppTimeout))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
233 | }
234 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:269:9: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
267 | // Dispatch off our queue in case the callback takes some time.
268 | DispatchQueue.main.async {
269 | callback(.success(packet))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
270 | }
271 | self.sendNextRequest()
| `- note: access can happen concurrently
272 | }
273 | }
[176/185] Compiling JacquardSDK VarInt.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:20:14: warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | let rawValue: UInt
19 |
20 | static var broadcast = CharacteristicProperties(.broadcast)
| |- warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'broadcast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'broadcast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:21:14: warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | static var broadcast = CharacteristicProperties(.broadcast)
21 | static var read = CharacteristicProperties(.read)
| |- warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'read' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'read' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:22:14: warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | static var broadcast = CharacteristicProperties(.broadcast)
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
| |- warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'writeWithoutResponse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'writeWithoutResponse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:23:14: warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
| |- warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'write' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:24:14: warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notify' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:25:14: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:26:14: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authenticatedSignedWrites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:27:14: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'extendedProperties' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:28:14: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notifyEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
30 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:29:14: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicateEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | fileprivate init(_ cbProperty: CBCharacteristicProperties) {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:52:14: warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| `- warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | // v2 characteristics
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
13 | // limitations under the License.
14 |
15 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
16 |
17 | /// Contains the known protocol versions.
:
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| |- note: add '@MainActor' to make static property 'v2Service' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | // v2 characteristics
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:56:14: warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
54 | // v2 characteristics
55 | // Used to send commands to the device.
56 | static let commandUUID = CBUUID(string: "D2F2EABB-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'commandUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // Used to receive and process responses to commands given to the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:59:14: warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | // Used to receive and process responses to commands given to the device.
59 | static let responseUUID = CBUUID(string: "D2F2B8D0-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'responseUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | // Used to get and react to notifications produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:62:14: warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | // Used to get and react to notifications produced by the device.
62 | static let notifyUUID = CBUUID(string: "D2F2B8D1-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notifyUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | // Used to get raw data stream produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:65:14: warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | // Used to get raw data stream produced by the device.
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rawDataUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:67:14: warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
| |- warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'v2Characteristics' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | }
69 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:182:23: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
180 | func send(data: Data) {
181 | requestResponseQueue.async {
182 | let fragments = self.transportState.commandFragmenter.fragments(fromPacket: data)
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
183 | for fragment in fragments {
184 | jqLogger.debug(
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:7: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:36: warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/CommandRequest.swift:103:17: note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
101 | ///
102 | /// :nodoc:
103 | public protocol V2ProtocolCommandRequestIDInjectable {
| `- note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
104 | var id: UInt32 { get set }
105 | func serializedData(partial: Bool) throws -> Data
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:60: warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| |- warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:258:13: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
256 | invalidateCommandExecutionTimer()
257 | requestResponseQueue.async {
258 | guard self.pendingRequests.count > 0 else {
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
259 | jqLogger.warning("Received command response, but pendingRequests array was empty.")
260 | // This can happen if the tag re-sends a response, so silently drop.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:248:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
246 | // Dispatch off our queue in case the callback takes some time.
247 | DispatchQueue.main.async {
248 | callback(.failure(error))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:232:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
230 | // Dispatch off our queue in case the callback takes some time.
231 | DispatchQueue.main.async {
232 | callback(.failure(CommandResponseStatus.errorAppTimeout))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
233 | }
234 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:269:9: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
267 | // Dispatch off our queue in case the callback takes some time.
268 | DispatchQueue.main.async {
269 | callback(.success(packet))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
270 | }
271 | self.sendNextRequest()
| `- note: access can happen concurrently
272 | }
273 | }
[177/185] Compiling JacquardSDK Version.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:20:14: warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | let rawValue: UInt
19 |
20 | static var broadcast = CharacteristicProperties(.broadcast)
| |- warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'broadcast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'broadcast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:21:14: warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | static var broadcast = CharacteristicProperties(.broadcast)
21 | static var read = CharacteristicProperties(.read)
| |- warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'read' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'read' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:22:14: warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | static var broadcast = CharacteristicProperties(.broadcast)
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
| |- warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'writeWithoutResponse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'writeWithoutResponse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:23:14: warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | static var read = CharacteristicProperties(.read)
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
| |- warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'write' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'write' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:24:14: warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | static var writeWithoutResponse = CharacteristicProperties(.writeWithoutResponse)
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notify' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:25:14: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | static var write = CharacteristicProperties(.write)
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:26:14: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | static var notify = CharacteristicProperties(.notify)
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'authenticatedSignedWrites' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:27:14: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | static var indicate = CharacteristicProperties(.indicate)
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'extendedProperties' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:28:14: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | static var authenticatedSignedWrites = CharacteristicProperties(.authenticatedSignedWrites)
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'notifyEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
30 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:29:14: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | static var extendedProperties = CharacteristicProperties(.extendedProperties)
28 | static var notifyEncryptionRequired = CharacteristicProperties(.notifyEncryptionRequired)
29 | static var indicateEncryptionRequired = CharacteristicProperties(.indicateEncryptionRequired)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'indicateEncryptionRequired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | fileprivate init(_ cbProperty: CBCharacteristicProperties) {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:52:14: warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| `- warning: static property 'v2Service' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | // v2 characteristics
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
13 | // limitations under the License.
14 |
15 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
16 |
17 | /// Contains the known protocol versions.
:
50 | enum JacquardServices {
51 | // The Jacquard V2 protocol service
52 | static let v2Service = CBUUID(string: "D2F2BF0D-D165-445C-B0E1-2D6B642EC57B")
| |- note: add '@MainActor' to make static property 'v2Service' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | // v2 characteristics
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:56:14: warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
54 | // v2 characteristics
55 | // Used to send commands to the device.
56 | static let commandUUID = CBUUID(string: "D2F2EABB-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'commandUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'commandUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | // Used to receive and process responses to commands given to the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:59:14: warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | // Used to receive and process responses to commands given to the device.
59 | static let responseUUID = CBUUID(string: "D2F2B8D0-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'responseUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'responseUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | // Used to get and react to notifications produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:62:14: warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | // Used to get and react to notifications produced by the device.
62 | static let notifyUUID = CBUUID(string: "D2F2B8D1-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'notifyUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'notifyUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | // Used to get raw data stream produced by the device.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:65:14: warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | // Used to get raw data stream produced by the device.
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
| |- warning: static property 'rawDataUUID' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'rawDataUUID' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/ProtocolConstants.swift:67:14: warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
65 | static let rawDataUUID = CBUUID(string: "D2F2B8D2-D165-445C-B0E1-2D6B642EC57B")
66 |
67 | static let v2Characteristics = [commandUUID, responseUUID, notifyUUID, rawDataUUID]
| |- warning: static property 'v2Characteristics' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'v2Characteristics' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 | }
69 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
83 | */
84 | NS_CLASS_AVAILABLE(10_7, 5_0)
85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
86 |
87 | /*!
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:182:23: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
180 | func send(data: Data) {
181 | requestResponseQueue.async {
182 | let fragments = self.transportState.commandFragmenter.fragments(fromPacket: data)
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
183 | for fragment in fragments {
184 | jqLogger.debug(
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:7: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:36: warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| `- warning: capture of 'request' with non-sendable type 'any V2ProtocolCommandRequestIDInjectable' in a '@Sendable' closure
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/CommandRequest.swift:103:17: note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
101 | ///
102 | /// :nodoc:
103 | public protocol V2ProtocolCommandRequestIDInjectable {
| `- note: protocol 'V2ProtocolCommandRequestIDInjectable' does not conform to the 'Sendable' protocol
104 | var id: UInt32 { get set }
105 | func serializedData(partial: Bool) throws -> Data
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:203:60: warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
201 | commandExecutionDuration = requestTimeout
202 | requestResponseQueue.async {
203 | self.pendingRequests.append((request, type, retries, callback))
| |- warning: capture of 'callback' with non-sendable type 'TransportV2Implementation.RequestCallback' (aka '(Result<Data, any Error>) -> ()') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | if self.pendingRequests.count == 1 {
205 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:258:13: warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
59 | }
60 |
61 | class TransportV2Implementation: Transport {
| `- note: class 'TransportV2Implementation' does not conform to the 'Sendable' protocol
62 |
63 | private var peripheral: Peripheral
:
256 | invalidateCommandExecutionTimer()
257 | requestResponseQueue.async {
258 | guard self.pendingRequests.count > 0 else {
| `- warning: capture of 'self' with non-sendable type 'TransportV2Implementation' in a '@Sendable' closure
259 | jqLogger.warning("Received command response, but pendingRequests array was empty.")
260 | // This can happen if the tag re-sends a response, so silently drop.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:248:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
246 | // Dispatch off our queue in case the callback takes some time.
247 | DispatchQueue.main.async {
248 | callback(.failure(error))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:232:11: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
230 | // Dispatch off our queue in case the callback takes some time.
231 | DispatchQueue.main.async {
232 | callback(.failure(CommandResponseStatus.errorAppTimeout))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
233 | }
234 | self.sendNextRequest()
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:269:9: warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
267 | // Dispatch off our queue in case the callback takes some time.
268 | DispatchQueue.main.async {
269 | callback(.success(packet))
| |- warning: sending 'callback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'callback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
270 | }
271 | self.sendNextRequest()
| `- note: access can happen concurrently
272 | }
273 | }
[178/185] Compiling JacquardSDK CloudManager.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[179/185] Compiling JacquardSDK CloudManagerImpl.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[180/185] Compiling JacquardSDK URLRequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[181/185] Compiling JacquardSDK NotificationProtocol.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[182/185] Compiling JacquardSDK TagProtocols.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[183/185] Compiling JacquardSDK jacquard.pb.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[184/185] Compiling JacquardSDK publicSdk.pb.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
[185/185] Compiling JacquardSDK resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:112:11: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
110 | switch response.statusCode {
111 | case 400..<500:
112 | subject.send(completion: .failure(.clientError))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<Data, APIError>' in a '@Sendable' closure
113 | case 500..<600:
114 | subject.send(completion: .failure(.serverError))
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Network/CloudManager.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
13 | // limitations under the License.
14 |
15 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
16 | import Foundation
17 |
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/NotificationProtocol.swift:44:9: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
42 |
43 | public func parseNotification(_ packet: Data) throws -> V2ProtocolNotificationInjectable {
44 | try Google_Jacquard_Protocol_Notification(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
45 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
46 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:9024:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
:
9022 | var _connectorType: Google_Jacquard_Protocol_ConnectorType? = nil
9023 |
9024 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_GearChar._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9025 |
9026 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:2848:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2846 | init() {}
2847 |
2848 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_GearChar' has non-sendable type 'Google_Jacquard_Protocol_GearChar._StorageClass'; this is an error in the Swift 6 language mode
2849 | }
2850 |
:
9012 | ]
9013 |
9014 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
9015 | var _id: UInt32? = nil
9016 | var _motor1: Google_Jacquard_Protocol_VibeMotorChar? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10310:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10308 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10309 |
10310 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10311 |
10312 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4022:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4020 | init() {}
4021 |
4022 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigWriteRequest' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigWriteRequest._StorageClass'; this is an error in the Swift 6 language mode
4023 | }
4024 |
:
10303 | ]
10304 |
10305 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10306 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10307 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:10390:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
10388 | var _womConfig: Google_Jacquard_Protocol_WomConfiguration? = nil
10389 |
10390 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10391 |
10392 | private init() {}
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/jacquard.pb.swift:4061:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4059 | init() {}
4060 |
4061 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Google_Jacquard_Protocol_UJTConfigResponse' has non-sendable type 'Google_Jacquard_Protocol_UJTConfigResponse._StorageClass'; this is an error in the Swift 6 language mode
4062 | }
4063 |
:
10383 | ]
10384 |
10385 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
10386 | var _imuConfig: Google_Jacquard_Protocol_ImuConfiguration? = nil
10387 | var _bleConfig: Google_Jacquard_Protocol_BleConfiguration? = nil
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Protobuf/publicSdk.pb.swift:163:21: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
161 | extension Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability: CaseIterable {
162 | // The compiler won't synthesize support with the UNRECOGNIZED case.
163 | public static var allCases: [Google_Jacquard_Protocol_Public_Sdk_GearMetadata.Capability] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 | .led,
165 | .gesture,
Build complete! (18.35s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-protobuf",
"requirement" : {
"range" : [
{
"lower_bound" : "1.16.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-protobuf.git"
},
{
"identity" : "swift-junit",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/allegro/swift-junit.git"
},
{
"identity" : "swiftcheck",
"requirement" : {
"range" : [
{
"lower_bound" : "0.12.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/typelift/SwiftCheck.git"
}
],
"manifest_display_name" : "JacquardSDK",
"name" : "JacquardSDK",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "JacquardSDK",
"targets" : [
"JacquardSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "JacquardSDKTests",
"module_type" : "SwiftTarget",
"name" : "JacquardSDKTests",
"path" : "Tests",
"product_dependencies" : [
"SwiftCheck",
"SwiftTestReporter"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TestResources/imu1.bin",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TestResources/imu2.bin",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AAA_SwiftTestReporterInit.swift",
"AdvertisedTagModelTests.swift",
"AttachedNotificationTests.swift",
"BatteryStatusTests.swift",
"CacheManagerTests.swift",
"CloudManagerTests.swift",
"ComponentInfoCommandTests.swift",
"ComponentInternalTests.swift",
"ConnectedTagModelTests/ConnectedGearTests.swift",
"ConnectedTagModelTests/ConnectedTagModelTests.swift",
"ContinuousTouchNotificationSubscriptionTests.swift",
"DFUCommandsTests.swift",
"DisconnectTagCommandTests.swift",
"FakeImplementations/FakeCacheManager.swift",
"FakeImplementations/FakeCentralManager.swift",
"FakeImplementations/FakeCloudManager.swift",
"FakeImplementations/FakeComponent.swift",
"FakeImplementations/FakeConnectedTag.swift",
"FakeImplementations/FakeDFUCommands.swift",
"FakeImplementations/FakeFirmwareRetrieverImplementation.swift",
"FakeImplementations/FakePeripheralImplementation.swift",
"FakeImplementations/FakeTransport.swift",
"FakeImplementations/FakeURLProtocol.swift",
"FirmwareUpdate/FirmwareImageWriterStateMachineTests.swift",
"FirmwareUpdate/FirmwareRetrieverTests.swift",
"FirmwareUpdate/FirmwareUpdateManagerTests.swift",
"FirmwareUpdate/FirmwareUpdateStateMachineTests.swift",
"FragmenterTests.swift",
"GearInternalTests.swift",
"GestureNotificationSubscriptionTests.swift",
"GetCustomConfigTests.swift",
"IMUTests/IMUModuleComandsTests.swift",
"IMUTests/IMUModuleProtocolTests.swift",
"IMUTests/IMUParser/IMUParserTests.swift",
"IMUTests/ModuleComandsTests.swift",
"IMUTests/ModuleTests.swift",
"JacquardManagerImplementationTests.swift",
"JacquardTagInternalTests.swift",
"LoggerTests.swift",
"MiscExtensionsTests.swift",
"PlayHapticCommandTests.swift",
"PlayLEDPatternTests.swift",
"SDKVersionTests.swift",
"SetCustomConfigTests.swift",
"ShareReplayTests.swift",
"TagConnectionTests/ProtocolStateMachineTests.swift",
"TagConnectionTests/TagConnectionStateMachineTests.swift",
"TagConnectionTests/TagPairingStateMachineTests.swift",
"TestHelpers.swift",
"TestHelpers/BundleExtensions.swift",
"TouchDataTests.swift",
"TransportTests/TransportV2Tests.swift",
"UJTConfigWriteCommandTests.swift",
"VarIntTests.swift",
"VersionTests.swift"
],
"target_dependencies" : [
"JacquardSDK"
],
"type" : "test"
},
{
"c99name" : "JacquardSDK",
"module_type" : "SwiftTarget",
"name" : "JacquardSDK",
"path" : "JacquardSDK",
"product_dependencies" : [
"SwiftProtobuf"
],
"product_memberships" : [
"JacquardSDK"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/JacquardSDK/Resources/BadFirmwareVersion.json",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/JacquardSDK/Resources/GearMetadata.json",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Classes/API/BatteryStatus.swift",
"Classes/API/ComponentInfoCommand.swift",
"Classes/API/DisconnectTagCommand.swift",
"Classes/API/Gesture.swift",
"Classes/API/GetCustomConfig.swift",
"Classes/API/ModuleStatus.swift",
"Classes/API/PlayHapticCommand.swift",
"Classes/API/PlayLEDPattern.swift",
"Classes/API/SetCustomConfig.swift",
"Classes/API/TouchData.swift",
"Classes/CentralManagerImplementation.swift",
"Classes/CentralManagerProtocol.swift",
"Classes/CommandRequest.swift",
"Classes/ComponentProtocols.swift",
"Classes/FirmwareUpdateAPI/FirmwareUpdateManager.swift",
"Classes/IMUDataCollection/IMUModuleProtocol.swift",
"Classes/IMUDataCollection/IMUSample.swift",
"Classes/IMUDataCollection/Module.swift",
"Classes/Internal/Connection/AdvertisedTagModel.swift",
"Classes/Internal/Connection/PreConnectedTagModel.swift",
"Classes/Internal/Connection/ProtocolInitializationStateMachine.swift",
"Classes/Internal/Connection/TagConnectionStateMachine.swift",
"Classes/Internal/Connection/TagPairingStateMachine.swift",
"Classes/Internal/Extensions.swift",
"Classes/Internal/FirmwareUpdate/CRC16.swift",
"Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift",
"Classes/Internal/FirmwareUpdate/FirmwareUpdateManagerImplementation.swift",
"Classes/Internal/FirmwareUpdate/FirmwareUpdateRequest.swift",
"Classes/Internal/FirmwareUpdate/FirmwareUpdateRetriever.swift",
"Classes/Internal/FirmwareUpdate/FirmwareUpdateRetrieverImplementation.swift",
"Classes/Internal/FirmwareUpdate/FirmwareUpdateStateMachine.swift",
"Classes/Internal/IMUDataCollectionAPI/IMUModuleComands.swift",
"Classes/Internal/IMUDataCollectionAPI/IMUModuleImplementation.swift",
"Classes/Internal/IMUDataCollectionAPI/IMUSessionDataParser.swift",
"Classes/Internal/IMUDataCollectionAPI/IMUStreamDataParser.swift",
"Classes/Internal/Identifier.swift",
"Classes/Internal/ResourceBundle.swift",
"Classes/Internal/ShareReplay.swift",
"Classes/Internal/TagAPIDetails/AttachedNotification.swift",
"Classes/Internal/TagAPIDetails/BatteryStatusInternal.swift",
"Classes/Internal/TagAPIDetails/ComponentInfoInternal.swift",
"Classes/Internal/TagAPIDetails/DFUCommands.swift",
"Classes/Internal/TagAPIDetails/DisconnectTagInternal.swift",
"Classes/Internal/TagAPIDetails/GesturesInternal.swift",
"Classes/Internal/TagAPIDetails/GetCustomConfigInternal.swift",
"Classes/Internal/TagAPIDetails/IMUConfigCommand.swift",
"Classes/Internal/TagAPIDetails/ModuleCommands.swift",
"Classes/Internal/TagAPIDetails/PlayHapticInternal.swift",
"Classes/Internal/TagAPIDetails/PlayLEDPatternInternal.swift",
"Classes/Internal/TagAPIDetails/SetCustomConfigInternal.swift",
"Classes/Internal/TagAPIDetails/SetTouchMode.swift",
"Classes/Internal/TagAPIDetails/TouchDataInternal.swift",
"Classes/Internal/TagAPIDetails/UJTConfigWrite.swift",
"Classes/Internal/TagAndComponent/ComponentInternal.swift",
"Classes/Internal/TagAndComponent/ConnectedTagModel.swift",
"Classes/Internal/TagAndComponent/GearInternal.swift",
"Classes/Internal/TagAndComponent/JacquardTagInternal.swift",
"Classes/Internal/TagAndComponent/TagPeripheralAccess.swift",
"Classes/Internal/Transport/Fragmenter.swift",
"Classes/Internal/Transport/Peripheral.swift",
"Classes/Internal/Transport/PeripheralImplementation.swift",
"Classes/Internal/Transport/ProtocolConstants.swift",
"Classes/Internal/Transport/Transport.swift",
"Classes/Internal/Transport/TransportV2Implementation.swift",
"Classes/Internal/VarInt.swift",
"Classes/Internal/Version.swift",
"Classes/JacquardManagerImplementation.swift",
"Classes/JacquardManagerProtocol.swift",
"Classes/JacquardSDKVersion.swift",
"Classes/Logger.swift",
"Classes/Model/DFUUpdateInfo.swift",
"Classes/Model/SDKConfig.swift",
"Classes/Model/VidPidMid.swift",
"Classes/Network/CacheManager.swift",
"Classes/Network/CloudManager.swift",
"Classes/Network/CloudManagerImpl.swift",
"Classes/Network/URLRequestBuilder.swift",
"Classes/NotificationProtocol.swift",
"Classes/TagProtocols.swift",
"Protobuf/jacquard.pb.swift",
"Protobuf/publicSdk.pb.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.