Build Information
Successful build of LittleBlueTooth, reference master (e10591
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 19:17:48 UTC.
Swift 6 data race errors: 44
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:34:10: warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:37:10: warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
| `- warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
39 | case peripheralNotConnectedOrAlreadyDisconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/Peripheral.swift:27:13: note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
25 |
26 | /// The state of the peripheral
27 | public enum PeripheralState {
| `- note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
28 | /// Peripheral is disconnected
29 | case disconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:38:10: warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
| `- warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/Peripheral.swift:57:14: note: class 'Peripheral' does not conform to the 'Sendable' protocol
55 |
56 | /// It represents a peripheral along with its properties
57 | public class Peripheral: Identifiable {
| `- note: class 'Peripheral' does not conform to the 'Sendable' protocol
58 | /// An identifier for the peripheral it is the same as the wrapped `CBPeripheral`
59 | public var id: UUID {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:41:10: warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
41 | case peripheralDisconnected(PeripheralIdentifier,Error?)
| `- warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
42 | case fullfillConditionNotRespected
43 | case deserializationFailedDataOfBounds(start: Int, length: Int, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
[35/63] Compiling LittleBlueToothForTest CentralRestorer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/ReadAndWrite.swift:45:19: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
40 | /// - returns: A publisher with the value you want to read.
41 | /// - important: The type of the value must be conform to `Readable`
42 | public func read<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
43 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
44 |
45 | func read<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
46 | for littleBluetooth: LittleBlueTooth,
47 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/ReadAndWrite.swift:73:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
66 | /// - returns: A publisher with that informs you about eventual error
67 | /// - important: The type of the value must be conform to `Writable`
68 | public func write<T: Writable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
69 | to characteristic: LittleBlueToothCharacteristic,
70 | value: T,
71 | response: Bool = true) -> AnyPublisher<Void, LittleBluetoothError> {
72 |
73 | func write<T: Writable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
74 | for littleBluetooth: LittleBlueTooth,
75 | to characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/ReadAndWrite.swift:100:29: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'W' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/ReadAndWrite.swift:100:42: warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'R' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/ScanAndConnection.swift:132:43: warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
129 | /// - error: An error to be returned if the publisher times out, by default `LittleBluetoothError.connectionTimeout`
130 | /// - Returns: A publisher that terminates if the specified interval elapses with no events received from the upstream publisher.
131 | public func timeout<S>(_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Self.Output, LittleBluetoothError> where S: Scheduler {
| `- note: 'S' previously declared here
132 | func timeout<Upstream: Publisher, S>(upsstream: Upstream,_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Upstream.Output, LittleBluetoothError> where S: Scheduler, Upstream.Failure == LittleBluetoothError {
| `- warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 | return upsstream
134 | .timeout(interval, scheduler: scheduler, options: options, customError: {error})
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:30:10: warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
28 | case serviceNotFound(Error?)
29 | case characteristicNotFound(Error?)
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
| `- warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:32:10: warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
11 | import CoreBluetoothMock
12 | #else
13 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
14 | #endif
15 | /// Collection of errors that can be returned by LittleBlueTooth
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:33:10: warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
35 | case emptyData
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:34:10: warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:37:10: warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
| `- warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
39 | case peripheralNotConnectedOrAlreadyDisconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/Peripheral.swift:27:13: note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
25 |
26 | /// The state of the peripheral
27 | public enum PeripheralState {
| `- note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
28 | /// Peripheral is disconnected
29 | case disconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:38:10: warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
| `- warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/Peripheral.swift:57:14: note: class 'Peripheral' does not conform to the 'Sendable' protocol
55 |
56 | /// It represents a peripheral along with its properties
57 | public class Peripheral: Identifiable {
| `- note: class 'Peripheral' does not conform to the 'Sendable' protocol
58 | /// An identifier for the peripheral it is the same as the wrapped `CBPeripheral`
59 | public var id: UUID {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Error/LittleBlueToothError.swift:41:10: warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
41 | case peripheralDisconnected(PeripheralIdentifier,Error?)
| `- warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
42 | case fullfillConditionNotRespected
43 | case deserializationFailedDataOfBounds(start: Int, length: Int, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
[36/63] Compiling LittleBlueToothForTest JustLittleBlueTooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/Listen.swift:54:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - returns: A shared publisher that will send out values of the type defined by the generic type.
50 | /// - important: The type of the value must be conform to `Readable`
51 | public func startListen<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
52 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
53 |
54 | func startListen<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | for littleBluetooth: LittleBlueTooth,
56 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
[37/63] Compiling LittleBlueToothForTest Listen.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/Listen.swift:54:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - returns: A shared publisher that will send out values of the type defined by the generic type.
50 | /// - important: The type of the value must be conform to `Readable`
51 | public func startListen<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
52 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
53 |
54 | func startListen<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | for littleBluetooth: LittleBlueTooth,
56 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
[38/63] Compiling LittleBlueToothForTest Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/Classes/CustomOperator/Listen.swift:54:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - returns: A shared publisher that will send out values of the type defined by the generic type.
50 | /// - important: The type of the value must be conform to `Readable`
51 | public func startListen<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
52 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
53 |
54 | func startListen<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | for littleBluetooth: LittleBlueTooth,
56 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
[39/63] Compiling LittleBlueToothForTest CBPeripheralProxy.swift
[40/63] Compiling LittleBlueToothForTest ReplaySubject.swift
[41/63] Compiling LittleBlueTooth CoreBluetoothTypeAliases.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:37: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:110: warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
CoreBluetooth.CBPeripheral:2:12: note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBPeripheral : CBPeer {
| `- note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any CBPeripheralDelegate)? { get set }
4 | open var name: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
13 | import CoreBluetoothMock
14 | #else
15 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
16 | #endif
17 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:33: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:103: warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
CoreBluetooth.CBPeripheral:2:12: note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBPeripheral : CBPeer {
| `- note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any CBPeripheralDelegate)? { get set }
4 | open var name: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:29: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:99: warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
CoreBluetooth.CBPeripheral:2:12: note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBPeripheral : CBPeer {
| `- note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any CBPeripheralDelegate)? { get set }
4 | open var name: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:99: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:37: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:110: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:103: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
[42/63] Compiling LittleBlueTooth LittleBlueTooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:37: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:110: warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
CoreBluetooth.CBPeripheral:2:12: note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBPeripheral : CBPeer {
| `- note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any CBPeripheralDelegate)? { get set }
4 | open var name: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
13 | import CoreBluetoothMock
14 | #else
15 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
16 | #endif
17 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:33: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:103: warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
CoreBluetooth.CBPeripheral:2:12: note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBPeripheral : CBPeer {
| `- note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any CBPeripheralDelegate)? { get set }
4 | open var name: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:29: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:99: warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'CBPeripheral' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
CoreBluetooth.CBPeripheral:2:12: note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBPeripheral : CBPeer {
| `- note: class 'CBPeripheral' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any CBPeripheralDelegate)? { get set }
4 | open var name: String? { get }
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:233:99: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:37: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:220:110: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueTooth/LittleBlueTooth.swift:226:103: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:39:23: warning: static property 'Subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | extension OSLog {
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
| |- warning: static property 'Subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Subsystem' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:40:23: warning: static property 'General' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | extension OSLog {
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
40 | public static var General = "General"
| |- warning: static property 'General' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'General' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'General' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:41:23: warning: static property 'CentralManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
| |- warning: static property 'CentralManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CentralManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'CentralManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | public static var Peripheral = "Peripheral"
43 | public static var Restore = "Restore"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:42:23: warning: static property 'Peripheral' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
| |- warning: static property 'Peripheral' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Peripheral' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Peripheral' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | public static var Restore = "Restore"
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:43:23: warning: static property 'Restore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
43 | public static var Restore = "Restore"
| |- warning: static property 'Restore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Restore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Restore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | public static let LittleBT_Log_General = OSLog(subsystem: Subsystem, category: General)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:39:23: warning: static property 'Subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | extension OSLog {
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
| |- warning: static property 'Subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Subsystem' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:40:23: warning: static property 'General' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | extension OSLog {
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
40 | public static var General = "General"
| |- warning: static property 'General' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'General' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'General' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:41:23: warning: static property 'CentralManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
| |- warning: static property 'CentralManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CentralManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'CentralManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | public static var Peripheral = "Peripheral"
43 | public static var Restore = "Restore"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:42:23: warning: static property 'Peripheral' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
| |- warning: static property 'Peripheral' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Peripheral' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Peripheral' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | public static var Restore = "Restore"
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:43:23: warning: static property 'Restore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
43 | public static var Restore = "Restore"
| |- warning: static property 'Restore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Restore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Restore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | public static let LittleBT_Log_General = OSLog(subsystem: Subsystem, category: General)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:45:19: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
40 | /// - returns: A publisher with the value you want to read.
41 | /// - important: The type of the value must be conform to `Readable`
42 | public func read<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
43 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
44 |
45 | func read<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
46 | for littleBluetooth: LittleBlueTooth,
47 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:73:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
66 | /// - returns: A publisher with that informs you about eventual error
67 | /// - important: The type of the value must be conform to `Writable`
68 | public func write<T: Writable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
69 | to characteristic: LittleBlueToothCharacteristic,
70 | value: T,
71 | response: Bool = true) -> AnyPublisher<Void, LittleBluetoothError> {
72 |
73 | func write<T: Writable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
74 | for littleBluetooth: LittleBlueTooth,
75 | to characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:100:29: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'W' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:100:42: warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'R' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ScanAndConnection.swift:132:43: warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
129 | /// - error: An error to be returned if the publisher times out, by default `LittleBluetoothError.connectionTimeout`
130 | /// - Returns: A publisher that terminates if the specified interval elapses with no events received from the upstream publisher.
131 | public func timeout<S>(_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Self.Output, LittleBluetoothError> where S: Scheduler {
| `- note: 'S' previously declared here
132 | func timeout<Upstream: Publisher, S>(upsstream: Upstream,_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Upstream.Output, LittleBluetoothError> where S: Scheduler, Upstream.Failure == LittleBluetoothError {
| `- warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 | return upsstream
134 | .timeout(interval, scheduler: scheduler, options: options, customError: {error})
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:30:10: warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
28 | case serviceNotFound(Error?)
29 | case characteristicNotFound(Error?)
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
| `- warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:32:10: warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:33:10: warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
35 | case emptyData
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:34:10: warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:37:10: warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
| `- warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
39 | case peripheralNotConnectedOrAlreadyDisconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:27:13: note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
25 |
26 | /// The state of the peripheral
27 | public enum PeripheralState {
| `- note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
28 | /// Peripheral is disconnected
29 | case disconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:38:10: warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
| `- warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:57:14: note: class 'Peripheral' does not conform to the 'Sendable' protocol
55 |
56 | /// It represents a peripheral along with its properties
57 | public class Peripheral: Identifiable {
| `- note: class 'Peripheral' does not conform to the 'Sendable' protocol
58 | /// An identifier for the peripheral it is the same as the wrapped `CBPeripheral`
59 | public var id: UUID {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:41:10: warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
41 | case peripheralDisconnected(PeripheralIdentifier,Error?)
| `- warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
42 | case fullfillConditionNotRespected
43 | case deserializationFailedDataOfBounds(start: Int, length: Int, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:45:19: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
40 | /// - returns: A publisher with the value you want to read.
41 | /// - important: The type of the value must be conform to `Readable`
42 | public func read<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
43 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
44 |
45 | func read<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
46 | for littleBluetooth: LittleBlueTooth,
47 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:73:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
66 | /// - returns: A publisher with that informs you about eventual error
67 | /// - important: The type of the value must be conform to `Writable`
68 | public func write<T: Writable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
69 | to characteristic: LittleBlueToothCharacteristic,
70 | value: T,
71 | response: Bool = true) -> AnyPublisher<Void, LittleBluetoothError> {
72 |
73 | func write<T: Writable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
74 | for littleBluetooth: LittleBlueTooth,
75 | to characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:100:29: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'W' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:100:42: warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'R' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ScanAndConnection.swift:132:43: warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
129 | /// - error: An error to be returned if the publisher times out, by default `LittleBluetoothError.connectionTimeout`
130 | /// - Returns: A publisher that terminates if the specified interval elapses with no events received from the upstream publisher.
131 | public func timeout<S>(_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Self.Output, LittleBluetoothError> where S: Scheduler {
| `- note: 'S' previously declared here
132 | func timeout<Upstream: Publisher, S>(upsstream: Upstream,_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Upstream.Output, LittleBluetoothError> where S: Scheduler, Upstream.Failure == LittleBluetoothError {
| `- warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 | return upsstream
134 | .timeout(interval, scheduler: scheduler, options: options, customError: {error})
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:30:10: warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
28 | case serviceNotFound(Error?)
29 | case characteristicNotFound(Error?)
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
| `- warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:32:10: warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:33:10: warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
35 | case emptyData
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:34:10: warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:37:10: warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
| `- warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
39 | case peripheralNotConnectedOrAlreadyDisconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:27:13: note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
25 |
26 | /// The state of the peripheral
27 | public enum PeripheralState {
| `- note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
28 | /// Peripheral is disconnected
29 | case disconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:38:10: warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
| `- warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:57:14: note: class 'Peripheral' does not conform to the 'Sendable' protocol
55 |
56 | /// It represents a peripheral along with its properties
57 | public class Peripheral: Identifiable {
| `- note: class 'Peripheral' does not conform to the 'Sendable' protocol
58 | /// An identifier for the peripheral it is the same as the wrapped `CBPeripheral`
59 | public var id: UUID {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:41:10: warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
41 | case peripheralDisconnected(PeripheralIdentifier,Error?)
| `- warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
42 | case fullfillConditionNotRespected
43 | case deserializationFailedDataOfBounds(start: Int, length: Int, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:45:19: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
40 | /// - returns: A publisher with the value you want to read.
41 | /// - important: The type of the value must be conform to `Readable`
42 | public func read<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
43 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
44 |
45 | func read<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
46 | for littleBluetooth: LittleBlueTooth,
47 | from characteristic: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:73:20: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
66 | /// - returns: A publisher with that informs you about eventual error
67 | /// - important: The type of the value must be conform to `Writable`
68 | public func write<T: Writable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
69 | to characteristic: LittleBlueToothCharacteristic,
70 | value: T,
71 | response: Bool = true) -> AnyPublisher<Void, LittleBluetoothError> {
72 |
73 | func write<T: Writable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
74 | for littleBluetooth: LittleBlueTooth,
75 | to characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:100:29: warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'W' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'W' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ReadAndWrite.swift:100:42: warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | /// - returns: A publisher with that post and error or the response of the write requests.
96 | /// - important: Written value must conform to `Writable`, response must conform to `Readable`
97 | public func writeAndListen<W: Writable, R: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'R' previously declared here
98 | from characteristic: LittleBlueToothCharacteristic,
99 | value: W) -> AnyPublisher<R, LittleBluetoothError> {
100 | func writeAndListen<W: Writable, R: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'R' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
101 | for littleBluetooth: LittleBlueTooth,
102 | from characteristic: LittleBlueToothCharacteristic,
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/ScanAndConnection.swift:132:43: warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
129 | /// - error: An error to be returned if the publisher times out, by default `LittleBluetoothError.connectionTimeout`
130 | /// - Returns: A publisher that terminates if the specified interval elapses with no events received from the upstream publisher.
131 | public func timeout<S>(_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Self.Output, LittleBluetoothError> where S: Scheduler {
| `- note: 'S' previously declared here
132 | func timeout<Upstream: Publisher, S>(upsstream: Upstream,_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, error: LittleBluetoothError = .operationTimeout) -> AnyPublisher<Upstream.Output, LittleBluetoothError> where S: Scheduler, Upstream.Failure == LittleBluetoothError {
| `- warning: generic parameter 'S' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
133 | return upsstream
134 | .timeout(interval, scheduler: scheduler, options: options, customError: {error})
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:30:10: warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
28 | case serviceNotFound(Error?)
29 | case characteristicNotFound(Error?)
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
| `- warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:32:10: warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:33:10: warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
35 | case emptyData
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:34:10: warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:37:10: warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
| `- warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
39 | case peripheralNotConnectedOrAlreadyDisconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:27:13: note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
25 |
26 | /// The state of the peripheral
27 | public enum PeripheralState {
| `- note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
28 | /// Peripheral is disconnected
29 | case disconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:38:10: warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
| `- warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:57:14: note: class 'Peripheral' does not conform to the 'Sendable' protocol
55 |
56 | /// It represents a peripheral along with its properties
57 | public class Peripheral: Identifiable {
| `- note: class 'Peripheral' does not conform to the 'Sendable' protocol
58 | /// An identifier for the peripheral it is the same as the wrapped `CBPeripheral`
59 | public var id: UUID {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:41:10: warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
41 | case peripheralDisconnected(PeripheralIdentifier,Error?)
| `- warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
42 | case fullfillConditionNotRespected
43 | case deserializationFailedDataOfBounds(start: Int, length: Int, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
[48/63] Compiling LittleBlueToothForTest ShareReplay.swift
[49/63] Compiling LittleBlueToothForTest Utilities.swift
[56/65] Emitting module LittleBlueToothForTest
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:30:10: warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
28 | case serviceNotFound(Error?)
29 | case characteristicNotFound(Error?)
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
| `- warning: associated value 'couldNotConnectToPeripheral' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:32:10: warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
30 | case couldNotConnectToPeripheral(PeripheralIdentifier, Error?)
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotReadFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:33:10: warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
31 | case couldNotReadRSSI(Error)
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotWriteFromCharacteristic(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
35 | case emptyData
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:34:10: warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
32 | case couldNotReadFromCharacteristic(characteristic: CBUUID, error: Error)
33 | case couldNotWriteFromCharacteristic(characteristic: CBUUID, error: Error)
34 | case couldNotUpdateListenState(characteristic: CBUUID, error: Error)
| `- warning: associated value 'couldNotUpdateListenState(characteristic:error:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'CBUUID'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:37:10: warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
35 | case emptyData
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
| `- warning: associated value 'peripheralNotConnected(state:)' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralState'; this is an error in the Swift 6 language mode
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
39 | case peripheralNotConnectedOrAlreadyDisconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:27:13: note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
25 |
26 | /// The state of the peripheral
27 | public enum PeripheralState {
| `- note: consider making enum 'PeripheralState' conform to the 'Sendable' protocol
28 | /// Peripheral is disconnected
29 | case disconnected
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:38:10: warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
36 | case couldNotConvertDataToRead(data: Data, type: String)
37 | case peripheralNotConnected(state: PeripheralState)
38 | case peripheralAlreadyConnectedOrConnecting(Peripheral)
| `- warning: associated value 'peripheralAlreadyConnectedOrConnecting' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'Peripheral'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/Peripheral.swift:57:14: note: class 'Peripheral' does not conform to the 'Sendable' protocol
55 |
56 | /// It represents a peripheral along with its properties
57 | public class Peripheral: Identifiable {
| `- note: class 'Peripheral' does not conform to the 'Sendable' protocol
58 | /// An identifier for the peripheral it is the same as the wrapped `CBPeripheral`
59 | public var id: UUID {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Error/LittleBlueToothError.swift:41:10: warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
39 | case peripheralNotConnectedOrAlreadyDisconnected
40 | case peripheralNotFound
41 | case peripheralDisconnected(PeripheralIdentifier,Error?)
| `- warning: associated value 'peripheralDisconnected' of 'Sendable'-conforming enum 'LittleBluetoothError' has non-sendable type 'PeripheralIdentifier'; this is an error in the Swift 6 language mode
42 | case fullfillConditionNotRespected
43 | case deserializationFailedDataOfBounds(start: Int, length: Int, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/PeripheralDiscovery.swift:22:15: note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
20 | }
21 | /// An object that contains the unique identifier of the `CBPeripheral` and the name of it (if present)
22 | public struct PeripheralIdentifier: PeripheralIdentifiable {
| `- note: consider making struct 'PeripheralIdentifier' conform to the 'Sendable' protocol
23 | /// The `UUID`of the peripheral
24 | public var id: UUID
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:39:23: warning: static property 'Subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | extension OSLog {
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
| |- warning: static property 'Subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Subsystem' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:40:23: warning: static property 'General' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 | extension OSLog {
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
40 | public static var General = "General"
| |- warning: static property 'General' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'General' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'General' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:41:23: warning: static property 'CentralManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | public static var Subsystem = "it.vanillagorilla.LittleBlueTooth"
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
| |- warning: static property 'CentralManager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CentralManager' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'CentralManager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | public static var Peripheral = "Peripheral"
43 | public static var Restore = "Restore"
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:42:23: warning: static property 'Peripheral' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public static var General = "General"
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
| |- warning: static property 'Peripheral' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Peripheral' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Peripheral' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | public static var Restore = "Restore"
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Extension/Helper.swift:43:23: warning: static property 'Restore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | public static var CentralManager = "CentralManager"
42 | public static var Peripheral = "Peripheral"
43 | public static var Restore = "Restore"
| |- warning: static property 'Restore' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Restore' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Restore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | public static let LittleBT_Log_General = OSLog(subsystem: Subsystem, category: General)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:101:27: warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 | public let rawValue: UInt8
100 |
101 | public static var broadcast = Properties(rawValue: 1 << 0)
| |- warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'broadcast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'broadcast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:102:27: warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | public static var broadcast = Properties(rawValue: 1 << 0)
102 | public static var read = Properties(rawValue: 1 << 1)
| |- warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'read' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:103:27: warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | public static var broadcast = Properties(rawValue: 1 << 0)
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
| |- warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'writeWithoutResponse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'writeWithoutResponse' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:104:27: warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
| |- warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'write' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:105:27: warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'notify' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:106:27: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indicate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:107:27: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'authenticatedSignedWrites' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:108:27: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'extendedProperties' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:109:27: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'notifyEncryptionRequired' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
111 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:110:27: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indicateEncryptionRequired' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | public init(rawValue: UInt8) {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:101:27: warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 | public let rawValue: UInt8
100 |
101 | public static var broadcast = Properties(rawValue: 1 << 0)
| |- warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'broadcast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'broadcast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:102:27: warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | public static var broadcast = Properties(rawValue: 1 << 0)
102 | public static var read = Properties(rawValue: 1 << 1)
| |- warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'read' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:103:27: warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | public static var broadcast = Properties(rawValue: 1 << 0)
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
| |- warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'writeWithoutResponse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'writeWithoutResponse' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:104:27: warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
| |- warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'write' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:105:27: warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'notify' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:106:27: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indicate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:107:27: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'authenticatedSignedWrites' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:108:27: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'extendedProperties' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:109:27: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'notifyEncryptionRequired' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
111 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:110:27: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indicateEncryptionRequired' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | public init(rawValue: UInt8) {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:101:27: warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
99 | public let rawValue: UInt8
100 |
101 | public static var broadcast = Properties(rawValue: 1 << 0)
| |- warning: static property 'broadcast' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'broadcast' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'broadcast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:102:27: warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | public static var broadcast = Properties(rawValue: 1 << 0)
102 | public static var read = Properties(rawValue: 1 << 1)
| |- warning: static property 'read' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'read' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:103:27: warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | public static var broadcast = Properties(rawValue: 1 << 0)
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
| |- warning: static property 'writeWithoutResponse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'writeWithoutResponse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'writeWithoutResponse' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:104:27: warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 | public static var read = Properties(rawValue: 1 << 1)
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
| |- warning: static property 'write' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'write' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:105:27: warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 | public static var writeWithoutResponse = Properties(rawValue: 1 << 2)
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
| |- warning: static property 'notify' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notify' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'notify' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:106:27: warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
104 | public static var write = Properties(rawValue: 1 << 3)
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
| |- warning: static property 'indicate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicate' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indicate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:107:27: warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
105 | public static var notify = Properties(rawValue: 1 << 4)
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
| |- warning: static property 'authenticatedSignedWrites' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'authenticatedSignedWrites' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'authenticatedSignedWrites' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:108:27: warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 | public static var indicate = Properties(rawValue: 1 << 5)
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
| |- warning: static property 'extendedProperties' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'extendedProperties' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'extendedProperties' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:109:27: warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
107 | public static var authenticatedSignedWrites = Properties(rawValue: 1 << 6)
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
| |- warning: static property 'notifyEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'notifyEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'notifyEncryptionRequired' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
111 |
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/Model/LittleBlueToothCharacteristic.swift:110:27: warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | public static var extendedProperties = Properties(rawValue: 1 << 7)
109 | public static var notifyEncryptionRequired = Properties(rawValue: 1 << 8)
110 | public static var indicateEncryptionRequired = Properties(rawValue: 1 << 9)
| |- warning: static property 'indicateEncryptionRequired' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indicateEncryptionRequired' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indicateEncryptionRequired' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | public init(rawValue: UInt8) {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/Listen.swift:54:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - returns: A shared publisher that will send out values of the type defined by the generic type.
50 | /// - important: The type of the value must be conform to `Readable`
51 | public func startListen<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
52 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
53 |
54 | func startListen<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | for littleBluetooth: LittleBlueTooth,
56 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/Listen.swift:54:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - returns: A shared publisher that will send out values of the type defined by the generic type.
50 | /// - important: The type of the value must be conform to `Readable`
51 | public func startListen<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
52 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
53 |
54 | func startListen<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | for littleBluetooth: LittleBlueTooth,
56 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/Classes/CustomOperator/Listen.swift:54:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
49 | /// - returns: A shared publisher that will send out values of the type defined by the generic type.
50 | /// - important: The type of the value must be conform to `Readable`
51 | public func startListen<T: Readable>(for littleBluetooth: LittleBlueTooth,
| `- note: 'T' previously declared here
52 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> {
53 |
54 | func startListen<T: Readable, Upstream: Publisher>(upstream: Upstream,
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | for littleBluetooth: LittleBlueTooth,
56 | from charact: LittleBlueToothCharacteristic) -> AnyPublisher<T, LittleBluetoothError> where Upstream.Failure == LittleBluetoothError {
[64/65] Compiling LittleBlueToothForTest CoreBluetoothTypeAliases.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:37: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:110: warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMPeripheral.swift:33:17: note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
31 | import CoreBluetooth
32 |
33 | public protocol CBMPeripheral: AnyObject {
| `- note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
34 |
35 | /// The UUID associated with the peer.
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
11 | import os.log
12 | #if TEST
13 | import CoreBluetoothMock
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
14 | #else
15 | import CoreBluetooth
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:33: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:103: warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMPeripheral.swift:33:17: note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
31 | import CoreBluetooth
32 |
33 | public protocol CBMPeripheral: AnyObject {
| `- note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
34 |
35 | /// The UUID associated with the peer.
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:29: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:99: warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMPeripheral.swift:33:17: note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
31 | import CoreBluetooth
32 |
33 | public protocol CBMPeripheral: AnyObject {
| `- note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
34 |
35 | /// The UUID associated with the peer.
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:99: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:37: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:110: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:103: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
[65/65] Compiling LittleBlueToothForTest LittleBlueTooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:37: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:110: warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| `- warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMPeripheral.swift:33:17: note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
31 | import CoreBluetooth
32 |
33 | public protocol CBMPeripheral: AnyObject {
| `- note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
34 |
35 | /// The UUID associated with the peer.
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
11 | import os.log
12 | #if TEST
13 | import CoreBluetoothMock
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
14 | #else
15 | import CoreBluetooth
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:33: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:103: warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMPeripheral.swift:33:17: note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
31 | import CoreBluetooth
32 |
33 | public protocol CBMPeripheral: AnyObject {
| `- note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
34 |
35 | /// The UUID associated with the peer.
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:29: warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | [Link](https://developer.apple.com/forums/thread/20810)
30 | */
31 | public class LittleBlueTooth: Identifiable {
| `- note: class 'LittleBlueTooth' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public variables
:
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'self' with non-sendable type 'LittleBlueTooth' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:99: warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| `- warning: capture of 'periph' with non-sendable type 'any CBPeripheral' (aka 'any CBMPeripheral') in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMPeripheral.swift:33:17: note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
31 | import CoreBluetooth
32 |
33 | public protocol CBMPeripheral: AnyObject {
| `- note: protocol 'CBMPeripheral' does not conform to the 'Sendable' protocol
34 |
35 | /// The UUID associated with the peer.
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:29: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:233:99: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
231 | } else {
232 | DispatchQueue.main.async {
233 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
234 | }
235 | return Just(event).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:37: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:220:110: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
218 | .catch { [unowned self] (error) -> Just<Void> in
219 | DispatchQueue.main.async {
220 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.notReady(periph, error: error))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
221 | }
222 | return Just(())
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:33: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
/Users/admin/builder/spi-builder-workspace/Sources/LittleBlueToothForTest/LittleBlueTooth.swift:226:103: warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
224 | .map { _ in
225 | DispatchQueue.main.async {
226 | self.centralProxy.connectionEventPublisher.send(ConnectionEvent.ready(periph))
| |- warning: sending 'periph' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'periph' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
227 | }
228 | return event
Build complete! (27.27s)
Build complete.
{
"dependencies" : [
{
"identity" : "ios-corebluetooth-mock",
"requirement" : {
"range" : [
{
"lower_bound" : "0.14.0",
"upper_bound" : "0.15.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git"
}
],
"manifest_display_name" : "LittleBlueTooth",
"name" : "LittleBlueTooth",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "LittleBlueTooth",
"targets" : [
"LittleBlueTooth"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LittleBlueToothForTest",
"targets" : [
"LittleBlueToothForTest"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "LittleBlueToothTests",
"module_type" : "SwiftTarget",
"name" : "LittleBlueToothTests",
"path" : "Tests/LittleBlueToothTests",
"product_dependencies" : [
"CoreBluetoothMock"
],
"sources" : [
"ConnectionTest.swift",
"CustomOperator.swift",
"Extraction.swift",
"ListenTest.swift",
"LittleBlueToothTests.swift",
"Mocks/MockPeripherals.swift",
"ScanDiscoveryTest.swift",
"StateRestoration.swift",
"UtilityTest.swift",
"WriteReadTest.swift",
"WriteWithoutResponse.swift"
],
"target_dependencies" : [
"LittleBlueToothForTest"
],
"type" : "test"
},
{
"c99name" : "LittleBlueToothForTest",
"module_type" : "SwiftTarget",
"name" : "LittleBlueToothForTest",
"path" : "Sources/LittleBlueToothForTest",
"product_dependencies" : [
"CoreBluetoothMock"
],
"product_memberships" : [
"LittleBlueToothForTest"
],
"sources" : [
"Classes/CustomOperator/JustLittleBlueTooth.swift",
"Classes/CustomOperator/Listen.swift",
"Classes/CustomOperator/Log.swift",
"Classes/CustomOperator/ReadAndWrite.swift",
"Classes/CustomOperator/ScanAndConnection.swift",
"Classes/Error/LittleBlueToothError.swift",
"Classes/Extension/Helper.swift",
"Classes/Model/AdvertisingData.swift",
"Classes/Model/CentralRestorer.swift",
"Classes/Model/LittleBlueToothCharacteristic.swift",
"Classes/Model/LittleBluetoothConfiguration.swift",
"Classes/Model/Loggable.swift",
"Classes/Model/Peripheral.swift",
"Classes/Model/PeripheralDiscovery.swift",
"Classes/Proxies/CBCentralManagerDelegateProxy.swift",
"Classes/Proxies/CBPeripheralProxy.swift",
"Classes/Utilities/ShareAndReplayOperator/ReplaySubject.swift",
"Classes/Utilities/ShareAndReplayOperator/ReplaySubjectSubscription.swift",
"Classes/Utilities/ShareAndReplayOperator/ShareReplay.swift",
"Classes/Utilities/Utilities.swift",
"CoreBluetoothTypeAliases.swift",
"LittleBlueTooth.swift"
],
"type" : "library"
},
{
"c99name" : "LittleBlueTooth",
"module_type" : "SwiftTarget",
"name" : "LittleBlueTooth",
"path" : "Sources/LittleBlueTooth",
"product_memberships" : [
"LittleBlueTooth"
],
"sources" : [
"Classes/CustomOperator/JustLittleBlueTooth.swift",
"Classes/CustomOperator/Listen.swift",
"Classes/CustomOperator/Log.swift",
"Classes/CustomOperator/ReadAndWrite.swift",
"Classes/CustomOperator/ScanAndConnection.swift",
"Classes/Error/LittleBlueToothError.swift",
"Classes/Extension/Helper.swift",
"Classes/Model/AdvertisingData.swift",
"Classes/Model/CentralRestorer.swift",
"Classes/Model/LittleBlueToothCharacteristic.swift",
"Classes/Model/LittleBluetoothConfiguration.swift",
"Classes/Model/Loggable.swift",
"Classes/Model/Peripheral.swift",
"Classes/Model/PeripheralDiscovery.swift",
"Classes/Proxies/CBCentralManagerDelegateProxy.swift",
"Classes/Proxies/CBPeripheralProxy.swift",
"Classes/Utilities/ShareAndReplayOperator/ReplaySubject.swift",
"Classes/Utilities/ShareAndReplayOperator/ReplaySubjectSubscription.swift",
"Classes/Utilities/ShareAndReplayOperator/ShareReplay.swift",
"Classes/Utilities/Utilities.swift",
"CoreBluetoothTypeAliases.swift",
"LittleBlueTooth.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.