Build Information
Successful build of iOS-BLE-Library, reference 0.4.2 (d559c0
), with Swift 6.1 for macOS (SPM) on 4 Sep 2025 07:27:52 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NordicSemiconductor/IOS-BLE-Library.git
Reference: 0.4.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/NordicSemiconductor/IOS-BLE-Library
* tag 0.4.2 -> FETCH_HEAD
HEAD is now at d559c0a Copied files from native CoreBluetooth version to CoreBluetoothMock
Cloned https://github.com/NordicSemiconductor/IOS-BLE-Library.git
Revision (git rev-parse @):
d559c0a9ed637e8c52516e36d82c880234b1cb2a
SUCCESS checkout https://github.com/NordicSemiconductor/IOS-BLE-Library.git at 0.4.2
Fetching https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/NickKibish/iOS-Bluetooth-Numbers-Database.git
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/NickKibish/CoreBluetoothMock-Collection.git
[1/85] Fetching corebluetoothmock-collection
[86/2179] Fetching corebluetoothmock-collection, swift-docc-plugin
[170/2408] Fetching corebluetoothmock-collection, swift-docc-plugin, ios-bluetooth-numbers-database
[326/8955] Fetching corebluetoothmock-collection, swift-docc-plugin, ios-bluetooth-numbers-database, ios-corebluetooth-mock
[477/12456] Fetching corebluetoothmock-collection, swift-docc-plugin, ios-bluetooth-numbers-database, ios-corebluetooth-mock, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin from cache (1.23s)
Fetched https://github.com/NickKibish/iOS-Bluetooth-Numbers-Database.git from cache (1.23s)
[9872/10133] Fetching corebluetoothmock-collection, ios-corebluetooth-mock, swift-docc-symbolkit
Fetched https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git from cache (1.33s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.33s)
Fetched https://github.com/NickKibish/CoreBluetoothMock-Collection.git from cache (1.33s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (1.93s)
Computing version for https://github.com/NickKibish/CoreBluetoothMock-Collection.git
Computed https://github.com/NickKibish/CoreBluetoothMock-Collection.git at 1.0.0 (0.59s)
Computing version for https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git
Computed https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git at 0.17.0 (0.59s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.63s)
Computing version for https://github.com/NickKibish/iOS-Bluetooth-Numbers-Database.git
Computed https://github.com/NickKibish/iOS-Bluetooth-Numbers-Database.git at 1.0.0 (0.58s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/NickKibish/CoreBluetoothMock-Collection.git
Working copy of https://github.com/NickKibish/CoreBluetoothMock-Collection.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/NickKibish/iOS-Bluetooth-Numbers-Database.git
Working copy of https://github.com/NickKibish/iOS-Bluetooth-Numbers-Database.git resolved at 1.0.0
Creating working copy for https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git
Working copy of https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git resolved at 0.17.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "ios-ble-library",
"name": "iOS-BLE-Library",
"url": "https://github.com/NordicSemiconductor/IOS-BLE-Library.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/IOS-BLE-Library",
"dependencies": [
{
"identity": "ios-corebluetooth-mock",
"name": "CoreBluetoothMock",
"url": "https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git",
"version": "0.18.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/IOS-CoreBluetooth-Mock",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/NordicSemiconductor/IOS-BLE-Library.git
[1/3305] Fetching ios-ble-library
Fetched https://github.com/NordicSemiconductor/IOS-BLE-Library.git from cache (1.03s)
Fetching https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git from cache
Fetched https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git from cache (0.46s)
Computing version for https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git
Computed https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git at 0.18.0 (0.51s)
Creating working copy for https://github.com/NordicSemiconductor/IOS-BLE-Library.git
Working copy of https://github.com/NordicSemiconductor/IOS-BLE-Library.git resolved at 0.4.2 (d559c0a)
Creating working copy for https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git
Working copy of https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git resolved at 0.18.0
warning: '.resolve-product-dependencies': dependency 'ios-ble-library' is not used by any target
Found 1 product dependencies
- CoreBluetoothMock
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/NordicSemiconductor/IOS-BLE-Library.git
https://github.com/NordicSemiconductor/IOS-BLE-Library.git
{
"dependencies" : [
{
"identity" : "ios-corebluetooth-mock",
"requirement" : {
"range" : [
{
"lower_bound" : "0.17.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git"
},
{
"identity" : "corebluetoothmock-collection",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/NickKibish/CoreBluetoothMock-Collection.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "iOS-BLE-Library",
"name" : "iOS-BLE-Library",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "iOS-BLE-Library",
"targets" : [
"iOS-BLE-Library"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "iOS-BLE-Library-Mock",
"targets" : [
"iOS-BLE-Library-Mock"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "iOS_BLE_LibraryTests",
"module_type" : "SwiftTarget",
"name" : "iOS-BLE-LibraryTests",
"path" : "Tests/iOS-BLE-LibraryTests",
"product_dependencies" : [
"CoreBluetoothMock-Collection"
],
"sources" : [
"CentralManagerStateTest.swift",
"CentralManagerTests.swift",
"PeripheralMultitaskingTests.swift",
"PeripheralReadWriteDescriptorTests.swift"
],
"target_dependencies" : [
"iOS-BLE-Library-Mock"
],
"type" : "test"
},
{
"c99name" : "iOS_BLE_Library_Mock",
"module_type" : "SwiftTarget",
"name" : "iOS-BLE-Library-Mock",
"path" : "Sources/iOS-BLE-Library-Mock",
"product_dependencies" : [
"CoreBluetoothMock"
],
"product_memberships" : [
"iOS-BLE-Library-Mock"
],
"sources" : [
"Alias.swift",
"CentralManager/CentralManager.swift",
"CentralManager/Model/ScanResult.swift",
"CentralManager/ReactiveCentralManagerDelegate.swift",
"Peripheral/Peripheral+Writer.swift",
"Peripheral/Peripheral.swift",
"Peripheral/ReactivePeripheralDelegate.swift",
"Utilities/AdvertisementData.swift",
"Utilities/AsyncCharacteristicData.swift",
"Utilities/CBManagerState.swift",
"Utilities/Extensions/CBManagerState+Ext.swift",
"Utilities/Extensions/Data+Ext.swift.swift",
"Utilities/Extensions/Publishers+Async.swift",
"Utilities/Logger.swift",
"Utilities/Publishers/ContinuationSubscriber.swift",
"Utilities/Publishers/Publishers+Bluetooth.swift",
"Utilities/Publishers/Publishers+Connectable.swift",
"Utilities/Publishers/Publishers+FailablePrefix.swift.swift",
"Utilities/Publishers/Publishers+GuestList.swift",
"Utilities/Publishers/Publishers+Peripheral.swift",
"Utilities/Queue.swift",
"Utilities/RSSI.swift",
"Utilities/UnimplementedError.swift"
],
"target_dependencies" : [
"iOS-BLE-Library"
],
"type" : "library"
},
{
"c99name" : "iOS_BLE_Library",
"module_type" : "SwiftTarget",
"name" : "iOS-BLE-Library",
"path" : "Sources/iOS-BLE-Library",
"product_memberships" : [
"iOS-BLE-Library",
"iOS-BLE-Library-Mock"
],
"sources" : [
"CentralManager/CentralManager.swift",
"CentralManager/Model/ScanResult.swift",
"CentralManager/ReactiveCentralManagerDelegate.swift",
"Peripheral/Peripheral+Writer.swift",
"Peripheral/Peripheral.swift",
"Peripheral/ReactivePeripheralDelegate.swift",
"Utilities/AdvertisementData.swift",
"Utilities/AsyncCharacteristicData.swift",
"Utilities/CBManagerState.swift",
"Utilities/Extensions/CBManagerState+Ext.swift",
"Utilities/Extensions/Data+Ext.swift.swift",
"Utilities/Extensions/Publishers+Async.swift",
"Utilities/Logger.swift",
"Utilities/Publishers/ContinuationSubscriber.swift",
"Utilities/Publishers/Publishers+Bluetooth.swift",
"Utilities/Publishers/Publishers+Connectable.swift",
"Utilities/Publishers/Publishers+FailablePrefix.swift.swift",
"Utilities/Publishers/Publishers+GuestList.swift",
"Utilities/Queue.swift",
"Utilities/RSSI.swift",
"Utilities/UnimplementedError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/6] Write sources
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/41] Compiling CoreBluetoothMock CBMPeripheralDelegateProxy.swift
[8/42] Compiling iOS_BLE_Library Publishers+Connectable.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Publishers/Publishers+FailablePrefix.swift.swift:41:10: warning: Thread safety should be considered
39 | }
40 |
41 | #warning("Thread safety should be considered")
| `- warning: Thread safety should be considered
42 | extension Publishers.PrefixUntilOutputOrCompletion {
43 | private final class Inner<Downstream: Subscriber>: Subscriber, Subscription
[9/42] Compiling iOS_BLE_Library Publishers+FailablePrefix.swift.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Publishers/Publishers+FailablePrefix.swift.swift:41:10: warning: Thread safety should be considered
39 | }
40 |
41 | #warning("Thread safety should be considered")
| `- warning: Thread safety should be considered
42 | extension Publishers.PrefixUntilOutputOrCompletion {
43 | private final class Inner<Downstream: Subscriber>: Subscriber, Subscription
[10/44] Compiling CoreBluetoothMock CBMPeripheralPreview.swift
[11/44] Compiling CoreBluetoothMock CBMPeripheralSpec.swift
[12/44] Compiling iOS_BLE_Library ReactivePeripheralDelegate.swift
[13/44] Compiling iOS_BLE_Library AdvertisementData.swift
[14/44] Compiling CoreBluetoothMock CBMPeripheralDelegate.swift
[15/44] Compiling iOS_BLE_Library Peripheral+Writer.swift
[16/44] Compiling iOS_BLE_Library Peripheral.swift
[17/44] Compiling iOS_BLE_Library Publishers+GuestList.swift
[18/44] Compiling iOS_BLE_Library Queue.swift
[19/44] Emitting module CoreBluetoothMock
[20/44] Compiling iOS_BLE_Library CBManagerState+Ext.swift
[21/44] Compiling iOS_BLE_Library Data+Ext.swift.swift
[22/44] Compiling iOS_BLE_Library ContinuationSubscriber.swift
[23/44] Compiling iOS_BLE_Library Publishers+Bluetooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Peripheral/Peripheral.swift:45:23: warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
22 | }
23 |
24 | private class NativeObserver: Observer {
| `- note: class 'NativeObserver' does not conform to the 'Sendable' protocol
25 | @objc private var peripheral: CoreBluetooth.CBPeripheral
26 |
:
43 | [weak self] _, change in
44 | // TODO: Check threads
45 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
46 | self.publisher.send(self.peripheral.state)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Peripheral/Peripheral.swift:45:23: warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
22 | }
23 |
24 | private class NativeObserver: Observer {
| `- note: class 'NativeObserver' does not conform to the 'Sendable' protocol
25 | @objc private var peripheral: CoreBluetooth.CBPeripheral
26 |
:
43 | [weak self] _, change in
44 | // TODO: Check threads
45 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
46 | self.publisher.send(self.peripheral.state)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Publishers/ContinuationSubscriber.swift:52:16: warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | self.state = .terminated
52 | continuation.resume(returning: input)
| |- warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'input' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 |
54 | self.subscription?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Publishers/ContinuationSubscriber.swift:52:16: warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | self.state = .terminated
52 | continuation.resume(returning: input)
| |- warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'input' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 |
54 | self.subscription?.cancel()
[32/44] Emitting module iOS_BLE_Library
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:201:11: warning: check `connect` method
199 | // MARK: Retrieving Lists of Peripherals
200 | extension CentralManager {
201 | #warning("check `connect` method")
| `- warning: check `connect` method
202 | /// Returns a list of the peripherals connected to the system whose
203 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:232:11: warning: Question: Should we throw an error if the scan is already running?
230 | // MARK: Scanning or Stopping Scans of Peripherals
231 | extension CentralManager {
232 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
233 | /// Initiates a scan for peripherals with the specified services.
234 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Logger.swift:13:16: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, watchOS 7.0, *)
12 | private struct Loggers {
13 | static var loggers: [UUID : Logger] = [:]
| |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Publishers/Publishers+FailablePrefix.swift.swift:41:10: warning: Thread safety should be considered
39 | }
40 |
41 | #warning("Thread safety should be considered")
| `- warning: Thread safety should be considered
42 | extension Publishers.PrefixUntilOutputOrCompletion {
43 | private final class Inner<Downstream: Subscriber>: Subscriber, Subscription
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:59:20: warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
57 | extension RSSI {
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
| |- warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'outOfRange' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:60:20: warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
| |- warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'practicalWorst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:61:20: warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
| |- warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bad' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:62:20: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let good = RSSI(integerLiteral: Const.good)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:63:20: warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
| |- warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'good' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[35/44] Compiling iOS_BLE_Library Publishers+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:47:5: warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | } onCancel: {
46 | [inner] in
47 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | }
49 | }
:
66 |
67 | extension AsyncPublisher.Iterator {
68 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
69 | typealias Input = Upstream.Output
70 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:180:5: warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | } onCancel: {
179 | [inner] in
180 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
:
200 | extension AsyncThrowingPublisher.Iterator {
201 |
202 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
203 | typealias Input = Upstream.Output
204 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Logger.swift:13:16: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, watchOS 7.0, *)
12 | private struct Loggers {
13 | static var loggers: [UUID : Logger] = [:]
| |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:111:17: warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
109 | let continuation = pending.removeFirst()
110 | lock.unlock()
111 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
112 | return .none
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:245:17: warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
243 | let continuation = pending.removeFirst()
244 | lock.unlock()
245 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
246 | return .none
247 | }
[36/44] Compiling iOS_BLE_Library Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:47:5: warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | } onCancel: {
46 | [inner] in
47 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | }
49 | }
:
66 |
67 | extension AsyncPublisher.Iterator {
68 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
69 | typealias Input = Upstream.Output
70 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:180:5: warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | } onCancel: {
179 | [inner] in
180 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
:
200 | extension AsyncThrowingPublisher.Iterator {
201 |
202 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
203 | typealias Input = Upstream.Output
204 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Logger.swift:13:16: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, watchOS 7.0, *)
12 | private struct Loggers {
13 | static var loggers: [UUID : Logger] = [:]
| |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:111:17: warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
109 | let continuation = pending.removeFirst()
110 | lock.unlock()
111 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
112 | return .none
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/Extensions/Publishers+Async.swift:245:17: warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
243 | let continuation = pending.removeFirst()
244 | lock.unlock()
245 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
246 | return .none
247 | }
[37/44] Compiling iOS_BLE_Library CentralManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:201:11: warning: check `connect` method
199 | // MARK: Retrieving Lists of Peripherals
200 | extension CentralManager {
201 | #warning("check `connect` method")
| `- warning: check `connect` method
202 | /// Returns a list of the peripherals connected to the system whose
203 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:232:11: warning: Question: Should we throw an error if the scan is already running?
230 | // MARK: Scanning or Stopping Scans of Peripherals
231 | extension CentralManager {
232 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
233 | /// Initiates a scan for peripherals with the specified services.
234 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:54:38: warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
35 | }
36 |
37 | private class Observer: NSObject {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
38 | @objc dynamic private weak var cm: CBCentralManager?
39 | private weak var publisher: CurrentValueSubject<Bool, Never>?
:
52 | changeHandler: { _, change in
53 |
54 | change.newValue?.flatMap { [weak self] new in
| `- warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
55 | self?.publisher?.send(new)
56 | }
[38/44] Compiling iOS_BLE_Library ScanResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:201:11: warning: check `connect` method
199 | // MARK: Retrieving Lists of Peripherals
200 | extension CentralManager {
201 | #warning("check `connect` method")
| `- warning: check `connect` method
202 | /// Returns a list of the peripherals connected to the system whose
203 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:232:11: warning: Question: Should we throw an error if the scan is already running?
230 | // MARK: Scanning or Stopping Scans of Peripherals
231 | extension CentralManager {
232 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
233 | /// Initiates a scan for peripherals with the specified services.
234 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:54:38: warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
35 | }
36 |
37 | private class Observer: NSObject {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
38 | @objc dynamic private weak var cm: CBCentralManager?
39 | private weak var publisher: CurrentValueSubject<Bool, Never>?
:
52 | changeHandler: { _, change in
53 |
54 | change.newValue?.flatMap { [weak self] new in
| `- warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
55 | self?.publisher?.send(new)
56 | }
[39/44] Compiling iOS_BLE_Library ReactiveCentralManagerDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:201:11: warning: check `connect` method
199 | // MARK: Retrieving Lists of Peripherals
200 | extension CentralManager {
201 | #warning("check `connect` method")
| `- warning: check `connect` method
202 | /// Returns a list of the peripherals connected to the system whose
203 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:232:11: warning: Question: Should we throw an error if the scan is already running?
230 | // MARK: Scanning or Stopping Scans of Peripherals
231 | extension CentralManager {
232 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
233 | /// Initiates a scan for peripherals with the specified services.
234 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/CentralManager/CentralManager.swift:54:38: warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
35 | }
36 |
37 | private class Observer: NSObject {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
38 | @objc dynamic private weak var cm: CBCentralManager?
39 | private weak var publisher: CurrentValueSubject<Bool, Never>?
:
52 | changeHandler: { _, change in
53 |
54 | change.newValue?.flatMap { [weak self] new in
| `- warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
55 | self?.publisher?.send(new)
56 | }
[40/44] Compiling iOS_BLE_Library AsyncCharacteristicData.swift
[41/44] Compiling iOS_BLE_Library CBManagerState.swift
[42/44] Compiling CoreBluetoothMock CBMPeripheralSpecDelegate.swift
[43/44] Compiling iOS_BLE_Library RSSI.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:59:20: warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
57 | extension RSSI {
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
| |- warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'outOfRange' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:60:20: warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
| |- warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'practicalWorst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:61:20: warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
| |- warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bad' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:62:20: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let good = RSSI(integerLiteral: Const.good)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:63:20: warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
| |- warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'good' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[44/44] Compiling iOS_BLE_Library UnimplementedError.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:59:20: warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
57 | extension RSSI {
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
| |- warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'outOfRange' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:60:20: warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
| |- warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'practicalWorst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:61:20: warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
| |- warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bad' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:62:20: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let good = RSSI(integerLiteral: Const.good)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library/Utilities/RSSI.swift:63:20: warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
| |- warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'good' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[45/66] Emitting module iOS_BLE_Library_Mock
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:15:8: warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
13 | public enum Err: Error {
14 | case wrongManager
15 | case badState(CBManagerState)
| `- warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
16 | case unknownError
17 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/CBMManagerTypes.swift:34:13: note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
32 |
33 | /// The possible states of a Core Bluetooth manager.
34 | public enum CBMManagerState: Int {
| `- note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
35 | /// The manager’s state is unknown.
36 | case unknown
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
7 |
8 | import Combine
9 | import CoreBluetoothMock
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:192:11: warning: check `connect` method
190 | // MARK: Retrieving Lists of Peripherals
191 | extension CentralManager {
192 | #warning("check `connect` method")
| `- warning: check `connect` method
193 | /// Returns a list of the peripherals connected to the system whose
194 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:223:11: warning: Question: Should we throw an error if the scan is already running?
221 | // MARK: Scanning or Stopping Scans of Peripherals
222 | extension CentralManager {
223 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
224 | /// Initiates a scan for peripherals with the specified services.
225 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Logger.swift:13:13: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, watchOS 7.0, *)
12 | private struct Loggers {
13 | static var loggers: [UUID: Logger] = [:]
| |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Publishers/Publishers+FailablePrefix.swift.swift:41:10: warning: Thread safety should be considered
39 | }
40 |
41 | #warning("Thread safety should be considered")
| `- warning: Thread safety should be considered
42 | extension Publishers.PrefixUntilOutputOrCompletion {
43 | private final class Inner<Downstream: Subscriber>: Subscriber, Subscription
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:59:20: warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
57 | extension RSSI {
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
| |- warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'outOfRange' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:60:20: warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
| |- warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'practicalWorst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:61:20: warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
| |- warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bad' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:62:20: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let good = RSSI(integerLiteral: Const.good)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:63:20: warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
| |- warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'good' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[46/68] Compiling iOS_BLE_Library_Mock Publishers+FailablePrefix.swift.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Publishers/Publishers+FailablePrefix.swift.swift:41:10: warning: Thread safety should be considered
39 | }
40 |
41 | #warning("Thread safety should be considered")
| `- warning: Thread safety should be considered
42 | extension Publishers.PrefixUntilOutputOrCompletion {
43 | private final class Inner<Downstream: Subscriber>: Subscriber, Subscription
[47/68] Compiling iOS_BLE_Library_Mock Publishers+GuestList.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Publishers/Publishers+FailablePrefix.swift.swift:41:10: warning: Thread safety should be considered
39 | }
40 |
41 | #warning("Thread safety should be considered")
| `- warning: Thread safety should be considered
42 | extension Publishers.PrefixUntilOutputOrCompletion {
43 | private final class Inner<Downstream: Subscriber>: Subscriber, Subscription
[48/68] Compiling iOS_BLE_Library_Mock RSSI.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:59:20: warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
57 | extension RSSI {
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
| |- warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'outOfRange' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:60:20: warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
| |- warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'practicalWorst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:61:20: warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
| |- warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bad' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:62:20: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let good = RSSI(integerLiteral: Const.good)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:63:20: warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
| |- warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'good' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[49/68] Compiling iOS_BLE_Library_Mock UnimplementedError.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:59:20: warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
57 | extension RSSI {
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
| |- warning: static property 'outOfRange' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'outOfRange' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:60:20: warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
58 |
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
| |- warning: static property 'practicalWorst' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'practicalWorst' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:61:20: warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
59 | public static let outOfRange = RSSI(integerLiteral: Const.outOfRange)
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
| |- warning: static property 'bad' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bad' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:62:20: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
60 | public static let practicalWorst = RSSI(integerLiteral: Const.practicalWorst)
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ok' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let good = RSSI(integerLiteral: Const.good)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/RSSI.swift:63:20: warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public struct RSSI: ExpressibleByIntegerLiteral, Equatable, Hashable {
| `- note: consider making struct 'RSSI' conform to the 'Sendable' protocol
21 |
22 | public enum Signal {
:
61 | public static let bad = RSSI(integerLiteral: Const.bad)
62 | public static let ok = RSSI(integerLiteral: Const.ok)
63 | public static let good = RSSI(integerLiteral: Const.good)
| |- warning: static property 'good' is not concurrency-safe because non-'Sendable' type 'RSSI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'good' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
[50/68] Compiling iOS_BLE_Library_Mock Alias.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:15:8: warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
13 | public enum Err: Error {
14 | case wrongManager
15 | case badState(CBManagerState)
| `- warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
16 | case unknownError
17 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/CBMManagerTypes.swift:34:13: note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
32 |
33 | /// The possible states of a Core Bluetooth manager.
34 | public enum CBMManagerState: Int {
| `- note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
35 | /// The manager’s state is unknown.
36 | case unknown
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
7 |
8 | import Combine
9 | import CoreBluetoothMock
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:192:11: warning: check `connect` method
190 | // MARK: Retrieving Lists of Peripherals
191 | extension CentralManager {
192 | #warning("check `connect` method")
| `- warning: check `connect` method
193 | /// Returns a list of the peripherals connected to the system whose
194 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:223:11: warning: Question: Should we throw an error if the scan is already running?
221 | // MARK: Scanning or Stopping Scans of Peripherals
222 | extension CentralManager {
223 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
224 | /// Initiates a scan for peripherals with the specified services.
225 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:49:38: warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
30 | }
31 |
32 | private class Observer: NSObject {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
33 | @objc dynamic private weak var cm: CBCentralManager?
34 | private weak var publisher: CurrentValueSubject<Bool, Never>?
:
47 | changeHandler: { _, change in
48 |
49 | change.newValue?.flatMap { [weak self] new in
| `- warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
50 | self?.publisher?.send(new)
51 | }
[51/68] Compiling iOS_BLE_Library_Mock CentralManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:15:8: warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
13 | public enum Err: Error {
14 | case wrongManager
15 | case badState(CBManagerState)
| `- warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
16 | case unknownError
17 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/CBMManagerTypes.swift:34:13: note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
32 |
33 | /// The possible states of a Core Bluetooth manager.
34 | public enum CBMManagerState: Int {
| `- note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
35 | /// The manager’s state is unknown.
36 | case unknown
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
7 |
8 | import Combine
9 | import CoreBluetoothMock
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:192:11: warning: check `connect` method
190 | // MARK: Retrieving Lists of Peripherals
191 | extension CentralManager {
192 | #warning("check `connect` method")
| `- warning: check `connect` method
193 | /// Returns a list of the peripherals connected to the system whose
194 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:223:11: warning: Question: Should we throw an error if the scan is already running?
221 | // MARK: Scanning or Stopping Scans of Peripherals
222 | extension CentralManager {
223 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
224 | /// Initiates a scan for peripherals with the specified services.
225 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:49:38: warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
30 | }
31 |
32 | private class Observer: NSObject {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
33 | @objc dynamic private weak var cm: CBCentralManager?
34 | private weak var publisher: CurrentValueSubject<Bool, Never>?
:
47 | changeHandler: { _, change in
48 |
49 | change.newValue?.flatMap { [weak self] new in
| `- warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
50 | self?.publisher?.send(new)
51 | }
[52/68] Compiling iOS_BLE_Library_Mock ScanResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:15:8: warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
13 | public enum Err: Error {
14 | case wrongManager
15 | case badState(CBManagerState)
| `- warning: associated value 'badState' of 'Sendable'-conforming enum 'Err' has non-sendable type 'CBManagerState' (aka 'CBMManagerState'); this is an error in the Swift 6 language mode
16 | case unknownError
17 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/IOS-CoreBluetooth-Mock/CoreBluetoothMock/CBMManagerTypes.swift:34:13: note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
32 |
33 | /// The possible states of a Core Bluetooth manager.
34 | public enum CBMManagerState: Int {
| `- note: enum 'CBMManagerState' does not conform to the 'Sendable' protocol
35 | /// The manager’s state is unknown.
36 | case unknown
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
7 |
8 | import Combine
9 | import CoreBluetoothMock
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetoothMock'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:192:11: warning: check `connect` method
190 | // MARK: Retrieving Lists of Peripherals
191 | extension CentralManager {
192 | #warning("check `connect` method")
| `- warning: check `connect` method
193 | /// Returns a list of the peripherals connected to the system whose
194 | /// services match a given set of criteria.
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:223:11: warning: Question: Should we throw an error if the scan is already running?
221 | // MARK: Scanning or Stopping Scans of Peripherals
222 | extension CentralManager {
223 | #warning("Question: Should we throw an error if the scan is already running?")
| `- warning: Question: Should we throw an error if the scan is already running?
224 | /// Initiates a scan for peripherals with the specified services.
225 | ///
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/CentralManager/CentralManager.swift:49:38: warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
30 | }
31 |
32 | private class Observer: NSObject {
| `- note: class 'Observer' does not conform to the 'Sendable' protocol
33 | @objc dynamic private weak var cm: CBCentralManager?
34 | private weak var publisher: CurrentValueSubject<Bool, Never>?
:
47 | changeHandler: { _, change in
48 |
49 | change.newValue?.flatMap { [weak self] new in
| `- warning: capture of 'self' with non-sendable type 'Observer' in a '@Sendable' closure
50 | self?.publisher?.send(new)
51 | }
[53/68] Compiling iOS_BLE_Library_Mock Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Logger.swift:13:13: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, watchOS 7.0, *)
12 | private struct Loggers {
13 | static var loggers: [UUID: Logger] = [:]
| |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Publishers/ContinuationSubscriber.swift:52:16: warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | self.state = .terminated
52 | continuation.resume(returning: input)
| |- warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'input' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 |
54 | self.subscription?.cancel()
[54/68] Compiling iOS_BLE_Library_Mock ContinuationSubscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Logger.swift:13:13: warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 14.0, macOS 11, watchOS 7.0, *)
12 | private struct Loggers {
13 | static var loggers: [UUID: Logger] = [:]
| |- warning: static property 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'loggers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Publishers/ContinuationSubscriber.swift:52:16: warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
50 | }
51 | self.state = .terminated
52 | continuation.resume(returning: input)
| |- warning: sending 'input' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'input' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
53 |
54 | self.subscription?.cancel()
[55/68] Compiling iOS_BLE_Library_Mock Publishers+Peripheral.swift
[56/68] Compiling iOS_BLE_Library_Mock Queue.swift
[57/68] Compiling iOS_BLE_Library_Mock Publishers+Bluetooth.swift
[58/68] Compiling iOS_BLE_Library_Mock Publishers+Connectable.swift
[59/68] Compiling iOS_BLE_Library_Mock CBManagerState.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/CBManagerState+Ext.swift:21:3: warning: default will never be executed
19 | case .poweredOff, .unauthorized, .unsupported:
20 | return false
21 | default:
| `- warning: default will never be executed
22 | return false
23 | }
[60/68] Compiling iOS_BLE_Library_Mock CBManagerState+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/CBManagerState+Ext.swift:21:3: warning: default will never be executed
19 | case .poweredOff, .unauthorized, .unsupported:
20 | return false
21 | default:
| `- warning: default will never be executed
22 | return false
23 | }
[61/68] Compiling iOS_BLE_Library_Mock Data+Ext.swift.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:47:5: warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | } onCancel: {
46 | [inner] in
47 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | }
49 | }
:
66 |
67 | extension AsyncPublisher.Iterator {
68 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
69 | typealias Input = Upstream.Output
70 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:180:5: warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | } onCancel: {
179 | [inner] in
180 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
:
200 | extension AsyncThrowingPublisher.Iterator {
201 |
202 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
203 | typealias Input = Upstream.Output
204 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:111:17: warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
109 | let continuation = pending.removeFirst()
110 | lock.unlock()
111 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
112 | return .none
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:245:17: warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
243 | let continuation = pending.removeFirst()
244 | lock.unlock()
245 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
246 | return .none
247 | }
[62/68] Compiling iOS_BLE_Library_Mock Publishers+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:47:5: warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
45 | } onCancel: {
46 | [inner] in
47 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | }
49 | }
:
66 |
67 | extension AsyncPublisher.Iterator {
68 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
69 | typealias Input = Upstream.Output
70 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:180:5: warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
178 | } onCancel: {
179 | [inner] in
180 | inner.cancel()
| `- warning: capture of 'inner' with non-sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner' in a '@Sendable' closure; this is an error in the Swift 6 language mode
181 | }
182 | }
:
200 | extension AsyncThrowingPublisher.Iterator {
201 |
202 | fileprivate final class Inner: Subscriber, Cancellable {
| `- note: class 'Inner' does not conform to the 'Sendable' protocol
203 | typealias Input = Upstream.Output
204 | typealias Failure = Upstream.Failure
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:111:17: warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
109 | let continuation = pending.removeFirst()
110 | lock.unlock()
111 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
112 | return .none
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Utilities/Extensions/Publishers+Async.swift:245:17: warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
243 | let continuation = pending.removeFirst()
244 | lock.unlock()
245 | continuation.resume(returning: input)
| |- warning: sending value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'AsyncThrowingPublisher<Upstream>.Iterator.Inner.Input' (aka 'Upstream.Output') as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
246 | return .none
247 | }
[63/68] Compiling iOS_BLE_Library_Mock ReactiveCentralManagerDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:38:14: warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
15 | }
16 |
17 | private class NativeObserver: Observer {
| `- note: class 'NativeObserver' does not conform to the 'Sendable' protocol
18 | @objc private var peripheral: CoreBluetooth.CBPeripheral
19 |
:
36 | [weak self] _, change in
37 | // TODO: Check threads
38 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
39 | self.publisher.send(self.peripheral.state)
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:62:13: warning: queue can be not only main
60 | observation = peripheral.observe(\.state, options: [.new]) {
61 | [weak self] _, change in
62 | #warning("queue can be not only main")
| `- warning: queue can be not only main
63 | DispatchQueue.main.async {
64 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:64:15: warning: capture of 'self' with non-sendable type 'MockObserver?' in a '@Sendable' closure
42 | }
43 |
44 | private class MockObserver: Observer {
| `- note: class 'MockObserver' does not conform to the 'Sendable' protocol
45 | @objc private var peripheral: CBMPeripheralMock
46 |
:
62 | #warning("queue can be not only main")
63 | DispatchQueue.main.async {
64 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'MockObserver?' in a '@Sendable' closure
65 | self.publisher.send(self.peripheral.state)
66 | }
[64/68] Compiling iOS_BLE_Library_Mock Peripheral+Writer.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:38:14: warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
15 | }
16 |
17 | private class NativeObserver: Observer {
| `- note: class 'NativeObserver' does not conform to the 'Sendable' protocol
18 | @objc private var peripheral: CoreBluetooth.CBPeripheral
19 |
:
36 | [weak self] _, change in
37 | // TODO: Check threads
38 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
39 | self.publisher.send(self.peripheral.state)
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:62:13: warning: queue can be not only main
60 | observation = peripheral.observe(\.state, options: [.new]) {
61 | [weak self] _, change in
62 | #warning("queue can be not only main")
| `- warning: queue can be not only main
63 | DispatchQueue.main.async {
64 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:64:15: warning: capture of 'self' with non-sendable type 'MockObserver?' in a '@Sendable' closure
42 | }
43 |
44 | private class MockObserver: Observer {
| `- note: class 'MockObserver' does not conform to the 'Sendable' protocol
45 | @objc private var peripheral: CBMPeripheralMock
46 |
:
62 | #warning("queue can be not only main")
63 | DispatchQueue.main.async {
64 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'MockObserver?' in a '@Sendable' closure
65 | self.publisher.send(self.peripheral.state)
66 | }
[65/68] Compiling iOS_BLE_Library_Mock Peripheral.swift
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:38:14: warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
15 | }
16 |
17 | private class NativeObserver: Observer {
| `- note: class 'NativeObserver' does not conform to the 'Sendable' protocol
18 | @objc private var peripheral: CoreBluetooth.CBPeripheral
19 |
:
36 | [weak self] _, change in
37 | // TODO: Check threads
38 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NativeObserver?' in a '@Sendable' closure
39 | self.publisher.send(self.peripheral.state)
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:62:13: warning: queue can be not only main
60 | observation = peripheral.observe(\.state, options: [.new]) {
61 | [weak self] _, change in
62 | #warning("queue can be not only main")
| `- warning: queue can be not only main
63 | DispatchQueue.main.async {
64 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/iOS-BLE-Library-Mock/Peripheral/Peripheral.swift:64:15: warning: capture of 'self' with non-sendable type 'MockObserver?' in a '@Sendable' closure
42 | }
43 |
44 | private class MockObserver: Observer {
| `- note: class 'MockObserver' does not conform to the 'Sendable' protocol
45 | @objc private var peripheral: CBMPeripheralMock
46 |
:
62 | #warning("queue can be not only main")
63 | DispatchQueue.main.async {
64 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'MockObserver?' in a '@Sendable' closure
65 | self.publisher.send(self.peripheral.state)
66 | }
[66/68] Compiling iOS_BLE_Library_Mock ReactivePeripheralDelegate.swift
[67/68] Compiling iOS_BLE_Library_Mock AdvertisementData.swift
[68/68] Compiling iOS_BLE_Library_Mock AsyncCharacteristicData.swift
Build complete! (17.41s)
Build complete.
{
"dependencies" : [
{
"identity" : "ios-corebluetooth-mock",
"requirement" : {
"range" : [
{
"lower_bound" : "0.17.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git"
},
{
"identity" : "corebluetoothmock-collection",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/NickKibish/CoreBluetoothMock-Collection.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "iOS-BLE-Library",
"name" : "iOS-BLE-Library",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "iOS-BLE-Library",
"targets" : [
"iOS-BLE-Library"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "iOS-BLE-Library-Mock",
"targets" : [
"iOS-BLE-Library-Mock"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "iOS_BLE_LibraryTests",
"module_type" : "SwiftTarget",
"name" : "iOS-BLE-LibraryTests",
"path" : "Tests/iOS-BLE-LibraryTests",
"product_dependencies" : [
"CoreBluetoothMock-Collection"
],
"sources" : [
"CentralManagerStateTest.swift",
"CentralManagerTests.swift",
"PeripheralMultitaskingTests.swift",
"PeripheralReadWriteDescriptorTests.swift"
],
"target_dependencies" : [
"iOS-BLE-Library-Mock"
],
"type" : "test"
},
{
"c99name" : "iOS_BLE_Library_Mock",
"module_type" : "SwiftTarget",
"name" : "iOS-BLE-Library-Mock",
"path" : "Sources/iOS-BLE-Library-Mock",
"product_dependencies" : [
"CoreBluetoothMock"
],
"product_memberships" : [
"iOS-BLE-Library-Mock"
],
"sources" : [
"Alias.swift",
"CentralManager/CentralManager.swift",
"CentralManager/Model/ScanResult.swift",
"CentralManager/ReactiveCentralManagerDelegate.swift",
"Peripheral/Peripheral+Writer.swift",
"Peripheral/Peripheral.swift",
"Peripheral/ReactivePeripheralDelegate.swift",
"Utilities/AdvertisementData.swift",
"Utilities/AsyncCharacteristicData.swift",
"Utilities/CBManagerState.swift",
"Utilities/Extensions/CBManagerState+Ext.swift",
"Utilities/Extensions/Data+Ext.swift.swift",
"Utilities/Extensions/Publishers+Async.swift",
"Utilities/Logger.swift",
"Utilities/Publishers/ContinuationSubscriber.swift",
"Utilities/Publishers/Publishers+Bluetooth.swift",
"Utilities/Publishers/Publishers+Connectable.swift",
"Utilities/Publishers/Publishers+FailablePrefix.swift.swift",
"Utilities/Publishers/Publishers+GuestList.swift",
"Utilities/Publishers/Publishers+Peripheral.swift",
"Utilities/Queue.swift",
"Utilities/RSSI.swift",
"Utilities/UnimplementedError.swift"
],
"target_dependencies" : [
"iOS-BLE-Library"
],
"type" : "library"
},
{
"c99name" : "iOS_BLE_Library",
"module_type" : "SwiftTarget",
"name" : "iOS-BLE-Library",
"path" : "Sources/iOS-BLE-Library",
"product_memberships" : [
"iOS-BLE-Library",
"iOS-BLE-Library-Mock"
],
"sources" : [
"CentralManager/CentralManager.swift",
"CentralManager/Model/ScanResult.swift",
"CentralManager/ReactiveCentralManagerDelegate.swift",
"Peripheral/Peripheral+Writer.swift",
"Peripheral/Peripheral.swift",
"Peripheral/ReactivePeripheralDelegate.swift",
"Utilities/AdvertisementData.swift",
"Utilities/AsyncCharacteristicData.swift",
"Utilities/CBManagerState.swift",
"Utilities/Extensions/CBManagerState+Ext.swift",
"Utilities/Extensions/Data+Ext.swift.swift",
"Utilities/Extensions/Publishers+Async.swift",
"Utilities/Logger.swift",
"Utilities/Publishers/ContinuationSubscriber.swift",
"Utilities/Publishers/Publishers+Bluetooth.swift",
"Utilities/Publishers/Publishers+Connectable.swift",
"Utilities/Publishers/Publishers+FailablePrefix.swift.swift",
"Utilities/Publishers/Publishers+GuestList.swift",
"Utilities/Queue.swift",
"Utilities/RSSI.swift",
"Utilities/UnimplementedError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.