Build Information
Successful build of JacquardSDK, reference v1.0.0 (7db0fe
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 11:11:21 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
325 | }
326 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:342:11: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
340 | if case .failure(let error) = completion {
341 | self.marshalQueue.async {
342 | self.handleEvent(.firmwareUpdateError(error))
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
343 | }
344 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:11: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:36: warning: capture of 'tagUpdate' with non-sendable type 'DFUUpdateInfo' in a '@Sendable' closure
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'tagUpdate' with non-sendable type 'DFUUpdateInfo' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Model/DFUUpdateInfo.swift:30:15: note: consider making struct 'DFUUpdateInfo' conform to the 'Sendable' protocol
28 |
29 | /// Provides firmware update related information.
30 | public struct DFUUpdateInfo: Codable {
| `- note: consider making struct 'DFUUpdateInfo' conform to the 'Sendable' protocol
31 |
32 | /// Date on which firmware is updated.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:52: warning: capture of 'tag' with non-sendable type 'any ConnectedTag' in a '@Sendable' closure
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'tag' with non-sendable type 'any ConnectedTag' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/TagProtocols.swift:91:17: note: protocol 'ConnectedTag' does not conform to the 'Sendable' protocol
89 |
90 | /// The tag type for connected tags.
91 | public protocol ConnectedTag: JacquardTag {
| `- note: protocol 'ConnectedTag' does not conform to the 'Sendable' protocol
92 | /// Name of the tag.
93 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:362:18: warning: capture of 'state' with non-sendable type 'FirmwareUpdateState' in a '@Sendable' closure
360 | guard let self = self else { return }
361 | self.marshalQueue.async {
362 | switch state {
| `- warning: capture of 'state' with non-sendable type 'FirmwareUpdateState' in a '@Sendable' closure
363 | case .transferring(let progress):
364 | self.handleEvent(.firmwareTransferring(progress))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/FirmwareUpdateAPI/FirmwareUpdateManager.swift:73:13: note: consider making enum 'FirmwareUpdateState' conform to the 'Sendable' protocol
71 |
72 | /// Information about the current state of firmware updates.
73 | public enum FirmwareUpdateState {
| `- note: consider making enum 'FirmwareUpdateState' conform to the 'Sendable' protocol
74 |
75 | /// When we start firmware update, this will be the initial state by default.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:364:13: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
362 | switch state {
363 | case .transferring(let progress):
364 | self.handleEvent(.firmwareTransferring(progress))
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
365 | case .transferred:
366 | self.handleEvent(.firmwareTransferCompleted)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:21:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagPairingStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
19 | class TagPairingStateMachine: NSObject {
20 |
21 | static let initialState: State = .disconnected
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagPairingStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static let requiredNotifyingCharacteristics = [
23 | UUID(JacquardServices.responseUUID),
:
39 | }
40 |
41 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
42 | case preparingToConnect
43 | case disconnected
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:92:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
90 | func didConnect(peripheral: Peripheral) {
91 | marshalQueue.async {
92 | self.handleEvent(.didConnect(peripheral))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:92:36: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
90 | func didConnect(peripheral: Peripheral) {
91 | marshalQueue.async {
92 | self.handleEvent(.didConnect(peripheral))
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:98:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
96 | func didFailToConnect(peripheral: Peripheral, error: Error) {
97 | marshalQueue.async {
98 | self.handleEvent(.failedToConnect(peripheral, error))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:98:41: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
96 | func didFailToConnect(peripheral: Peripheral, error: Error) {
97 | marshalQueue.async {
98 | self.handleEvent(.failedToConnect(peripheral, error))
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:109:25: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
107 | func peripheral(_ peripheral: Peripheral, didDiscoverServices error: Error?) {
108 | marshalQueue.async {
109 | if let services = peripheral.services {
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
110 | self.handleEvent(.didDiscoverServices(services))
111 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:110:9: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
108 | marshalQueue.async {
109 | if let services = peripheral.services {
110 | self.handleEvent(.didDiscoverServices(services))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
111 | } else {
112 | let error = error ?? TagConnectionError.unknownCoreBluetoothError
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:122:22: warning: capture of 'service' with non-sendable type 'any Service' in a '@Sendable' closure
120 | ) {
121 | marshalQueue.async {
122 | if let chars = service.characteristics {
| `- warning: capture of 'service' with non-sendable type 'any Service' in a '@Sendable' closure
123 | self.handleEvent(.didDiscoverCharacteristics(service, chars))
124 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:68:10: note: protocol 'Service' does not conform to the 'Sendable' protocol
66 | }
67 |
68 | protocol Service {
| `- note: protocol 'Service' does not conform to the 'Sendable' protocol
69 | var uuid: CBUUID { get }
70 | var characteristics: [CBCharacteristic]? { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:123:9: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
121 | marshalQueue.async {
122 | if let chars = service.characteristics {
123 | self.handleEvent(.didDiscoverCharacteristics(service, chars))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
124 | } else {
125 | let error = error ?? TagConnectionError.unknownCoreBluetoothError
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:136:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
134 | ) {
135 | marshalQueue.async {
136 | self.handleEvent(.didUpdateNotificationState(characteristic, error))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:136:52: warning: capture of 'characteristic' with non-sendable type 'any Characteristic' in a '@Sendable' closure
134 | ) {
135 | marshalQueue.async {
136 | self.handleEvent(.didUpdateNotificationState(characteristic, error))
| `- warning: capture of 'characteristic' with non-sendable type 'any Characteristic' in a '@Sendable' closure
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:40:10: note: protocol 'Characteristic' does not conform to the 'Sendable' protocol
38 | }
39 |
40 | protocol Characteristic {
| `- note: protocol 'Characteristic' does not conform to the 'Sendable' protocol
41 | var uuid: CBUUID { get }
42 | var value: Data? { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:133:7: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
131 | func startWriting() {
132 | marshalQueue.async {
133 | self.handleEvent(.checkStatus)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:142:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
140 | case .preparingForWrite, .writing(_):
141 | marshalQueue.async {
142 | self.handleEvent(.stopWriting)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
143 | }
144 | default:
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:172:11: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
170 | self.marshalQueue.async {
171 | jqLogger.error("Error: \(error) during status request.")
172 | self.handleEvent(.didReceiveStatusCheckError(error))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
173 | }
174 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:180:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
178 | }
179 | self.marshalQueue.async {
180 | self.processStatusResponse(response: response)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
181 | }
182 | }.addTo(&observations)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:236:35: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
234 | case .failure(let error):
235 | self.marshalQueue.async {
236 | jqLogger.error("Error \(self.state) preparing for image transfer.")
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
237 | self.handleEvent(.didReceivePrepareError(error))
238 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:236:35: warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
234 | case .failure(let error):
235 | self.marshalQueue.async {
236 | jqLogger.error("Error \(self.state) preparing for image transfer.")
| `- warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
237 | self.handleEvent(.didReceivePrepareError(error))
238 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:246:57: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
244 | self.marshalQueue.async {
245 | jqLogger.info(
246 | "Prepare response OK; starting transfer for \(self.context.vendorID)-\(self.context.productID)"
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
247 | )
248 | self.handleEvent(.startWriting)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:246:57: warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
244 | self.marshalQueue.async {
245 | jqLogger.info(
246 | "Prepare response OK; starting transfer for \(self.context.vendorID)-\(self.context.productID)"
| `- warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
247 | )
248 | self.handleEvent(.startWriting)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:272:11: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
270 | case .failure(let error):
271 | self.marshalQueue.async {
272 | self.processWriteResponse(result: .failure(error))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:280:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
278 | }
279 | self.marshalQueue.async {
280 | self.processWriteResponse(result: .success(response))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
281 | }
282 | }.addTo(&observations)
[168/185] Compiling JacquardSDK CRC16.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:25:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'ProtocolInitializationStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let initialState: State = .paired
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'ProtocolInitializationStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | // This will need to be refactored when we support > 1 protocol.
27 | static let supportedProtocol = ProtocolSpec.version2
:
44 | }
45 |
46 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
47 | case paired
48 | case helloSent
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:110:7: warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class ProtocolInitializationStateMachine {
| `- note: class 'ProtocolInitializationStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
:
108 |
109 | marshalQueue.async {
110 | self.handleEvent(.startNegotiation)
| `- warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:124:30: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
122 |
123 | do {
124 | let response = try Google_Jacquard_Protocol_Response(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
125 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
126 | self.handleEvent(.didReceiveResponse(response))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:126:11: warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class ProtocolInitializationStateMachine {
| `- note: class 'ProtocolInitializationStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
:
124 | let response = try Google_Jacquard_Protocol_Response(
125 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
126 | self.handleEvent(.didReceiveResponse(response))
| `- warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
127 | } catch (let error) {
128 | self.handleEvent(.didReceiveResponseError(error))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:215:7: warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class ProtocolInitializationStateMachine {
| `- note: class 'ProtocolInitializationStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
:
213 |
214 | marshalQueue.async {
215 | self.handleEvent(.createdConnectedTagInstance(connectedTag))
| `- warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:215:53: warning: capture of 'connectedTag' with non-sendable type 'ConnectedTagModel' in a '@Sendable' closure
213 |
214 | marshalQueue.async {
215 | self.handleEvent(.createdConnectedTagInstance(connectedTag))
| `- warning: capture of 'connectedTag' with non-sendable type 'ConnectedTagModel' in a '@Sendable' closure
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/TagAndComponent/ConnectedTagModel.swift:19:7: note: class 'ConnectedTagModel' does not conform to the 'Sendable' protocol
17 | import SwiftProtobuf
18 |
19 | class ConnectedTagModel: ConnectedTag, SubscribableTag {
| `- note: class 'ConnectedTagModel' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:20:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagConnectionStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
18 | class TagConnectionStateMachine {
19 |
20 | static let initialState: State = .preparingToConnect
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagConnectionStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | private static let totalProgressSteps = 14
:
46 | }
47 |
48 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
49 | case preparingToConnect
50 | case connecting(Int, Int)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:139:7: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
137 | marshalQueue.async {
138 |
139 | self.context.currentProgress = 0
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
140 | // Prepare the pairing child state machine.
141 | let pairingStateMachine = TagPairingStateMachine(peripheral: self.peripheral)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:152:43: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
150 |
151 | case .disconnected:
152 | if case .preparingToConnect = self.state {
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
153 | break
154 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:191:7: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
189 | func disconnect(_ disconnectMethod: @escaping (Peripheral, [String: Any]?) -> Void) {
190 | marshalQueue.async {
191 | self.context.isUserDisconnect = true
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
192 | disconnectMethod(self.peripheral, nil)
193 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:192:7: warning: capture of 'disconnectMethod' with non-sendable type '(any Peripheral, [String : Any]?) -> Void' in a '@Sendable' closure
190 | marshalQueue.async {
191 | self.context.isUserDisconnect = true
192 | disconnectMethod(self.peripheral, nil)
| |- warning: capture of 'disconnectMethod' with non-sendable type '(any Peripheral, [String : Any]?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:221:21: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
219 | // Prepare the pairing child state machine.
220 | let initializationStateMachine = ProtocolInitializationStateMachine(
221 | peripheral: self.peripheral,
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
222 | characteristics: characteristics,
223 | userPublishQueue: self.context.userPublishQueue,
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:222:26: warning: capture of 'characteristics' with non-sendable type 'RequiredCharacteristics' in a '@Sendable' closure
220 | let initializationStateMachine = ProtocolInitializationStateMachine(
221 | peripheral: self.peripheral,
222 | characteristics: characteristics,
| `- warning: capture of 'characteristics' with non-sendable type 'RequiredCharacteristics' in a '@Sendable' closure
223 | userPublishQueue: self.context.userPublishQueue,
224 | sdkConfig: self.sdkConfig
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:19:8: note: consider making struct 'RequiredCharacteristics' conform to the 'Sendable' protocol
17 | import Foundation
18 |
19 | struct RequiredCharacteristics {
| `- note: consider making struct 'RequiredCharacteristics' conform to the 'Sendable' protocol
20 | var commandCharacteristic: Characteristic
21 | var responseCharacteristic: Characteristic
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:245:13: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
243 |
244 | case .helloSent, .beginSent, .componentInfoSent, .creatingTagInstance:
245 | self.handleEvent(.initializationProgress)
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
246 |
247 | case .tagInitialized(let tag):
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:285:7: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
283 | private func invalidateConnectionTimer() {
284 | marshalQueue.async {
285 | self.connectionTimer?.cancel()
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
286 | self.connectionTimer = nil
287 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:297:39: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
295 | func didConnect(peripheral: Peripheral) {
296 | marshalQueue.async {
297 | guard let pairingStateMachine = self.context.childStateMachine.pairingStateMachine else {
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
298 | assertionFailure("Unexpected didConnect method without an active pairing state machine")
299 | self.handleEvent(.connectionError(TagConnectionError.internalError))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:302:50: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
300 | return
301 | }
302 | pairingStateMachine.didConnect(peripheral: peripheral)
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
303 | }
304 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:310:9: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
308 | // Update user disconnect when bluetooth state updated to powerOff.
309 | if let error = error as? TagConnectionError, case .bluetoothPowerOff = error {
310 | self.context.isUserDisconnect = true
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
311 | }
312 | self.handleEvent(.didDisconnect(error))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:318:39: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
316 | func didFailToConnect(peripheral: Peripheral, error: Error) {
317 | marshalQueue.async {
318 | guard let pairingStateMachine = self.context.childStateMachine.pairingStateMachine else {
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
319 | assertionFailure(
320 | "Unexpected didFailToConnect method without an active pairing state machine")
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:324:56: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
322 | return
323 | }
324 | pairingStateMachine.didFailToConnect(peripheral: peripheral, error: error)
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
325 | }
326 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:342:11: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
340 | if case .failure(let error) = completion {
341 | self.marshalQueue.async {
342 | self.handleEvent(.firmwareUpdateError(error))
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
343 | }
344 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:11: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:36: warning: capture of 'tagUpdate' with non-sendable type 'DFUUpdateInfo' in a '@Sendable' closure
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'tagUpdate' with non-sendable type 'DFUUpdateInfo' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Model/DFUUpdateInfo.swift:30:15: note: consider making struct 'DFUUpdateInfo' conform to the 'Sendable' protocol
28 |
29 | /// Provides firmware update related information.
30 | public struct DFUUpdateInfo: Codable {
| `- note: consider making struct 'DFUUpdateInfo' conform to the 'Sendable' protocol
31 |
32 | /// Date on which firmware is updated.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:52: warning: capture of 'tag' with non-sendable type 'any ConnectedTag' in a '@Sendable' closure
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'tag' with non-sendable type 'any ConnectedTag' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/TagProtocols.swift:91:17: note: protocol 'ConnectedTag' does not conform to the 'Sendable' protocol
89 |
90 | /// The tag type for connected tags.
91 | public protocol ConnectedTag: JacquardTag {
| `- note: protocol 'ConnectedTag' does not conform to the 'Sendable' protocol
92 | /// Name of the tag.
93 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:362:18: warning: capture of 'state' with non-sendable type 'FirmwareUpdateState' in a '@Sendable' closure
360 | guard let self = self else { return }
361 | self.marshalQueue.async {
362 | switch state {
| `- warning: capture of 'state' with non-sendable type 'FirmwareUpdateState' in a '@Sendable' closure
363 | case .transferring(let progress):
364 | self.handleEvent(.firmwareTransferring(progress))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/FirmwareUpdateAPI/FirmwareUpdateManager.swift:73:13: note: consider making enum 'FirmwareUpdateState' conform to the 'Sendable' protocol
71 |
72 | /// Information about the current state of firmware updates.
73 | public enum FirmwareUpdateState {
| `- note: consider making enum 'FirmwareUpdateState' conform to the 'Sendable' protocol
74 |
75 | /// When we start firmware update, this will be the initial state by default.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:364:13: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
362 | switch state {
363 | case .transferring(let progress):
364 | self.handleEvent(.firmwareTransferring(progress))
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
365 | case .transferred:
366 | self.handleEvent(.firmwareTransferCompleted)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:21:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagPairingStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
19 | class TagPairingStateMachine: NSObject {
20 |
21 | static let initialState: State = .disconnected
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagPairingStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static let requiredNotifyingCharacteristics = [
23 | UUID(JacquardServices.responseUUID),
:
39 | }
40 |
41 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
42 | case preparingToConnect
43 | case disconnected
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:92:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
90 | func didConnect(peripheral: Peripheral) {
91 | marshalQueue.async {
92 | self.handleEvent(.didConnect(peripheral))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:92:36: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
90 | func didConnect(peripheral: Peripheral) {
91 | marshalQueue.async {
92 | self.handleEvent(.didConnect(peripheral))
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:98:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
96 | func didFailToConnect(peripheral: Peripheral, error: Error) {
97 | marshalQueue.async {
98 | self.handleEvent(.failedToConnect(peripheral, error))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:98:41: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
96 | func didFailToConnect(peripheral: Peripheral, error: Error) {
97 | marshalQueue.async {
98 | self.handleEvent(.failedToConnect(peripheral, error))
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:109:25: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
107 | func peripheral(_ peripheral: Peripheral, didDiscoverServices error: Error?) {
108 | marshalQueue.async {
109 | if let services = peripheral.services {
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
110 | self.handleEvent(.didDiscoverServices(services))
111 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:110:9: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
108 | marshalQueue.async {
109 | if let services = peripheral.services {
110 | self.handleEvent(.didDiscoverServices(services))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
111 | } else {
112 | let error = error ?? TagConnectionError.unknownCoreBluetoothError
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:122:22: warning: capture of 'service' with non-sendable type 'any Service' in a '@Sendable' closure
120 | ) {
121 | marshalQueue.async {
122 | if let chars = service.characteristics {
| `- warning: capture of 'service' with non-sendable type 'any Service' in a '@Sendable' closure
123 | self.handleEvent(.didDiscoverCharacteristics(service, chars))
124 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:68:10: note: protocol 'Service' does not conform to the 'Sendable' protocol
66 | }
67 |
68 | protocol Service {
| `- note: protocol 'Service' does not conform to the 'Sendable' protocol
69 | var uuid: CBUUID { get }
70 | var characteristics: [CBCharacteristic]? { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:123:9: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
121 | marshalQueue.async {
122 | if let chars = service.characteristics {
123 | self.handleEvent(.didDiscoverCharacteristics(service, chars))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
124 | } else {
125 | let error = error ?? TagConnectionError.unknownCoreBluetoothError
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:136:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
134 | ) {
135 | marshalQueue.async {
136 | self.handleEvent(.didUpdateNotificationState(characteristic, error))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:136:52: warning: capture of 'characteristic' with non-sendable type 'any Characteristic' in a '@Sendable' closure
134 | ) {
135 | marshalQueue.async {
136 | self.handleEvent(.didUpdateNotificationState(characteristic, error))
| `- warning: capture of 'characteristic' with non-sendable type 'any Characteristic' in a '@Sendable' closure
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:40:10: note: protocol 'Characteristic' does not conform to the 'Sendable' protocol
38 | }
39 |
40 | protocol Characteristic {
| `- note: protocol 'Characteristic' does not conform to the 'Sendable' protocol
41 | var uuid: CBUUID { get }
42 | var value: Data? { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:133:7: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
131 | func startWriting() {
132 | marshalQueue.async {
133 | self.handleEvent(.checkStatus)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:142:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
140 | case .preparingForWrite, .writing(_):
141 | marshalQueue.async {
142 | self.handleEvent(.stopWriting)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
143 | }
144 | default:
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:172:11: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
170 | self.marshalQueue.async {
171 | jqLogger.error("Error: \(error) during status request.")
172 | self.handleEvent(.didReceiveStatusCheckError(error))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
173 | }
174 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:180:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
178 | }
179 | self.marshalQueue.async {
180 | self.processStatusResponse(response: response)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
181 | }
182 | }.addTo(&observations)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:236:35: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
234 | case .failure(let error):
235 | self.marshalQueue.async {
236 | jqLogger.error("Error \(self.state) preparing for image transfer.")
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
237 | self.handleEvent(.didReceivePrepareError(error))
238 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:236:35: warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
234 | case .failure(let error):
235 | self.marshalQueue.async {
236 | jqLogger.error("Error \(self.state) preparing for image transfer.")
| `- warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
237 | self.handleEvent(.didReceivePrepareError(error))
238 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:246:57: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
244 | self.marshalQueue.async {
245 | jqLogger.info(
246 | "Prepare response OK; starting transfer for \(self.context.vendorID)-\(self.context.productID)"
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
247 | )
248 | self.handleEvent(.startWriting)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:246:57: warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
244 | self.marshalQueue.async {
245 | jqLogger.info(
246 | "Prepare response OK; starting transfer for \(self.context.vendorID)-\(self.context.productID)"
| `- warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
247 | )
248 | self.handleEvent(.startWriting)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:272:11: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
270 | case .failure(let error):
271 | self.marshalQueue.async {
272 | self.processWriteResponse(result: .failure(error))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:280:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
278 | }
279 | self.marshalQueue.async {
280 | self.processWriteResponse(result: .success(response))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
281 | }
282 | }.addTo(&observations)
[169/185] Compiling JacquardSDK FirmwareImageWriterStateMachine.swift
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:25:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'ProtocolInitializationStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
23 | }
24 |
25 | static let initialState: State = .paired
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'ProtocolInitializationStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | // This will need to be refactored when we support > 1 protocol.
27 | static let supportedProtocol = ProtocolSpec.version2
:
44 | }
45 |
46 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
47 | case paired
48 | case helloSent
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:110:7: warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class ProtocolInitializationStateMachine {
| `- note: class 'ProtocolInitializationStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
:
108 |
109 | marshalQueue.async {
110 | self.handleEvent(.startNegotiation)
| `- warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:124:30: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
122 |
123 | do {
124 | let response = try Google_Jacquard_Protocol_Response(
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
125 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
126 | self.handleEvent(.didReceiveResponse(response))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:126:11: warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class ProtocolInitializationStateMachine {
| `- note: class 'ProtocolInitializationStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
:
124 | let response = try Google_Jacquard_Protocol_Response(
125 | serializedData: packet, extensions: Google_Jacquard_Protocol_Jacquard_Extensions)
126 | self.handleEvent(.didReceiveResponse(response))
| `- warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
127 | } catch (let error) {
128 | self.handleEvent(.didReceiveResponseError(error))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:215:7: warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class ProtocolInitializationStateMachine {
| `- note: class 'ProtocolInitializationStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
:
213 |
214 | marshalQueue.async {
215 | self.handleEvent(.createdConnectedTagInstance(connectedTag))
| `- warning: capture of 'self' with non-sendable type 'ProtocolInitializationStateMachine' in a '@Sendable' closure
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/ProtocolInitializationStateMachine.swift:215:53: warning: capture of 'connectedTag' with non-sendable type 'ConnectedTagModel' in a '@Sendable' closure
213 |
214 | marshalQueue.async {
215 | self.handleEvent(.createdConnectedTagInstance(connectedTag))
| `- warning: capture of 'connectedTag' with non-sendable type 'ConnectedTagModel' in a '@Sendable' closure
216 | }
217 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/TagAndComponent/ConnectedTagModel.swift:19:7: note: class 'ConnectedTagModel' does not conform to the 'Sendable' protocol
17 | import SwiftProtobuf
18 |
19 | class ConnectedTagModel: ConnectedTag, SubscribableTag {
| `- note: class 'ConnectedTagModel' does not conform to the 'Sendable' protocol
20 |
21 | private enum Constants {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:20:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagConnectionStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
18 | class TagConnectionStateMachine {
19 |
20 | static let initialState: State = .preparingToConnect
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagConnectionStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | private static let totalProgressSteps = 14
:
46 | }
47 |
48 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
49 | case preparingToConnect
50 | case connecting(Int, Int)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:139:7: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
137 | marshalQueue.async {
138 |
139 | self.context.currentProgress = 0
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
140 | // Prepare the pairing child state machine.
141 | let pairingStateMachine = TagPairingStateMachine(peripheral: self.peripheral)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:152:43: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
150 |
151 | case .disconnected:
152 | if case .preparingToConnect = self.state {
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
153 | break
154 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:191:7: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
189 | func disconnect(_ disconnectMethod: @escaping (Peripheral, [String: Any]?) -> Void) {
190 | marshalQueue.async {
191 | self.context.isUserDisconnect = true
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
192 | disconnectMethod(self.peripheral, nil)
193 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:192:7: warning: capture of 'disconnectMethod' with non-sendable type '(any Peripheral, [String : Any]?) -> Void' in a '@Sendable' closure
190 | marshalQueue.async {
191 | self.context.isUserDisconnect = true
192 | disconnectMethod(self.peripheral, nil)
| |- warning: capture of 'disconnectMethod' with non-sendable type '(any Peripheral, [String : Any]?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:221:21: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
219 | // Prepare the pairing child state machine.
220 | let initializationStateMachine = ProtocolInitializationStateMachine(
221 | peripheral: self.peripheral,
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
222 | characteristics: characteristics,
223 | userPublishQueue: self.context.userPublishQueue,
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:222:26: warning: capture of 'characteristics' with non-sendable type 'RequiredCharacteristics' in a '@Sendable' closure
220 | let initializationStateMachine = ProtocolInitializationStateMachine(
221 | peripheral: self.peripheral,
222 | characteristics: characteristics,
| `- warning: capture of 'characteristics' with non-sendable type 'RequiredCharacteristics' in a '@Sendable' closure
223 | userPublishQueue: self.context.userPublishQueue,
224 | sdkConfig: self.sdkConfig
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/TransportV2Implementation.swift:19:8: note: consider making struct 'RequiredCharacteristics' conform to the 'Sendable' protocol
17 | import Foundation
18 |
19 | struct RequiredCharacteristics {
| `- note: consider making struct 'RequiredCharacteristics' conform to the 'Sendable' protocol
20 | var commandCharacteristic: Characteristic
21 | var responseCharacteristic: Characteristic
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:245:13: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
243 |
244 | case .helloSent, .beginSent, .componentInfoSent, .creatingTagInstance:
245 | self.handleEvent(.initializationProgress)
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in an isolated closure; this is an error in the Swift 6 language mode
246 |
247 | case .tagInitialized(let tag):
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:285:7: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
283 | private func invalidateConnectionTimer() {
284 | marshalQueue.async {
285 | self.connectionTimer?.cancel()
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
286 | self.connectionTimer = nil
287 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:297:39: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
295 | func didConnect(peripheral: Peripheral) {
296 | marshalQueue.async {
297 | guard let pairingStateMachine = self.context.childStateMachine.pairingStateMachine else {
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
298 | assertionFailure("Unexpected didConnect method without an active pairing state machine")
299 | self.handleEvent(.connectionError(TagConnectionError.internalError))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:302:50: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
300 | return
301 | }
302 | pairingStateMachine.didConnect(peripheral: peripheral)
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
303 | }
304 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:310:9: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
308 | // Update user disconnect when bluetooth state updated to powerOff.
309 | if let error = error as? TagConnectionError, case .bluetoothPowerOff = error {
310 | self.context.isUserDisconnect = true
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
311 | }
312 | self.handleEvent(.didDisconnect(error))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:318:39: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
316 | func didFailToConnect(peripheral: Peripheral, error: Error) {
317 | marshalQueue.async {
318 | guard let pairingStateMachine = self.context.childStateMachine.pairingStateMachine else {
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
319 | assertionFailure(
320 | "Unexpected didFailToConnect method without an active pairing state machine")
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:324:56: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
322 | return
323 | }
324 | pairingStateMachine.didFailToConnect(peripheral: peripheral, error: error)
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
325 | }
326 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:342:11: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
340 | if case .failure(let error) = completion {
341 | self.marshalQueue.async {
342 | self.handleEvent(.firmwareUpdateError(error))
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
343 | }
344 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:11: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:36: warning: capture of 'tagUpdate' with non-sendable type 'DFUUpdateInfo' in a '@Sendable' closure
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'tagUpdate' with non-sendable type 'DFUUpdateInfo' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Model/DFUUpdateInfo.swift:30:15: note: consider making struct 'DFUUpdateInfo' conform to the 'Sendable' protocol
28 |
29 | /// Provides firmware update related information.
30 | public struct DFUUpdateInfo: Codable {
| `- note: consider making struct 'DFUUpdateInfo' conform to the 'Sendable' protocol
31 |
32 | /// Date on which firmware is updated.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:351:52: warning: capture of 'tag' with non-sendable type 'any ConnectedTag' in a '@Sendable' closure
349 | ) {
350 | self.context.userPublishQueue.async {
351 | self.applyFirmwareUpdate(tagUpdate, tag: tag)
| `- warning: capture of 'tag' with non-sendable type 'any ConnectedTag' in a '@Sendable' closure
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/TagProtocols.swift:91:17: note: protocol 'ConnectedTag' does not conform to the 'Sendable' protocol
89 |
90 | /// The tag type for connected tags.
91 | public protocol ConnectedTag: JacquardTag {
| `- note: protocol 'ConnectedTag' does not conform to the 'Sendable' protocol
92 | /// Name of the tag.
93 | var name: String { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:362:18: warning: capture of 'state' with non-sendable type 'FirmwareUpdateState' in a '@Sendable' closure
360 | guard let self = self else { return }
361 | self.marshalQueue.async {
362 | switch state {
| `- warning: capture of 'state' with non-sendable type 'FirmwareUpdateState' in a '@Sendable' closure
363 | case .transferring(let progress):
364 | self.handleEvent(.firmwareTransferring(progress))
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/FirmwareUpdateAPI/FirmwareUpdateManager.swift:73:13: note: consider making enum 'FirmwareUpdateState' conform to the 'Sendable' protocol
71 |
72 | /// Information about the current state of firmware updates.
73 | public enum FirmwareUpdateState {
| `- note: consider making enum 'FirmwareUpdateState' conform to the 'Sendable' protocol
74 |
75 | /// When we start firmware update, this will be the initial state by default.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagConnectionStateMachine.swift:364:13: warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
16 | import Foundation
17 |
18 | class TagConnectionStateMachine {
| `- note: class 'TagConnectionStateMachine' does not conform to the 'Sendable' protocol
19 |
20 | static let initialState: State = .preparingToConnect
:
362 | switch state {
363 | case .transferring(let progress):
364 | self.handleEvent(.firmwareTransferring(progress))
| `- warning: capture of 'self' with non-sendable type 'TagConnectionStateMachine' in a '@Sendable' closure
365 | case .transferred:
366 | self.handleEvent(.firmwareTransferCompleted)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:21:14: warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagPairingStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
19 | class TagPairingStateMachine: NSObject {
20 |
21 | static let initialState: State = .disconnected
| |- warning: static property 'initialState' is not concurrency-safe because non-'Sendable' type 'TagPairingStateMachine.State' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'initialState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | static let requiredNotifyingCharacteristics = [
23 | UUID(JacquardServices.responseUUID),
:
39 | }
40 |
41 | enum State {
| `- note: consider making enum 'State' conform to the 'Sendable' protocol
42 | case preparingToConnect
43 | case disconnected
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:92:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
90 | func didConnect(peripheral: Peripheral) {
91 | marshalQueue.async {
92 | self.handleEvent(.didConnect(peripheral))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:92:36: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
90 | func didConnect(peripheral: Peripheral) {
91 | marshalQueue.async {
92 | self.handleEvent(.didConnect(peripheral))
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:98:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
96 | func didFailToConnect(peripheral: Peripheral, error: Error) {
97 | marshalQueue.async {
98 | self.handleEvent(.failedToConnect(peripheral, error))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:98:41: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
96 | func didFailToConnect(peripheral: Peripheral, error: Error) {
97 | marshalQueue.async {
98 | self.handleEvent(.failedToConnect(peripheral, error))
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
99 | }
100 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:109:25: warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
107 | func peripheral(_ peripheral: Peripheral, didDiscoverServices error: Error?) {
108 | marshalQueue.async {
109 | if let services = peripheral.services {
| `- warning: capture of 'peripheral' with non-sendable type 'any Peripheral' in a '@Sendable' closure
110 | self.handleEvent(.didDiscoverServices(services))
111 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:162:10: note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
160 |
161 | /// Testable protocol for `CBPeripheral` access.
162 | protocol Peripheral {
| `- note: protocol 'Peripheral' does not conform to the 'Sendable' protocol
163 |
164 | /// Peripheral name.
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:110:9: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
108 | marshalQueue.async {
109 | if let services = peripheral.services {
110 | self.handleEvent(.didDiscoverServices(services))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
111 | } else {
112 | let error = error ?? TagConnectionError.unknownCoreBluetoothError
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:122:22: warning: capture of 'service' with non-sendable type 'any Service' in a '@Sendable' closure
120 | ) {
121 | marshalQueue.async {
122 | if let chars = service.characteristics {
| `- warning: capture of 'service' with non-sendable type 'any Service' in a '@Sendable' closure
123 | self.handleEvent(.didDiscoverCharacteristics(service, chars))
124 | } else {
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:68:10: note: protocol 'Service' does not conform to the 'Sendable' protocol
66 | }
67 |
68 | protocol Service {
| `- note: protocol 'Service' does not conform to the 'Sendable' protocol
69 | var uuid: CBUUID { get }
70 | var characteristics: [CBCharacteristic]? { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:123:9: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
121 | marshalQueue.async {
122 | if let chars = service.characteristics {
123 | self.handleEvent(.didDiscoverCharacteristics(service, chars))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
124 | } else {
125 | let error = error ?? TagConnectionError.unknownCoreBluetoothError
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:136:7: warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
17 | import Foundation
18 |
19 | class TagPairingStateMachine: NSObject {
| `- note: class 'TagPairingStateMachine' does not conform to the 'Sendable' protocol
20 |
21 | static let initialState: State = .disconnected
:
134 | ) {
135 | marshalQueue.async {
136 | self.handleEvent(.didUpdateNotificationState(characteristic, error))
| `- warning: capture of 'self' with non-sendable type 'TagPairingStateMachine' in a '@Sendable' closure
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Connection/TagPairingStateMachine.swift:136:52: warning: capture of 'characteristic' with non-sendable type 'any Characteristic' in a '@Sendable' closure
134 | ) {
135 | marshalQueue.async {
136 | self.handleEvent(.didUpdateNotificationState(characteristic, error))
| `- warning: capture of 'characteristic' with non-sendable type 'any Characteristic' in a '@Sendable' closure
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/Transport/Peripheral.swift:40:10: note: protocol 'Characteristic' does not conform to the 'Sendable' protocol
38 | }
39 |
40 | protocol Characteristic {
| `- note: protocol 'Characteristic' does not conform to the 'Sendable' protocol
41 | var uuid: CBUUID { get }
42 | var value: Data? { get }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:133:7: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
131 | func startWriting() {
132 | marshalQueue.async {
133 | self.handleEvent(.checkStatus)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
134 | }
135 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:142:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
140 | case .preparingForWrite, .writing(_):
141 | marshalQueue.async {
142 | self.handleEvent(.stopWriting)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
143 | }
144 | default:
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:172:11: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
170 | self.marshalQueue.async {
171 | jqLogger.error("Error: \(error) during status request.")
172 | self.handleEvent(.didReceiveStatusCheckError(error))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
173 | }
174 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:180:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
178 | }
179 | self.marshalQueue.async {
180 | self.processStatusResponse(response: response)
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
181 | }
182 | }.addTo(&observations)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:236:35: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
234 | case .failure(let error):
235 | self.marshalQueue.async {
236 | jqLogger.error("Error \(self.state) preparing for image transfer.")
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
237 | self.handleEvent(.didReceivePrepareError(error))
238 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:236:35: warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
234 | case .failure(let error):
235 | self.marshalQueue.async {
236 | jqLogger.error("Error \(self.state) preparing for image transfer.")
| `- warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
237 | self.handleEvent(.didReceivePrepareError(error))
238 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:246:57: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
244 | self.marshalQueue.async {
245 | jqLogger.info(
246 | "Prepare response OK; starting transfer for \(self.context.vendorID)-\(self.context.productID)"
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
247 | )
248 | self.handleEvent(.startWriting)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:246:57: warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
244 | self.marshalQueue.async {
245 | jqLogger.info(
246 | "Prepare response OK; starting transfer for \(self.context.vendorID)-\(self.context.productID)"
| `- warning: implicit capture of 'self' requires that 'FirmwareImageWriterStateMachine' conforms to 'Sendable'; this is an error in the Swift 6 language mode
247 | )
248 | self.handleEvent(.startWriting)
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:272:11: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
270 | case .failure(let error):
271 | self.marshalQueue.async {
272 | self.processWriteResponse(result: .failure(error))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
273 | }
274 | }
/Users/admin/builder/spi-builder-workspace/JacquardSDK/Classes/Internal/FirmwareUpdate/FirmwareImageWriterStateMachine.swift:280:9: warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
22 | }
23 |
24 | class FirmwareImageWriterStateMachine {
| `- note: class 'FirmwareImageWriterStateMachine' does not conform to the 'Sendable' protocol
25 |
26 | static let initialState: State = .idle
:
278 | }
279 | self.marshalQueue.async {
280 | self.processWriteResponse(result: .success(response))
| `- warning: capture of 'self' with non-sendable type 'FirmwareImageWriterStateMachine' in a '@Sendable' closure
281 | }
282 | }.addTo(&observations)
[170/185] Compiling JacquardSDK DisconnectTagInternal.swift
[171/185] Compiling JacquardSDK GesturesInternal.swift
[172/185] Compiling JacquardSDK GetCustomConfigInternal.swift
[173/185] Compiling JacquardSDK IMUConfigCommand.swift
[174/185] Compiling JacquardSDK ModuleCommands.swift
[175/185] Compiling JacquardSDK PlayHapticInternal.swift
[176/185] Compiling JacquardSDK PlayLEDPatternInternal.swift
[177/185] Compiling JacquardSDK SetCustomConfigInternal.swift
[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! (17.11s)
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.