Build Information
Successful build of CoreBluetoothMock, reference 1.1.1 (96a8c7), with Swift 6.1 for macOS (SPM) on 8 Nov 2026 15:45:02 UTC.
Swift 6 data race errors: 30
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
1537 | error: error)
1538 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1570:35: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1568 | let delay = interval * Double(packetsCount)
1569 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1570 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1571 | self.delegate?.peripheral(self,
1572 | didWriteValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1572:69: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1570 | if let self = self, self.state == .connected {
1571 | self.delegate?.peripheral(self,
1572 | didWriteValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1573 | error: nil)
1574 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1578:35: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1576 | case .failure(let error):
1577 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1578 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1579 | self.delegate?.peripheral(self,
1580 | didWriteValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1580:69: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1578 | if let self = self, self.state == .connected {
1579 | self.delegate?.peripheral(self,
1580 | didWriteValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1581 | error: error)
1582 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1606:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1604 |
1605 | queue.async { [weak self] in
1606 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1607 | // Increase buffer.
1608 | self.mutex.sync {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1639:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1637 | case .success:
1638 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1639 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1640 | self.delegate?.peripheral(self,
1641 | didWriteValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1641:65: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1639 | if let self = self, self.state == .connected {
1640 | self.delegate?.peripheral(self,
1641 | didWriteValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1642 | error: nil)
1643 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1647:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1645 | case .failure(let error):
1646 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1647 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1648 | self.delegate?.peripheral(self,
1649 | didWriteValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1649:65: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1647 | if let self = self, self.state == .connected {
1648 | self.delegate?.peripheral(self,
1649 | didWriteValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1650 | error: error)
1651 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1694:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1692 | case .success:
1693 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1694 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1695 | characteristic.isNotifying = enabled
1696 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1695:21: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1693 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1694 | if let self = self, self.state == .connected {
1695 | characteristic.isNotifying = enabled
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1696 | self.delegate?.peripheral(self,
1697 | didUpdateNotificationStateFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1699:21: warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1697 | didUpdateNotificationStateFor: characteristic,
1698 | error: nil)
1699 | mockCharacteristic.isNotifying = enabled
| `- warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1700 | delegate.peripheral(self.mock,
1701 | didUpdateNotificationStateFor: mockCharacteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:339:12: note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
337 |
338 | /// Mock implementation of ``CBMCharacteristic``.
339 | open class CBMCharacteristicMock: CBMCharacteristic {
| `- note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
340 |
341 | open override var descriptors: [CBMDescriptor]? {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1700:21: warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1698 | error: nil)
1699 | mockCharacteristic.isNotifying = enabled
1700 | delegate.peripheral(self.mock,
| `- warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1701 | didUpdateNotificationStateFor: mockCharacteristic,
1702 | error: nil)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift:34:17: note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
32 |
33 | /// This delegate should implement the behavior of a real Bluetooth LE device during a connection.
34 | public protocol CBMPeripheralSpecDelegate {
| `- note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
35 |
36 | /// This method is called when the mock peripheral has been reset.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1707:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1705 | case .failure(let error):
1706 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1707 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1708 | self.delegate?.peripheral(self,
1709 | didUpdateNotificationStateFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1709:78: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1707 | if let self = self, self.state == .connected {
1708 | self.delegate?.peripheral(self,
1709 | didUpdateNotificationStateFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1710 | error: error)
1711 | delegate.peripheral(self.mock,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1711:21: warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1709 | didUpdateNotificationStateFor: characteristic,
1710 | error: error)
1711 | delegate.peripheral(self.mock,
| `- warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1712 | didUpdateNotificationStateFor: mockCharacteristic,
1713 | error: error)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift:34:17: note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
32 |
33 | /// This delegate should implement the behavior of a real Bluetooth LE device during a connection.
34 | public protocol CBMPeripheralSpecDelegate {
| `- note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
35 |
36 | /// This method is called when the mock peripheral has been reset.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1712:72: warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1710 | error: error)
1711 | delegate.peripheral(self.mock,
1712 | didUpdateNotificationStateFor: mockCharacteristic,
| `- warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1713 | error: error)
1714 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:339:12: note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
337 |
338 | /// Mock implementation of ``CBMCharacteristic``.
339 | open class CBMCharacteristicMock: CBMCharacteristic {
| `- note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
340 |
341 | open override var descriptors: [CBMDescriptor]? {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1725:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1723 | guard manager.ensurePoweredOn() else { return }
1724 | queue.async { [weak self] in
1725 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1726 | let rssi = self.mock.proximity.RSSI
1727 | let delta = CBMCentralManagerMock.rssiDeviation.value
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1745:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1743 | NSLog("[CoreBluetoothMock] L2CAP channels are not implemented in the mock. Opening channel with PSM \(PSM) failed.")
1744 | queue.async { [weak self] in
1745 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1746 | self.delegate?.peripheral(self, didOpen: nil, error: CBMError(.operationNotSupported))
1747 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:160:45: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
158 | // The advertisement could have been stopped, or replaced, in the meantime.
159 | let isCurrent = mutex.sync { () -> Bool in
160 | guard pendingAdvertisements[config] == token else {
| |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
161 | return false
162 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:176:32: warning: sending 'mock' risks causing data races; this is an error in the Swift 6 language mode
174 | target: self,
175 | selector: #selector(self.schedule(timer:)),
176 | userInfo: (mock, config),
| |- warning: sending 'mock' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'mock' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 | repeats: false)
178 | } else {
[21/33] Compiling CoreBluetoothMock CBMCentralManagerFactory.swift
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:41:24: warning: static property 'managers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | /// A list of all mock managers instantiated by user.
41 | private static var managers: [WeakRef<CBMCentralManagerMock>] = []
| |- warning: static property 'managers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'managers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// A list of peripherals known to the system.
43 | private static var peripherals: [CBMPeripheralSpec] = [] {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:43:24: warning: static property 'peripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | private static var managers: [WeakRef<CBMCentralManagerMock>] = []
42 | /// A list of peripherals known to the system.
43 | private static var peripherals: [CBMPeripheralSpec] = [] {
| |- warning: static property 'peripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'peripherals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'peripherals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | didSet {
45 | stopAdvertising()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:52:24: warning: static property 'previewPeripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
50 | ///
51 | /// Registered items can be accessed using any ``CBMCentralManagerMock``.
52 | private static var previewPeripherals: Set<CBMPeripheralPreview> = Set()
| |- warning: static property 'previewPeripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewPeripherals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewPeripherals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// A map of all current advertisements of all simulated peripherals.
54 | private static var advertisementTimers = CBMDictionary<CBMAdvertisementConfig, Timer>()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:54:24: warning: static property 'advertisementTimers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | private static var previewPeripherals: Set<CBMPeripheralPreview> = Set()
53 | /// A map of all current advertisements of all simulated peripherals.
54 | private static var advertisementTimers = CBMDictionary<CBMAdvertisementConfig, Timer>()
| |- warning: static property 'advertisementTimers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'advertisementTimers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'advertisementTimers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// Advertisements that were started, but whose timers have not been created yet.
56 | ///
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:60:24: warning: static property 'pendingAdvertisements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | /// so that a timer that was queued earlier is not created after the advertisement
59 | /// has been stopped. Must be accessed on the ``mutex``.
60 | private static var pendingAdvertisements = CBMDictionary<CBMAdvertisementConfig, UUID>()
| |- warning: static property 'pendingAdvertisements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pendingAdvertisements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pendingAdvertisements' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | /// A mutex queue for managing managers.
62 | private static let mutex: DispatchQueue = DispatchQueue(label: "Mutex")
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:66:38: warning: static property 'bluetoothAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | ///
65 | /// As `CBManagerAuthorization` was added in iOS 13, the raw value is kept.
66 | internal private(set) static var bluetoothAuthorization: Int? {
| |- warning: static property 'bluetoothAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bluetoothAuthorization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bluetoothAuthorization' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | didSet {
68 | notifyManagers()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:78:38: warning: static property 'rssiDeviation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
76 | ///
77 | /// Defaults to 15 dBm.
78 | internal private(set) static var rssiDeviation: CBMProximity.Deviation = .default
| |- warning: static property 'rssiDeviation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'rssiDeviation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'rssiDeviation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | /// The global state of the Bluetooth adapter on the device.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:84:38: warning: static property 'managerState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | /// The state is shared between ``CBMCentralManagerMock`` and ``CBMPeripheralManagerMock``
83 | /// instances, as both use the same Bluetooth adapter.
84 | internal private(set) static var managerState: CBMManagerState = .poweredOff {
| |- warning: static property 'managerState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'managerState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | didSet {
86 | notifyManagers()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:456:23: warning: static property 'simulateStateRestoration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
454 | /// - SeeAlso: ``CBMCentralManagerRestoredStateScanServicesKey``
455 | /// - SeeAlso: ``CBMCentralManagerRestoredStateScanOptionsKey``
456 | public static var simulateStateRestoration: ((_ identifierKey: String) -> [String : Any]?)?
| |- warning: static property 'simulateStateRestoration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'simulateStateRestoration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'simulateStateRestoration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
457 |
458 | #if !os(macOS)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:108:17: warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
35 | /// This implementation will interact only with mock peripherals created using
36 | /// ``CBMPeripheralSpec/simulatePeripheral(identifier:proximity:)``.
37 | open class CBMCentralManagerMock: CBMCentralManager {
| `- note: class 'CBMCentralManagerMock' does not conform to the 'Sendable' protocol
38 |
39 |
:
106 | // ...and notify delegate.
107 | manager.queue.async {
108 | manager.delegate?.centralManagerDidUpdateState(manager)
| `- warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:286:23: warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
35 | /// This implementation will interact only with mock peripherals created using
36 | /// ``CBMPeripheralSpec/simulatePeripheral(identifier:proximity:)``.
37 | open class CBMCentralManagerMock: CBMCentralManager {
| `- note: class 'CBMCentralManagerMock' does not conform to the 'Sendable' protocol
38 |
39 |
:
284 |
285 | manager.queue.async {
286 | manager.delegate?.centralManager(manager, didDiscover: peripheral,
| `- warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
287 | advertisementData: config.data,
288 | rssi: (rssi + deviation) as NSNumber)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:286:78: warning: capture of 'peripheral' with non-sendable type 'CBMPeripheralMock' in a '@Sendable' closure
284 |
285 | manager.queue.async {
286 | manager.delegate?.centralManager(manager, didDiscover: peripheral,
| `- warning: capture of 'peripheral' with non-sendable type 'CBMPeripheralMock' in a '@Sendable' closure
287 | advertisementData: config.data,
288 | rssi: (rssi + deviation) as NSNumber)
:
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:287:73: warning: capture of 'config' with non-sendable type 'CBMAdvertisementConfig' in a '@Sendable' closure
285 | manager.queue.async {
286 | manager.delegate?.centralManager(manager, didDiscover: peripheral,
287 | advertisementData: config.data,
| `- warning: capture of 'config' with non-sendable type 'CBMAdvertisementConfig' in a '@Sendable' closure
288 | rssi: (rssi + deviation) as NSNumber)
289 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpec.swift:84:15: note: consider making struct 'CBMAdvertisementConfig' conform to the 'Sendable' protocol
82 | /// and can be changed during simulation using
83 | /// ``CBMPeripheralSpec/simulateAdvertisementChange(_:)``.
84 | public struct CBMAdvertisementConfig {
| `- note: consider making struct 'CBMAdvertisementConfig' conform to the 'Sendable' protocol
85 | /// ID used for hash.
86 | internal let id: UUID = UUID()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:390:27: warning: capture of 'self' with non-sendable type 'CBMCentralManagerMock?' in a '@Sendable' closure
35 | /// This implementation will interact only with mock peripherals created using
36 | /// ``CBMPeripheralSpec/simulatePeripheral(identifier:proximity:)``.
37 | open class CBMCentralManagerMock: CBMCentralManager {
| `- note: class 'CBMCentralManagerMock' does not conform to the 'Sendable' protocol
38 |
39 |
:
388 | }
389 | queue.async { [weak self] in
390 | if let self = self {
| `- warning: capture of 'self' with non-sendable type 'CBMCentralManagerMock?' in a '@Sendable' closure
391 | CBMCentralManagerMock.mutex.sync {
392 | CBMCentralManagerMock.managers.append(WeakRef(self))
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1063:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1061 | if isAlreadyConnected {
1062 | queue.async { [weak self] in
1063 | if let self = self, self.state == .connecting {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1064 | self.state = .connected
1065 | self._canSendWriteWithoutResponse = true
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1068:21: warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
1066 | self.mock.wasConnected = true
1067 | self.mock.virtualConnections += 1
1068 | completion(.success(()))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1069 | }
1070 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1083:30: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1081 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1082 | // The connection could have been cancelled, or the request replaced, in the meantime.
1083 | guard let self = self, self.pendingConnectionRequest == requestId else {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1084 | return
1085 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1096:17: warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
1094 | self.state = .disconnected
1095 | }
1096 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1097 | }
1098 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1111:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1109 | state = .disconnecting
1110 | queue.async { [weak self] in
1111 | if let self = self, self.state == .disconnecting {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1112 | self.state = .disconnected
1113 | completion()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1113:21: warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
1111 | if let self = self, self.state == .disconnecting {
1112 | self.state = .disconnected
1113 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1114 | }
1115 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1129:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1127 | // `tearDownSimulation()` could have been called before this is called.
1128 | // See https://github.com/nordicsemi/IOS-CoreBluetooth-Mock/issues/25
1129 | if let self = self, self.state == .disconnecting,
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1130 | CBMCentralManagerMock.managerState == .poweredOn {
1131 | self.state = .disconnected
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1141:17: warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
1139 | didDisconnect: nil)
1140 | }
1141 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1142 | }
1143 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1161:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1159 | }
1160 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1161 | if let self = self, CBMCentralManagerMock.managerState == .poweredOn {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1162 | if isReconnecting {
1163 | self.state = .connecting
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1169:17: warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a '@Sendable' closure
1167 | }
1168 | self._canSendWriteWithoutResponse = false
1169 | completion(error)
| |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1170 | }
1171 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1182:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1180 | }
1181 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1182 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1183 | self.delegate?.peripheralDidUpdateName(self)
1184 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1205:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1203 | let invalidatedServices = oldServices.filter { !services!.contains($0) }
1204 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1205 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1206 | self.delegate?.peripheral(self, didModifyServices: invalidatedServices)
1207 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1206:68: warning: capture of 'invalidatedServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1204 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1205 | if let self = self, self.state == .connected {
1206 | self.delegate?.peripheral(self, didModifyServices: invalidatedServices)
| `- warning: capture of 'invalidatedServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1207 | }
1208 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1228:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1226 | let value = originalCharacteristic.value
1227 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1228 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1229 | characteristic.value = value
1230 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1229:17: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1227 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1228 | if let self = self, self.state == .connected {
1229 | characteristic.value = value
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1230 | self.delegate?.peripheral(self,
1231 | didUpdateValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1274:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1272 | let delay = interval * Double(newServices.count)
1273 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1274 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1275 | // The services become available when discovery completes.
1276 | let known = self.services ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1277:33: warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1275 | // The services become available when discovery completes.
1276 | let known = self.services ?? []
1277 | let added = newServices.filter { s in
| `- warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1278 | !known.contains { $0.identifier == s.identifier }
1279 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1290:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1288 | case .failure(let error):
1289 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1290 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1291 | self.delegate?.peripheral(self, didDiscoverServices: error)
1292 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1330:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1328 | let delay = interval * Double(newServices.count)
1329 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1330 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1331 | // The services become available when discovery completes.
1332 | let known = service._includedServices ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1332:33: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1330 | if let self = self, self.state == .connected {
1331 | // The services become available when discovery completes.
1332 | let known = service._includedServices ?? []
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1333 | let added = newServices.filter { s in
1334 | !known.contains { $0.identifier == s.identifier }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1333:33: warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1331 | // The services become available when discovery completes.
1332 | let known = service._includedServices ?? []
1333 | let added = newServices.filter { s in
| `- warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1334 | !known.contains { $0.identifier == s.identifier }
1335 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1346:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1344 | case .failure(let error):
1345 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1346 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1347 | self.delegate?.peripheral(self,
1348 | didDiscoverIncludedServicesFor: service,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1348:79: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1346 | if let self = self, self.state == .connected {
1347 | self.delegate?.peripheral(self,
1348 | didDiscoverIncludedServicesFor: service,
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1349 | error: error)
1350 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1389:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1387 | let delay = interval * Double(newCharacteristics.count)
1388 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1389 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1390 | // The characteristics become available when discovery completes.
1391 | let known = service._characteristics ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1391:33: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1389 | if let self = self, self.state == .connected {
1390 | // The characteristics become available when discovery completes.
1391 | let known = service._characteristics ?? []
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1392 | let added = newCharacteristics.filter { c in
1393 | !known.contains { $0.identifier == c.identifier }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1392:33: warning: capture of 'newCharacteristics' with non-sendable type '[CBMCharacteristic]' in a '@Sendable' closure
1390 | // The characteristics become available when discovery completes.
1391 | let known = service._characteristics ?? []
1392 | let added = newCharacteristics.filter { c in
| `- warning: capture of 'newCharacteristics' with non-sendable type '[CBMCharacteristic]' in a '@Sendable' closure
1393 | !known.contains { $0.identifier == c.identifier }
1394 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1405:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1403 | case .failure(let error):
1404 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1405 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1406 | self.delegate?.peripheral(self,
1407 | didDiscoverCharacteristicsFor: service,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1407:78: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1405 | if let self = self, self.state == .connected {
1406 | self.delegate?.peripheral(self,
1407 | didDiscoverCharacteristicsFor: service,
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1408 | error: error)
1409 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1444:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1442 | let delay = interval * Double(newDescriptors.count)
1443 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1444 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1445 | // The descriptors become available when discovery completes.
1446 | let known = characteristic._descriptors ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1446:33: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1444 | if let self = self, self.state == .connected {
1445 | // The descriptors become available when discovery completes.
1446 | let known = characteristic._descriptors ?? []
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1447 | let added = newDescriptors.filter { d in
1448 | !known.contains { $0.identifier == d.identifier }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1447:33: warning: capture of 'newDescriptors' with non-sendable type '[CBMDescriptor]' in a '@Sendable' closure
1445 | // The descriptors become available when discovery completes.
1446 | let known = characteristic._descriptors ?? []
1447 | let added = newDescriptors.filter { d in
| `- warning: capture of 'newDescriptors' with non-sendable type '[CBMDescriptor]' in a '@Sendable' closure
1448 | !known.contains { $0.identifier == d.identifier }
1449 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1460:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1458 | case .failure(let error):
1459 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1460 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1461 | self.delegate?.peripheral(self,
1462 | didDiscoverDescriptorsFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1462:74: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1460 | if let self = self, self.state == .connected {
1461 | self.delegate?.peripheral(self,
1462 | didDiscoverDescriptorsFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1463 | error: error)
1464 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1489:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1487 | case .success(let data):
1488 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1489 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1490 | characteristic.value = data
1491 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1490:21: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1488 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1489 | if let self = self, self.state == .connected {
1490 | characteristic.value = data
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1491 | self.delegate?.peripheral(self,
1492 | didUpdateValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1498:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1496 | case .failure(let error):
1497 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1498 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1499 | self.delegate?.peripheral(self,
1500 | didUpdateValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1500:66: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1498 | if let self = self, self.state == .connected {
1499 | self.delegate?.peripheral(self,
1500 | didUpdateValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1501 | error: error)
1502 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1525:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1523 | case .success(let data):
1524 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1525 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1526 | descriptor.value = data
1527 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1526:21: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1524 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1525 | if let self = self, self.state == .connected {
1526 | descriptor.value = data
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1527 | self.delegate?.peripheral(self,
1528 | didUpdateValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1534:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1532 | case .failure(let error):
1533 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1534 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1535 | self.delegate?.peripheral(self,
1536 | didUpdateValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1536:66: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1534 | if let self = self, self.state == .connected {
1535 | self.delegate?.peripheral(self,
1536 | didUpdateValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1537 | error: error)
1538 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1570:35: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1568 | let delay = interval * Double(packetsCount)
1569 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1570 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1571 | self.delegate?.peripheral(self,
1572 | didWriteValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1572:69: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1570 | if let self = self, self.state == .connected {
1571 | self.delegate?.peripheral(self,
1572 | didWriteValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1573 | error: nil)
1574 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1578:35: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1576 | case .failure(let error):
1577 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1578 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1579 | self.delegate?.peripheral(self,
1580 | didWriteValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1580:69: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1578 | if let self = self, self.state == .connected {
1579 | self.delegate?.peripheral(self,
1580 | didWriteValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1581 | error: error)
1582 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1606:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1604 |
1605 | queue.async { [weak self] in
1606 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1607 | // Increase buffer.
1608 | self.mutex.sync {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1639:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1637 | case .success:
1638 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1639 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1640 | self.delegate?.peripheral(self,
1641 | didWriteValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1641:65: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1639 | if let self = self, self.state == .connected {
1640 | self.delegate?.peripheral(self,
1641 | didWriteValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1642 | error: nil)
1643 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1647:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1645 | case .failure(let error):
1646 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1647 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1648 | self.delegate?.peripheral(self,
1649 | didWriteValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1649:65: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1647 | if let self = self, self.state == .connected {
1648 | self.delegate?.peripheral(self,
1649 | didWriteValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1650 | error: error)
1651 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1694:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1692 | case .success:
1693 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1694 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1695 | characteristic.isNotifying = enabled
1696 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1695:21: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1693 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1694 | if let self = self, self.state == .connected {
1695 | characteristic.isNotifying = enabled
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1696 | self.delegate?.peripheral(self,
1697 | didUpdateNotificationStateFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1699:21: warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1697 | didUpdateNotificationStateFor: characteristic,
1698 | error: nil)
1699 | mockCharacteristic.isNotifying = enabled
| `- warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1700 | delegate.peripheral(self.mock,
1701 | didUpdateNotificationStateFor: mockCharacteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:339:12: note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
337 |
338 | /// Mock implementation of ``CBMCharacteristic``.
339 | open class CBMCharacteristicMock: CBMCharacteristic {
| `- note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
340 |
341 | open override var descriptors: [CBMDescriptor]? {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1700:21: warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1698 | error: nil)
1699 | mockCharacteristic.isNotifying = enabled
1700 | delegate.peripheral(self.mock,
| `- warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1701 | didUpdateNotificationStateFor: mockCharacteristic,
1702 | error: nil)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift:34:17: note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
32 |
33 | /// This delegate should implement the behavior of a real Bluetooth LE device during a connection.
34 | public protocol CBMPeripheralSpecDelegate {
| `- note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
35 |
36 | /// This method is called when the mock peripheral has been reset.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1707:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1705 | case .failure(let error):
1706 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1707 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1708 | self.delegate?.peripheral(self,
1709 | didUpdateNotificationStateFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1709:78: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1707 | if let self = self, self.state == .connected {
1708 | self.delegate?.peripheral(self,
1709 | didUpdateNotificationStateFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1710 | error: error)
1711 | delegate.peripheral(self.mock,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1711:21: warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1709 | didUpdateNotificationStateFor: characteristic,
1710 | error: error)
1711 | delegate.peripheral(self.mock,
| `- warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1712 | didUpdateNotificationStateFor: mockCharacteristic,
1713 | error: error)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift:34:17: note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
32 |
33 | /// This delegate should implement the behavior of a real Bluetooth LE device during a connection.
34 | public protocol CBMPeripheralSpecDelegate {
| `- note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
35 |
36 | /// This method is called when the mock peripheral has been reset.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1712:72: warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1710 | error: error)
1711 | delegate.peripheral(self.mock,
1712 | didUpdateNotificationStateFor: mockCharacteristic,
| `- warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1713 | error: error)
1714 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:339:12: note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
337 |
338 | /// Mock implementation of ``CBMCharacteristic``.
339 | open class CBMCharacteristicMock: CBMCharacteristic {
| `- note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
340 |
341 | open override var descriptors: [CBMDescriptor]? {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1725:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1723 | guard manager.ensurePoweredOn() else { return }
1724 | queue.async { [weak self] in
1725 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1726 | let rssi = self.mock.proximity.RSSI
1727 | let delta = CBMCentralManagerMock.rssiDeviation.value
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1745:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1743 | NSLog("[CoreBluetoothMock] L2CAP channels are not implemented in the mock. Opening channel with PSM \(PSM) failed.")
1744 | queue.async { [weak self] in
1745 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1746 | self.delegate?.peripheral(self, didOpen: nil, error: CBMError(.operationNotSupported))
1747 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:160:45: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
158 | // The advertisement could have been stopped, or replaced, in the meantime.
159 | let isCurrent = mutex.sync { () -> Bool in
160 | guard pendingAdvertisements[config] == token else {
| |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
161 | return false
162 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:176:32: warning: sending 'mock' risks causing data races; this is an error in the Swift 6 language mode
174 | target: self,
175 | selector: #selector(self.schedule(timer:)),
176 | userInfo: (mock, config),
| |- warning: sending 'mock' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'mock' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 | repeats: false)
178 | } else {
[22/33] Compiling CoreBluetoothMock CBMCentralManagerMock.swift
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:41:24: warning: static property 'managers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | /// A list of all mock managers instantiated by user.
41 | private static var managers: [WeakRef<CBMCentralManagerMock>] = []
| |- warning: static property 'managers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'managers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// A list of peripherals known to the system.
43 | private static var peripherals: [CBMPeripheralSpec] = [] {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:43:24: warning: static property 'peripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 | private static var managers: [WeakRef<CBMCentralManagerMock>] = []
42 | /// A list of peripherals known to the system.
43 | private static var peripherals: [CBMPeripheralSpec] = [] {
| |- warning: static property 'peripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'peripherals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'peripherals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | didSet {
45 | stopAdvertising()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:52:24: warning: static property 'previewPeripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
50 | ///
51 | /// Registered items can be accessed using any ``CBMCentralManagerMock``.
52 | private static var previewPeripherals: Set<CBMPeripheralPreview> = Set()
| |- warning: static property 'previewPeripherals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewPeripherals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewPeripherals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// A map of all current advertisements of all simulated peripherals.
54 | private static var advertisementTimers = CBMDictionary<CBMAdvertisementConfig, Timer>()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:54:24: warning: static property 'advertisementTimers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | private static var previewPeripherals: Set<CBMPeripheralPreview> = Set()
53 | /// A map of all current advertisements of all simulated peripherals.
54 | private static var advertisementTimers = CBMDictionary<CBMAdvertisementConfig, Timer>()
| |- warning: static property 'advertisementTimers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'advertisementTimers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'advertisementTimers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// Advertisements that were started, but whose timers have not been created yet.
56 | ///
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:60:24: warning: static property 'pendingAdvertisements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | /// so that a timer that was queued earlier is not created after the advertisement
59 | /// has been stopped. Must be accessed on the ``mutex``.
60 | private static var pendingAdvertisements = CBMDictionary<CBMAdvertisementConfig, UUID>()
| |- warning: static property 'pendingAdvertisements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pendingAdvertisements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pendingAdvertisements' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | /// A mutex queue for managing managers.
62 | private static let mutex: DispatchQueue = DispatchQueue(label: "Mutex")
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:66:38: warning: static property 'bluetoothAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | ///
65 | /// As `CBManagerAuthorization` was added in iOS 13, the raw value is kept.
66 | internal private(set) static var bluetoothAuthorization: Int? {
| |- warning: static property 'bluetoothAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bluetoothAuthorization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bluetoothAuthorization' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | didSet {
68 | notifyManagers()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:78:38: warning: static property 'rssiDeviation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
76 | ///
77 | /// Defaults to 15 dBm.
78 | internal private(set) static var rssiDeviation: CBMProximity.Deviation = .default
| |- warning: static property 'rssiDeviation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'rssiDeviation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'rssiDeviation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | /// The global state of the Bluetooth adapter on the device.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:84:38: warning: static property 'managerState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | /// The state is shared between ``CBMCentralManagerMock`` and ``CBMPeripheralManagerMock``
83 | /// instances, as both use the same Bluetooth adapter.
84 | internal private(set) static var managerState: CBMManagerState = .poweredOff {
| |- warning: static property 'managerState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'managerState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | didSet {
86 | notifyManagers()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:456:23: warning: static property 'simulateStateRestoration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
454 | /// - SeeAlso: ``CBMCentralManagerRestoredStateScanServicesKey``
455 | /// - SeeAlso: ``CBMCentralManagerRestoredStateScanOptionsKey``
456 | public static var simulateStateRestoration: ((_ identifierKey: String) -> [String : Any]?)?
| |- warning: static property 'simulateStateRestoration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'simulateStateRestoration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'simulateStateRestoration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
457 |
458 | #if !os(macOS)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:108:17: warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
35 | /// This implementation will interact only with mock peripherals created using
36 | /// ``CBMPeripheralSpec/simulatePeripheral(identifier:proximity:)``.
37 | open class CBMCentralManagerMock: CBMCentralManager {
| `- note: class 'CBMCentralManagerMock' does not conform to the 'Sendable' protocol
38 |
39 |
:
106 | // ...and notify delegate.
107 | manager.queue.async {
108 | manager.delegate?.centralManagerDidUpdateState(manager)
| `- warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:286:23: warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
35 | /// This implementation will interact only with mock peripherals created using
36 | /// ``CBMPeripheralSpec/simulatePeripheral(identifier:proximity:)``.
37 | open class CBMCentralManagerMock: CBMCentralManager {
| `- note: class 'CBMCentralManagerMock' does not conform to the 'Sendable' protocol
38 |
39 |
:
284 |
285 | manager.queue.async {
286 | manager.delegate?.centralManager(manager, didDiscover: peripheral,
| `- warning: capture of 'manager' with non-sendable type 'CBMCentralManagerMock' in a '@Sendable' closure
287 | advertisementData: config.data,
288 | rssi: (rssi + deviation) as NSNumber)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:286:78: warning: capture of 'peripheral' with non-sendable type 'CBMPeripheralMock' in a '@Sendable' closure
284 |
285 | manager.queue.async {
286 | manager.delegate?.centralManager(manager, didDiscover: peripheral,
| `- warning: capture of 'peripheral' with non-sendable type 'CBMPeripheralMock' in a '@Sendable' closure
287 | advertisementData: config.data,
288 | rssi: (rssi + deviation) as NSNumber)
:
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:287:73: warning: capture of 'config' with non-sendable type 'CBMAdvertisementConfig' in a '@Sendable' closure
285 | manager.queue.async {
286 | manager.delegate?.centralManager(manager, didDiscover: peripheral,
287 | advertisementData: config.data,
| `- warning: capture of 'config' with non-sendable type 'CBMAdvertisementConfig' in a '@Sendable' closure
288 | rssi: (rssi + deviation) as NSNumber)
289 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpec.swift:84:15: note: consider making struct 'CBMAdvertisementConfig' conform to the 'Sendable' protocol
82 | /// and can be changed during simulation using
83 | /// ``CBMPeripheralSpec/simulateAdvertisementChange(_:)``.
84 | public struct CBMAdvertisementConfig {
| `- note: consider making struct 'CBMAdvertisementConfig' conform to the 'Sendable' protocol
85 | /// ID used for hash.
86 | internal let id: UUID = UUID()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:390:27: warning: capture of 'self' with non-sendable type 'CBMCentralManagerMock?' in a '@Sendable' closure
35 | /// This implementation will interact only with mock peripherals created using
36 | /// ``CBMPeripheralSpec/simulatePeripheral(identifier:proximity:)``.
37 | open class CBMCentralManagerMock: CBMCentralManager {
| `- note: class 'CBMCentralManagerMock' does not conform to the 'Sendable' protocol
38 |
39 |
:
388 | }
389 | queue.async { [weak self] in
390 | if let self = self {
| `- warning: capture of 'self' with non-sendable type 'CBMCentralManagerMock?' in a '@Sendable' closure
391 | CBMCentralManagerMock.mutex.sync {
392 | CBMCentralManagerMock.managers.append(WeakRef(self))
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1063:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1061 | if isAlreadyConnected {
1062 | queue.async { [weak self] in
1063 | if let self = self, self.state == .connecting {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1064 | self.state = .connected
1065 | self._canSendWriteWithoutResponse = true
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1068:21: warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
1066 | self.mock.wasConnected = true
1067 | self.mock.virtualConnections += 1
1068 | completion(.success(()))
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1069 | }
1070 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1083:30: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1081 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1082 | // The connection could have been cancelled, or the request replaced, in the meantime.
1083 | guard let self = self, self.pendingConnectionRequest == requestId else {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1084 | return
1085 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1096:17: warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
1094 | self.state = .disconnected
1095 | }
1096 | completion(result)
| |- warning: capture of 'completion' with non-sendable type '(Result<Void, any Error>) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1097 | }
1098 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1111:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1109 | state = .disconnecting
1110 | queue.async { [weak self] in
1111 | if let self = self, self.state == .disconnecting {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1112 | self.state = .disconnected
1113 | completion()
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1113:21: warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
1111 | if let self = self, self.state == .disconnecting {
1112 | self.state = .disconnected
1113 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1114 | }
1115 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1129:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1127 | // `tearDownSimulation()` could have been called before this is called.
1128 | // See https://github.com/nordicsemi/IOS-CoreBluetooth-Mock/issues/25
1129 | if let self = self, self.state == .disconnecting,
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1130 | CBMCentralManagerMock.managerState == .poweredOn {
1131 | self.state = .disconnected
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1141:17: warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
1139 | didDisconnect: nil)
1140 | }
1141 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1142 | }
1143 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1161:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1159 | }
1160 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1161 | if let self = self, CBMCentralManagerMock.managerState == .poweredOn {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1162 | if isReconnecting {
1163 | self.state = .connecting
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1169:17: warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a '@Sendable' closure
1167 | }
1168 | self._canSendWriteWithoutResponse = false
1169 | completion(error)
| |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1170 | }
1171 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1182:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1180 | }
1181 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1182 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1183 | self.delegate?.peripheralDidUpdateName(self)
1184 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1205:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1203 | let invalidatedServices = oldServices.filter { !services!.contains($0) }
1204 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1205 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1206 | self.delegate?.peripheral(self, didModifyServices: invalidatedServices)
1207 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1206:68: warning: capture of 'invalidatedServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1204 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1205 | if let self = self, self.state == .connected {
1206 | self.delegate?.peripheral(self, didModifyServices: invalidatedServices)
| `- warning: capture of 'invalidatedServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1207 | }
1208 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1228:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1226 | let value = originalCharacteristic.value
1227 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1228 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1229 | characteristic.value = value
1230 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1229:17: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1227 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1228 | if let self = self, self.state == .connected {
1229 | characteristic.value = value
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1230 | self.delegate?.peripheral(self,
1231 | didUpdateValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1274:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1272 | let delay = interval * Double(newServices.count)
1273 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1274 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1275 | // The services become available when discovery completes.
1276 | let known = self.services ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1277:33: warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1275 | // The services become available when discovery completes.
1276 | let known = self.services ?? []
1277 | let added = newServices.filter { s in
| `- warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1278 | !known.contains { $0.identifier == s.identifier }
1279 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1290:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1288 | case .failure(let error):
1289 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1290 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1291 | self.delegate?.peripheral(self, didDiscoverServices: error)
1292 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1330:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1328 | let delay = interval * Double(newServices.count)
1329 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1330 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1331 | // The services become available when discovery completes.
1332 | let known = service._includedServices ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1332:33: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1330 | if let self = self, self.state == .connected {
1331 | // The services become available when discovery completes.
1332 | let known = service._includedServices ?? []
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1333 | let added = newServices.filter { s in
1334 | !known.contains { $0.identifier == s.identifier }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1333:33: warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1331 | // The services become available when discovery completes.
1332 | let known = service._includedServices ?? []
1333 | let added = newServices.filter { s in
| `- warning: capture of 'newServices' with non-sendable type '[CBMService]' in a '@Sendable' closure
1334 | !known.contains { $0.identifier == s.identifier }
1335 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1346:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1344 | case .failure(let error):
1345 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1346 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1347 | self.delegate?.peripheral(self,
1348 | didDiscoverIncludedServicesFor: service,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1348:79: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1346 | if let self = self, self.state == .connected {
1347 | self.delegate?.peripheral(self,
1348 | didDiscoverIncludedServicesFor: service,
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1349 | error: error)
1350 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1389:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1387 | let delay = interval * Double(newCharacteristics.count)
1388 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1389 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1390 | // The characteristics become available when discovery completes.
1391 | let known = service._characteristics ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1391:33: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1389 | if let self = self, self.state == .connected {
1390 | // The characteristics become available when discovery completes.
1391 | let known = service._characteristics ?? []
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1392 | let added = newCharacteristics.filter { c in
1393 | !known.contains { $0.identifier == c.identifier }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1392:33: warning: capture of 'newCharacteristics' with non-sendable type '[CBMCharacteristic]' in a '@Sendable' closure
1390 | // The characteristics become available when discovery completes.
1391 | let known = service._characteristics ?? []
1392 | let added = newCharacteristics.filter { c in
| `- warning: capture of 'newCharacteristics' with non-sendable type '[CBMCharacteristic]' in a '@Sendable' closure
1393 | !known.contains { $0.identifier == c.identifier }
1394 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1405:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1403 | case .failure(let error):
1404 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1405 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1406 | self.delegate?.peripheral(self,
1407 | didDiscoverCharacteristicsFor: service,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1407:78: warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1405 | if let self = self, self.state == .connected {
1406 | self.delegate?.peripheral(self,
1407 | didDiscoverCharacteristicsFor: service,
| `- warning: capture of 'service' with non-sendable type 'CBMService' in a '@Sendable' closure
1408 | error: error)
1409 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:53:12: note: class 'CBMService' does not conform to the 'Sendable' protocol
51 | /// `CBMService` objects represent services of a remote peripheral. Services are either primary or secondary and
52 | /// may contain multiple characteristics or included services (references to other services).
53 | open class CBMService: CBMAttribute {
| `- note: class 'CBMService' does not conform to the 'Sendable' protocol
54 | internal let identifier: UUID
55 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1444:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1442 | let delay = interval * Double(newDescriptors.count)
1443 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1444 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1445 | // The descriptors become available when discovery completes.
1446 | let known = characteristic._descriptors ?? []
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1446:33: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1444 | if let self = self, self.state == .connected {
1445 | // The descriptors become available when discovery completes.
1446 | let known = characteristic._descriptors ?? []
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1447 | let added = newDescriptors.filter { d in
1448 | !known.contains { $0.identifier == d.identifier }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1447:33: warning: capture of 'newDescriptors' with non-sendable type '[CBMDescriptor]' in a '@Sendable' closure
1445 | // The descriptors become available when discovery completes.
1446 | let known = characteristic._descriptors ?? []
1447 | let added = newDescriptors.filter { d in
| `- warning: capture of 'newDescriptors' with non-sendable type '[CBMDescriptor]' in a '@Sendable' closure
1448 | !known.contains { $0.identifier == d.identifier }
1449 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1460:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1458 | case .failure(let error):
1459 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1460 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1461 | self.delegate?.peripheral(self,
1462 | didDiscoverDescriptorsFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1462:74: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1460 | if let self = self, self.state == .connected {
1461 | self.delegate?.peripheral(self,
1462 | didDiscoverDescriptorsFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1463 | error: error)
1464 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1489:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1487 | case .success(let data):
1488 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1489 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1490 | characteristic.value = data
1491 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1490:21: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1488 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1489 | if let self = self, self.state == .connected {
1490 | characteristic.value = data
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1491 | self.delegate?.peripheral(self,
1492 | didUpdateValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1498:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1496 | case .failure(let error):
1497 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1498 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1499 | self.delegate?.peripheral(self,
1500 | didUpdateValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1500:66: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1498 | if let self = self, self.state == .connected {
1499 | self.delegate?.peripheral(self,
1500 | didUpdateValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1501 | error: error)
1502 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1525:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1523 | case .success(let data):
1524 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1525 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1526 | descriptor.value = data
1527 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1526:21: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1524 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1525 | if let self = self, self.state == .connected {
1526 | descriptor.value = data
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1527 | self.delegate?.peripheral(self,
1528 | didUpdateValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1534:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1532 | case .failure(let error):
1533 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1534 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1535 | self.delegate?.peripheral(self,
1536 | didUpdateValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1536:66: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1534 | if let self = self, self.state == .connected {
1535 | self.delegate?.peripheral(self,
1536 | didUpdateValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1537 | error: error)
1538 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1570:35: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1568 | let delay = interval * Double(packetsCount)
1569 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
1570 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1571 | self.delegate?.peripheral(self,
1572 | didWriteValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1572:69: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1570 | if let self = self, self.state == .connected {
1571 | self.delegate?.peripheral(self,
1572 | didWriteValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1573 | error: nil)
1574 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1578:35: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1576 | case .failure(let error):
1577 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1578 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1579 | self.delegate?.peripheral(self,
1580 | didWriteValueFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1580:69: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1578 | if let self = self, self.state == .connected {
1579 | self.delegate?.peripheral(self,
1580 | didWriteValueFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1581 | error: error)
1582 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1606:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1604 |
1605 | queue.async { [weak self] in
1606 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1607 | // Increase buffer.
1608 | self.mutex.sync {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1639:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1637 | case .success:
1638 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1639 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1640 | self.delegate?.peripheral(self,
1641 | didWriteValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1641:65: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1639 | if let self = self, self.state == .connected {
1640 | self.delegate?.peripheral(self,
1641 | didWriteValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1642 | error: nil)
1643 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1647:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1645 | case .failure(let error):
1646 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1647 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1648 | self.delegate?.peripheral(self,
1649 | didWriteValueFor: descriptor,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1649:65: warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1647 | if let self = self, self.state == .connected {
1648 | self.delegate?.peripheral(self,
1649 | didWriteValueFor: descriptor,
| `- warning: capture of 'descriptor' with non-sendable type 'CBMDescriptor' in a '@Sendable' closure
1650 | error: error)
1651 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:378:12: note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
376 | /// ``CBMUUID`` details six predefined descriptors and their corresponding value types. `CBMDescriptor` lists the
377 | /// predefined descriptors and the ``CBMUUID`` constants that represent them.
378 | open class CBMDescriptor: CBMAttribute {
| `- note: class 'CBMDescriptor' does not conform to the 'Sendable' protocol
379 | internal let identifier: UUID
380 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1694:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1692 | case .success:
1693 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1694 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1695 | characteristic.isNotifying = enabled
1696 | self.delegate?.peripheral(self,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1695:21: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1693 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1694 | if let self = self, self.state == .connected {
1695 | characteristic.isNotifying = enabled
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1696 | self.delegate?.peripheral(self,
1697 | didUpdateNotificationStateFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1699:21: warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1697 | didUpdateNotificationStateFor: characteristic,
1698 | error: nil)
1699 | mockCharacteristic.isNotifying = enabled
| `- warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1700 | delegate.peripheral(self.mock,
1701 | didUpdateNotificationStateFor: mockCharacteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:339:12: note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
337 |
338 | /// Mock implementation of ``CBMCharacteristic``.
339 | open class CBMCharacteristicMock: CBMCharacteristic {
| `- note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
340 |
341 | open override var descriptors: [CBMDescriptor]? {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1700:21: warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1698 | error: nil)
1699 | mockCharacteristic.isNotifying = enabled
1700 | delegate.peripheral(self.mock,
| `- warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1701 | didUpdateNotificationStateFor: mockCharacteristic,
1702 | error: nil)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift:34:17: note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
32 |
33 | /// This delegate should implement the behavior of a real Bluetooth LE device during a connection.
34 | public protocol CBMPeripheralSpecDelegate {
| `- note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
35 |
36 | /// This method is called when the mock peripheral has been reset.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1707:31: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1705 | case .failure(let error):
1706 | queue.asyncAfter(deadline: .now() + interval) { [weak self] in
1707 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1708 | self.delegate?.peripheral(self,
1709 | didUpdateNotificationStateFor: characteristic,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1709:78: warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1707 | if let self = self, self.state == .connected {
1708 | self.delegate?.peripheral(self,
1709 | didUpdateNotificationStateFor: characteristic,
| `- warning: capture of 'characteristic' with non-sendable type 'CBMCharacteristic' in a '@Sendable' closure
1710 | error: error)
1711 | delegate.peripheral(self.mock,
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:236:12: note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
234 | /// of descriptors describing that value. The properties of a characteristic determine how you can use a characteristic’s value,
235 | /// and how you access the descriptors.
236 | open class CBMCharacteristic: CBMAttribute {
| `- note: class 'CBMCharacteristic' does not conform to the 'Sendable' protocol
237 | internal let identifier: UUID
238 | private let _uuid: CBMUUID
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1711:21: warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1709 | didUpdateNotificationStateFor: characteristic,
1710 | error: error)
1711 | delegate.peripheral(self.mock,
| `- warning: capture of 'delegate' with non-sendable type 'any CBMPeripheralSpecDelegate' in a '@Sendable' closure
1712 | didUpdateNotificationStateFor: mockCharacteristic,
1713 | error: error)
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift:34:17: note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
32 |
33 | /// This delegate should implement the behavior of a real Bluetooth LE device during a connection.
34 | public protocol CBMPeripheralSpecDelegate {
| `- note: protocol 'CBMPeripheralSpecDelegate' does not conform to the 'Sendable' protocol
35 |
36 | /// This method is called when the mock peripheral has been reset.
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1712:72: warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1710 | error: error)
1711 | delegate.peripheral(self.mock,
1712 | didUpdateNotificationStateFor: mockCharacteristic,
| `- warning: capture of 'mockCharacteristic' with non-sendable type 'CBMCharacteristicMock' in a '@Sendable' closure
1713 | error: error)
1714 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/CBMAttributes.swift:339:12: note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
337 |
338 | /// Mock implementation of ``CBMCharacteristic``.
339 | open class CBMCharacteristicMock: CBMCharacteristic {
| `- note: class 'CBMCharacteristicMock' does not conform to the 'Sendable' protocol
340 |
341 | open override var descriptors: [CBMDescriptor]? {
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1725:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1723 | guard manager.ensurePoweredOn() else { return }
1724 | queue.async { [weak self] in
1725 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1726 | let rssi = self.mock.proximity.RSSI
1727 | let delta = CBMCentralManagerMock.rssiDeviation.value
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:1745:27: warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
927 | ///
928 | /// Unless required, this class should not be accessed directly, but rather by the common protocol ``CBMPeripheral``.
929 | @objc open class CBMPeripheralMock: CBMPeer, CBMPeripheral {
| `- note: class 'CBMPeripheralMock' does not conform to the 'Sendable' protocol
930 | /// The parent central manager.
931 | private let manager: CBMCentralManagerMock
:
1743 | NSLog("[CoreBluetoothMock] L2CAP channels are not implemented in the mock. Opening channel with PSM \(PSM) failed.")
1744 | queue.async { [weak self] in
1745 | if let self = self, self.state == .connected {
| `- warning: capture of 'self' with non-sendable type 'CBMPeripheralMock?' in a '@Sendable' closure
1746 | self.delegate?.peripheral(self, didOpen: nil, error: CBMError(.operationNotSupported))
1747 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:160:45: warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
158 | // The advertisement could have been stopped, or replaced, in the meantime.
159 | let isCurrent = mutex.sync { () -> Bool in
160 | guard pendingAdvertisements[config] == token else {
| |- warning: sending 'config' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'config' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
161 | return false
162 | }
/Users/admin/builder/spi-builder-workspace/CoreBluetoothMock/Central/CBMCentralManagerMock.swift:176:32: warning: sending 'mock' risks causing data races; this is an error in the Swift 6 language mode
174 | target: self,
175 | selector: #selector(self.schedule(timer:)),
176 | userInfo: (mock, config),
| |- warning: sending 'mock' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'mock' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 | repeats: false)
178 | } else {
[23/33] Compiling CoreBluetoothMock CBMCentralSpec.swift
[24/33] Compiling CoreBluetoothMock CBMCentralSpecDelegate.swift
[25/33] Compiling CoreBluetoothMock CBMPeripheralPreview.swift
[26/33] Compiling CoreBluetoothMock CBMCentralManager.swift
[27/33] Compiling CoreBluetoothMock CBMCentralManagerDelegate.swift
[28/33] Compiling CoreBluetoothMock CBMCentral.swift
[29/33] Compiling CoreBluetoothMock CBMPeripheralManager.swift
[30/33] Compiling CoreBluetoothMock CBMPeripheralManagerDelegate.swift
[31/33] Compiling CoreBluetoothMock CBMMutableAttributes.swift
[32/33] Compiling CoreBluetoothMock CBMPeer.swift
[33/33] Compiling CoreBluetoothMock CBMPeripheral.swift
Build complete! (20.80s)
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.32s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (4.45s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.01s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.70s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "CoreBluetoothMock",
"name" : "CoreBluetoothMock",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "CoreBluetoothMock",
"targets" : [
"CoreBluetoothMock"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "CoreBluetoothMockTests",
"module_type" : "SwiftTarget",
"name" : "CoreBluetoothMockTests",
"path" : "Tests/CoreBluetoothMockTests",
"sources" : [
"CentralBehaviorTestCase.swift",
"CentralManagerAdvancedBehaviorTest.swift",
"CentralManagerBehaviorTest.swift",
"DelegateQueueTest.swift",
"PeripheralBehaviorTest.swift",
"PeripheralManagerBehaviorTest.swift",
"PeripheralManagerDelegateQueueTest.swift",
"PeripheralManagerTest.swift"
],
"target_dependencies" : [
"CoreBluetoothMock"
],
"type" : "test"
},
{
"c99name" : "CoreBluetoothMock",
"module_type" : "SwiftTarget",
"name" : "CoreBluetoothMock",
"path" : "CoreBluetoothMock",
"product_memberships" : [
"CoreBluetoothMock"
],
"sources" : [
"CBMAttributes.swift",
"CBMDictionary.swift",
"CBMManagerTypes.swift",
"CBMMutableAttributes.swift",
"CBMPeer.swift",
"CBMPeripheral.swift",
"CBMPeripheralPreview.swift",
"Central/CBMCentralManager.swift",
"Central/CBMCentralManagerDelegate.swift",
"Central/CBMCentralManagerDelegateProxy.swift",
"Central/CBMCentralManagerFactory.swift",
"Central/CBMCentralManagerMock.swift",
"Central/CBMCentralManagerNative.swift",
"Central/CBMPeripheralDelegate.swift",
"Central/CBMPeripheralDelegateProxy.swift",
"Central/PeripheralPeer/CBMPeripheralSpec.swift",
"Central/PeripheralPeer/CBMPeripheralSpecDelegate.swift",
"Peripheral/CBMATTRequest.swift",
"Peripheral/CBMCentral.swift",
"Peripheral/CBMPeripheralManager.swift",
"Peripheral/CBMPeripheralManagerDelegate.swift",
"Peripheral/CBMPeripheralManagerFactory.swift",
"Peripheral/CBMPeripheralManagerMock.swift",
"Peripheral/CBMPeripheralManagerNative.swift",
"Peripheral/CentralPeer/CBMCentralSpec.swift",
"Peripheral/CentralPeer/CBMCentralSpecDelegate.swift",
"Specs/Blinky.swift",
"Specs/UART.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.