The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LibDCSwift, reference main (19d0e0), with Swift 6.1 for macOS (SPM) on 19 Nov 2026 21:21:44 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

 885 |                     finish(context, enumStatus, family)
     |                            |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |                            `- note: 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:887:59: warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
     |                                                           |- warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                                           `- note: 'contextPtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 888 |                 }
 889 |
 890 |                 // A session's view model must not outlive its close through this static.
 891 |                 if policy == .legacy {
 892 |                     currentContext = context
     |                                      `- note: access can happen concurrently
 893 |                 }
 894 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                            `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     :
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                              `- note: access can happen concurrently
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:730:48: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                                |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                                `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:1097:39: warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
1095 |             holder.isRetrievingLogs = true
1096 |         } else {
1097 |             DispatchQueue.main.sync { holder.isRetrievingLogs = true }
     |                                       |- warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
     |                                       `- note: task-isolated 'holder' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1098 |         }
1099 |     }
[147/167] Compiling LibDCSwift LibDCSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:585:24: warning: static property 'currentContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 583 |     }
 584 |
 585 |     private static var currentContext: CallbackContext?
     |                        |- warning: static property 'currentContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'currentContext' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'currentContext' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 586 |
 587 |     /// Test seam: the retrieval path with no live `CBPeripheral`/`CoreBluetoothManager`.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: capture of 'viewModel' with non-sendable type 'DiveDataViewModel' in a '@Sendable' closure
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            `- warning: capture of 'viewModel' with non-sendable type 'DiveDataViewModel' in a '@Sendable' closure
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:16:14: note: class 'DiveDataViewModel' does not conform to the 'Sendable' protocol
 14 | /// View model for managing dive data and device fingerprints.
 15 | /// Handles storage, retrieval, and state management for dive logs and device identification.
 16 | public class DiveDataViewModel: ObservableObject {
    |              `- note: class 'DiveDataViewModel' does not conform to the 'Sendable' protocol
 17 |     @Published public var dives: [DiveData] = []
 18 |     @Published public var status: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:720:38: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     |                                      `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:722:68: warning: capture of 'closeCoordinator' with non-sendable type 'RetrievalCloseCoordinator' in a '@Sendable' closure
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                    `- warning: capture of 'closeCoordinator' with non-sendable type 'RetrievalCloseCoordinator' in a '@Sendable' closure
 723 |                         noDevice()
 724 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/RetrievalCloseCoordinator.swift:5:13: note: class 'RetrievalCloseCoordinator' does not conform to the 'Sendable' protocol
 3 | /// Decides whether a device can be closed now or has to wait for a download
 4 | /// that is still inside `dc_device_foreach` on it.
 5 | final class RetrievalCloseCoordinator {
   |             `- note: class 'RetrievalCloseCoordinator' does not conform to the 'Sendable' protocol
 6 |     enum Decision: Equatable {
 7 |         /// No download is using the device.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:722:95: warning: capture of 'session' with non-sendable type 'DiveComputerSession?' in a '@Sendable' closure
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                                               `- warning: capture of 'session' with non-sendable type 'DiveComputerSession?' in a '@Sendable' closure
 723 |                         noDevice()
 724 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Session/DiveComputerSession.swift:79:20: note: class 'DiveComputerSession' does not conform to the 'Sendable' protocol
 77 |
 78 | /// An open dive computer on any transport, running one `retrieveDiveLogs(session:)` at a time; `open` owns the device, `adopt` doesn't.
 79 | public final class DiveComputerSession {
    |                    `- note: class 'DiveComputerSession' does not conform to the 'Sendable' protocol
 80 |     public let devicePtr: UnsafeMutablePointer<device_data_t>
 81 |     public let displayName: String
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:723:25: warning: capture of 'noDevice' with non-sendable type '() -> Void' in a '@Sendable' closure
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 723 |                         noDevice()
     |                         |- warning: capture of 'noDevice' with non-sendable type '() -> Void' in a '@Sendable' closure
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 724 |                     }
 725 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:734:36: warning: capture of 'deviceStorage' with non-sendable type 'DeviceStorage' in a '@Sendable' closure
 732 |
 733 |                 // Get device type from stored configuration (user-selected) for consistent fingerprint lookups
 734 |                 let storedDevice = deviceStorage.getStoredDevice(uuid: deviceUUID)
     |                                    `- warning: capture of 'deviceStorage' with non-sendable type 'DeviceStorage' in a '@Sendable' closure
 735 |                 let deviceTypeForFingerprint: String
 736 |                 if let stored = storedDevice,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:100:20: note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:775:34: warning: capture of 'isCancelled' with non-sendable type '() -> Bool' in a '@Sendable' closure
 773 |                     deviceUUID: deviceUUID,
 774 |                     storedFingerprint: storedFingerprint,
 775 |                     isCancelled: isCancelled,
     |                                  |- warning: capture of 'isCancelled' with non-sendable type '() -> Bool' in a '@Sendable' closure
     |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 776 |                     deviceStorage: deviceStorage,
 777 |                     useFingerprint: useFingerprint,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:781:37: warning: capture of 'parseHook' with non-sendable type 'DiveLogRetriever.ParseHook?' (aka 'Optional<(Data, () throws -> DiveData) throws -> DiveData>') in a '@Sendable' closure
 779 |                 )
 780 |                 context.devicePtr = devicePtr
 781 |                 context.parseHook = parseHook
     |                                     |- warning: capture of 'parseHook' with non-sendable type 'DiveLogRetriever.ParseHook?' (aka 'Optional<(Data, () throws -> DiveData) throws -> DiveData>') in a '@Sendable' closure
     |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 782 |                 context.session = session
 783 |                 context.identity = session?.identity
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:795:25: warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in a '@Sendable' closure
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
     |                         |- warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in a '@Sendable' closure
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 796 |                     }
 797 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:885:21: warning: capture of 'finish' with non-sendable type '(DiveLogRetriever.CallbackContext, dc_status_t, dc_family_t) -> Void' in a '@Sendable' closure
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 885 |                     finish(context, enumStatus, family)
     |                     |- warning: capture of 'finish' with non-sendable type '(DiveLogRetriever.CallbackContext, dc_status_t, dc_family_t) -> Void' in a '@Sendable' closure
     |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:795:25: warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in an isolated closure; this is an error in the Swift 6 language mode
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
     |                         |- warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in an isolated closure; this is an error in the Swift 6 language mode
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 796 |                     }
 797 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Logger.swift:70:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 67 | }
 68 |
 69 | public class Logger {
    |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
 70 |     public static let shared = Logger()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private var isEnabled = true
 72 |     private var minLevel: LogLevel = .debug
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:36:23: warning: static property 'supportedModels' is not concurrency-safe because non-'Sendable' type '[DeviceConfiguration.ComputerModel]' may have shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |     // Helper struct for UI Selection
 19 |     public struct ComputerModel: Identifiable, Hashable {
    |                   `- note: consider making struct 'ComputerModel' conform to the 'Sendable' protocol
 20 |         public let id = UUID()
 21 |         public let name: String
    :
 34 |
 35 |     // List of selectable models for the UI
 36 |     public static let supportedModels: [ComputerModel] = [
    |                       |- warning: static property 'supportedModels' is not concurrency-safe because non-'Sendable' type '[DeviceConfiguration.ComputerModel]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'supportedModels' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |         // Shearwater computers
 38 |         ComputerModel(name: "Shearwater Peregrine", family: .shearwaterPetrel, modelID: 9),
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:311:24: warning: static property 'knownServiceUUIDs' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
309 |
310 |     /// Known BLE service UUIDs for supported dive computers.
311 |     private static let knownServiceUUIDs: [CBUUID] = [
    |                        `- warning: static property 'knownServiceUUIDs' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
312 |         CBUUID(string: "0000fefb-0000-1000-8000-00805f9b34fb"), // Heinrichs-Weikamp Telit/Stollmann
313 |         CBUUID(string: "2456e1b9-26e2-8f83-e744-f34f01e9d701"), // Heinrichs-Weikamp U-Blox
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
 83 |  */
 84 | NS_CLASS_AVAILABLE(10_7, 5_0)
 85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
    |                            `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
 86 |
 87 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
  1 | import Foundation
  2 | import CoreBluetooth
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
  3 | import Clibdivecomputer
  4 | import LibDCBridge
    :
309 |
310 |     /// Known BLE service UUIDs for supported dive computers.
311 |     private static let knownServiceUUIDs: [CBUUID] = [
    |                        |- note: add '@MainActor' to make static property 'knownServiceUUIDs' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
312 |         CBUUID(string: "0000fefb-0000-1000-8000-00805f9b34fb"), // Heinrichs-Weikamp Telit/Stollmann
313 |         CBUUID(string: "2456e1b9-26e2-8f83-e744-f34f01e9d701"), // Heinrichs-Weikamp U-Blox
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:713:24: warning: static property 'context' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 |     private var descriptor: OpaquePointer?
713 |     private static var context: OpaquePointer?
    |                        |- warning: static property 'context' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'context' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'context' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
714 |
715 |     public static func setupContext() {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:503:44: warning: capture of 'dcDevice' with non-sendable type 'OpaquePointer' in a '@Sendable' closure
501 |             // Call dc_device_foreach with our minimal callback
502 |             // This will trigger DC_EVENT_DEVINFO but stop before downloading any dives
503 |             let status = dc_device_foreach(dcDevice, minimalCallback, nil)
    |                                            `- warning: capture of 'dcDevice' with non-sendable type 'OpaquePointer' in a '@Sendable' closure
504 |
505 |             DispatchQueue.main.async {
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
  |                       `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:507:38: warning: capture of 'manager' with non-sendable type 'CoreBluetoothManager' in a '@Sendable' closure
505 |             DispatchQueue.main.async {
506 |                 // Read before endRetrieval, which runs a held-back close that frees deviceDataPtr.
507 |                 let closedMidFetch = manager.isCloseDeferred(deviceDataPtr)
    |                                      `- warning: capture of 'manager' with non-sendable type 'CoreBluetoothManager' in a '@Sendable' closure
508 |                 let haveDevinfo = deviceDataPtr.pointee.have_devinfo != 0
509 |                 let serial = String(format: "%08x", deviceDataPtr.pointee.devinfo.serial)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/BLEManager.swift:36:14: note: class 'CoreBluetoothManager' does not conform to the 'Sendable' protocol
  34 | /// Manages device discovery, connection, and data transfer with BLE dive computers.
  35 | @objc(CoreBluetoothManager)
  36 | public class CoreBluetoothManager: NSObject, CoreBluetoothManagerProtocol, ObservableObject, CBCentralManagerDelegate, CBPeripheralDelegate {
     |              `- note: class 'CoreBluetoothManager' does not conform to the 'Sendable' protocol
  37 |     // MARK: - Singleton
  38 |     private static let sharedInstance = CoreBluetoothManager()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:507:62: warning: capture of 'deviceDataPtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
505 |             DispatchQueue.main.async {
506 |                 // Read before endRetrieval, which runs a held-back close that frees deviceDataPtr.
507 |                 let closedMidFetch = manager.isCloseDeferred(deviceDataPtr)
    |                                                              `- warning: capture of 'deviceDataPtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
508 |                 let haveDevinfo = deviceDataPtr.pointee.have_devinfo != 0
509 |                 let serial = String(format: "%08x", deviceDataPtr.pointee.devinfo.serial)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:515:21: warning: capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
513 |                 if closedMidFetch {
514 |                     logWarning("Device info fetch stopped because the device is being closed")
515 |                     completion(false)
    |                     |- warning: capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
516 |                 } else if status == DC_STATUS_SUCCESS || status == DC_STATUS_PROTOCOL {
517 |                     // DC_STATUS_PROTOCOL is expected when we return 0 from callback
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:462:13: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
 460 |         // One main-queue turn per dive, enqueued before the finish block, so completion sees every dive.
 461 |         DispatchQueue.main.async {
 462 |             context.viewModel.appendDownloadedDive(diveData)
     |             |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |             `- note: task-isolated 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 463 |         }
 464 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:462:52: warning: sending 'diveData' risks causing data races; this is an error in the Swift 6 language mode
 460 |         // One main-queue turn per dive, enqueued before the finish block, so completion sees every dive.
 461 |         DispatchQueue.main.async {
 462 |             context.viewModel.appendDownloadedDive(diveData)
     |                                                    |- warning: sending 'diveData' risks causing data races; this is an error in the Swift 6 language mode
     |                                                    `- note: task-isolated 'diveData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 463 |         }
 464 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:651:24: warning: sending 'outcome' risks causing data races; this is an error in the Swift 6 language mode
 649 |             func endEarly(_ outcome: DiveDownloadResult.Outcome, status: dc_status_t) {
 650 |                 DispatchQueue.main.async {
 651 |                     if outcome == .cancelled {
     |                        |- warning: sending 'outcome' risks causing data races; this is an error in the Swift 6 language mode
     |                        `- note: task-isolated 'outcome' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 652 |                         viewModel.lastDownloadStatus = statusName(DC_STATUS_CANCELLED)
 653 |                         viewModel.updateProgress(.cancelled)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:652:25: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 650 |                 DispatchQueue.main.async {
 651 |                     if outcome == .cancelled {
 652 |                         viewModel.lastDownloadStatus = statusName(DC_STATUS_CANCELLED)
     |                         |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                         `- note: task-isolated 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 653 |                         viewModel.updateProgress(.cancelled)
 654 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:655:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 653 |                         viewModel.updateProgress(.cancelled)
 654 |                     }
 655 |                     completion(DiveDownloadResult(outcome: outcome, status: status, divesDownloaded: 0,
     |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 656 |                                                   parseFailureCount: 0, fingerprintCommit: nil))
 657 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:35: warning: sending 'devicePtr' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                   |- warning: sending 'devicePtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                   `- note: 'devicePtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:64: warning: sending 'closeCoordinator' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                |- warning: sending 'closeCoordinator' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                `- note: 'closeCoordinator' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:91: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                                           |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                                           `- note: 'session' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:885:28: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 885 |                     finish(context, enumStatus, family)
     |                            |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |                            `- note: 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:887:59: warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
     |                                                           |- warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                                           `- note: 'contextPtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 888 |                 }
 889 |
 890 |                 // A session's view model must not outlive its close through this static.
 891 |                 if policy == .legacy {
 892 |                     currentContext = context
     |                                      `- note: access can happen concurrently
 893 |                 }
 894 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                            `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     :
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                              `- note: access can happen concurrently
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:730:48: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                                |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                                `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:1097:39: warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
1095 |             holder.isRetrievingLogs = true
1096 |         } else {
1097 |             DispatchQueue.main.sync { holder.isRetrievingLogs = true }
     |                                       |- warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
     |                                       `- note: task-isolated 'holder' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1098 |         }
1099 |     }
[148/167] Compiling LibDCSwift Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:585:24: warning: static property 'currentContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 583 |     }
 584 |
 585 |     private static var currentContext: CallbackContext?
     |                        |- warning: static property 'currentContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'currentContext' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'currentContext' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 586 |
 587 |     /// Test seam: the retrieval path with no live `CBPeripheral`/`CoreBluetoothManager`.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: capture of 'viewModel' with non-sendable type 'DiveDataViewModel' in a '@Sendable' closure
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            `- warning: capture of 'viewModel' with non-sendable type 'DiveDataViewModel' in a '@Sendable' closure
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:16:14: note: class 'DiveDataViewModel' does not conform to the 'Sendable' protocol
 14 | /// View model for managing dive data and device fingerprints.
 15 | /// Handles storage, retrieval, and state management for dive logs and device identification.
 16 | public class DiveDataViewModel: ObservableObject {
    |              `- note: class 'DiveDataViewModel' does not conform to the 'Sendable' protocol
 17 |     @Published public var dives: [DiveData] = []
 18 |     @Published public var status: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:720:38: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     |                                      `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:722:68: warning: capture of 'closeCoordinator' with non-sendable type 'RetrievalCloseCoordinator' in a '@Sendable' closure
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                    `- warning: capture of 'closeCoordinator' with non-sendable type 'RetrievalCloseCoordinator' in a '@Sendable' closure
 723 |                         noDevice()
 724 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/RetrievalCloseCoordinator.swift:5:13: note: class 'RetrievalCloseCoordinator' does not conform to the 'Sendable' protocol
 3 | /// Decides whether a device can be closed now or has to wait for a download
 4 | /// that is still inside `dc_device_foreach` on it.
 5 | final class RetrievalCloseCoordinator {
   |             `- note: class 'RetrievalCloseCoordinator' does not conform to the 'Sendable' protocol
 6 |     enum Decision: Equatable {
 7 |         /// No download is using the device.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:722:95: warning: capture of 'session' with non-sendable type 'DiveComputerSession?' in a '@Sendable' closure
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                                               `- warning: capture of 'session' with non-sendable type 'DiveComputerSession?' in a '@Sendable' closure
 723 |                         noDevice()
 724 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Session/DiveComputerSession.swift:79:20: note: class 'DiveComputerSession' does not conform to the 'Sendable' protocol
 77 |
 78 | /// An open dive computer on any transport, running one `retrieveDiveLogs(session:)` at a time; `open` owns the device, `adopt` doesn't.
 79 | public final class DiveComputerSession {
    |                    `- note: class 'DiveComputerSession' does not conform to the 'Sendable' protocol
 80 |     public let devicePtr: UnsafeMutablePointer<device_data_t>
 81 |     public let displayName: String
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:723:25: warning: capture of 'noDevice' with non-sendable type '() -> Void' in a '@Sendable' closure
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 723 |                         noDevice()
     |                         |- warning: capture of 'noDevice' with non-sendable type '() -> Void' in a '@Sendable' closure
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 724 |                     }
 725 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:734:36: warning: capture of 'deviceStorage' with non-sendable type 'DeviceStorage' in a '@Sendable' closure
 732 |
 733 |                 // Get device type from stored configuration (user-selected) for consistent fingerprint lookups
 734 |                 let storedDevice = deviceStorage.getStoredDevice(uuid: deviceUUID)
     |                                    `- warning: capture of 'deviceStorage' with non-sendable type 'DeviceStorage' in a '@Sendable' closure
 735 |                 let deviceTypeForFingerprint: String
 736 |                 if let stored = storedDevice,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:100:20: note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:775:34: warning: capture of 'isCancelled' with non-sendable type '() -> Bool' in a '@Sendable' closure
 773 |                     deviceUUID: deviceUUID,
 774 |                     storedFingerprint: storedFingerprint,
 775 |                     isCancelled: isCancelled,
     |                                  |- warning: capture of 'isCancelled' with non-sendable type '() -> Bool' in a '@Sendable' closure
     |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 776 |                     deviceStorage: deviceStorage,
 777 |                     useFingerprint: useFingerprint,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:781:37: warning: capture of 'parseHook' with non-sendable type 'DiveLogRetriever.ParseHook?' (aka 'Optional<(Data, () throws -> DiveData) throws -> DiveData>') in a '@Sendable' closure
 779 |                 )
 780 |                 context.devicePtr = devicePtr
 781 |                 context.parseHook = parseHook
     |                                     |- warning: capture of 'parseHook' with non-sendable type 'DiveLogRetriever.ParseHook?' (aka 'Optional<(Data, () throws -> DiveData) throws -> DiveData>') in a '@Sendable' closure
     |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 782 |                 context.session = session
 783 |                 context.identity = session?.identity
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:795:25: warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in a '@Sendable' closure
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
     |                         |- warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in a '@Sendable' closure
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 796 |                     }
 797 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:885:21: warning: capture of 'finish' with non-sendable type '(DiveLogRetriever.CallbackContext, dc_status_t, dc_family_t) -> Void' in a '@Sendable' closure
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 885 |                     finish(context, enumStatus, family)
     |                     |- warning: capture of 'finish' with non-sendable type '(DiveLogRetriever.CallbackContext, dc_status_t, dc_family_t) -> Void' in a '@Sendable' closure
     |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:795:25: warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in an isolated closure; this is an error in the Swift 6 language mode
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
     |                         |- warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in an isolated closure; this is an error in the Swift 6 language mode
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 796 |                     }
 797 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Logger.swift:70:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 67 | }
 68 |
 69 | public class Logger {
    |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
 70 |     public static let shared = Logger()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private var isEnabled = true
 72 |     private var minLevel: LogLevel = .debug
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:36:23: warning: static property 'supportedModels' is not concurrency-safe because non-'Sendable' type '[DeviceConfiguration.ComputerModel]' may have shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |     // Helper struct for UI Selection
 19 |     public struct ComputerModel: Identifiable, Hashable {
    |                   `- note: consider making struct 'ComputerModel' conform to the 'Sendable' protocol
 20 |         public let id = UUID()
 21 |         public let name: String
    :
 34 |
 35 |     // List of selectable models for the UI
 36 |     public static let supportedModels: [ComputerModel] = [
    |                       |- warning: static property 'supportedModels' is not concurrency-safe because non-'Sendable' type '[DeviceConfiguration.ComputerModel]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'supportedModels' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |         // Shearwater computers
 38 |         ComputerModel(name: "Shearwater Peregrine", family: .shearwaterPetrel, modelID: 9),
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:311:24: warning: static property 'knownServiceUUIDs' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
309 |
310 |     /// Known BLE service UUIDs for supported dive computers.
311 |     private static let knownServiceUUIDs: [CBUUID] = [
    |                        `- warning: static property 'knownServiceUUIDs' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
312 |         CBUUID(string: "0000fefb-0000-1000-8000-00805f9b34fb"), // Heinrichs-Weikamp Telit/Stollmann
313 |         CBUUID(string: "2456e1b9-26e2-8f83-e744-f34f01e9d701"), // Heinrichs-Weikamp U-Blox
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
 83 |  */
 84 | NS_CLASS_AVAILABLE(10_7, 5_0)
 85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
    |                            `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
 86 |
 87 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
  1 | import Foundation
  2 | import CoreBluetooth
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
  3 | import Clibdivecomputer
  4 | import LibDCBridge
    :
309 |
310 |     /// Known BLE service UUIDs for supported dive computers.
311 |     private static let knownServiceUUIDs: [CBUUID] = [
    |                        |- note: add '@MainActor' to make static property 'knownServiceUUIDs' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
312 |         CBUUID(string: "0000fefb-0000-1000-8000-00805f9b34fb"), // Heinrichs-Weikamp Telit/Stollmann
313 |         CBUUID(string: "2456e1b9-26e2-8f83-e744-f34f01e9d701"), // Heinrichs-Weikamp U-Blox
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:713:24: warning: static property 'context' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 |     private var descriptor: OpaquePointer?
713 |     private static var context: OpaquePointer?
    |                        |- warning: static property 'context' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'context' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'context' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
714 |
715 |     public static func setupContext() {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:503:44: warning: capture of 'dcDevice' with non-sendable type 'OpaquePointer' in a '@Sendable' closure
501 |             // Call dc_device_foreach with our minimal callback
502 |             // This will trigger DC_EVENT_DEVINFO but stop before downloading any dives
503 |             let status = dc_device_foreach(dcDevice, minimalCallback, nil)
    |                                            `- warning: capture of 'dcDevice' with non-sendable type 'OpaquePointer' in a '@Sendable' closure
504 |
505 |             DispatchQueue.main.async {
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
  |                       `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:507:38: warning: capture of 'manager' with non-sendable type 'CoreBluetoothManager' in a '@Sendable' closure
505 |             DispatchQueue.main.async {
506 |                 // Read before endRetrieval, which runs a held-back close that frees deviceDataPtr.
507 |                 let closedMidFetch = manager.isCloseDeferred(deviceDataPtr)
    |                                      `- warning: capture of 'manager' with non-sendable type 'CoreBluetoothManager' in a '@Sendable' closure
508 |                 let haveDevinfo = deviceDataPtr.pointee.have_devinfo != 0
509 |                 let serial = String(format: "%08x", deviceDataPtr.pointee.devinfo.serial)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/BLEManager.swift:36:14: note: class 'CoreBluetoothManager' does not conform to the 'Sendable' protocol
  34 | /// Manages device discovery, connection, and data transfer with BLE dive computers.
  35 | @objc(CoreBluetoothManager)
  36 | public class CoreBluetoothManager: NSObject, CoreBluetoothManagerProtocol, ObservableObject, CBCentralManagerDelegate, CBPeripheralDelegate {
     |              `- note: class 'CoreBluetoothManager' does not conform to the 'Sendable' protocol
  37 |     // MARK: - Singleton
  38 |     private static let sharedInstance = CoreBluetoothManager()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:507:62: warning: capture of 'deviceDataPtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
505 |             DispatchQueue.main.async {
506 |                 // Read before endRetrieval, which runs a held-back close that frees deviceDataPtr.
507 |                 let closedMidFetch = manager.isCloseDeferred(deviceDataPtr)
    |                                                              `- warning: capture of 'deviceDataPtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
508 |                 let haveDevinfo = deviceDataPtr.pointee.have_devinfo != 0
509 |                 let serial = String(format: "%08x", deviceDataPtr.pointee.devinfo.serial)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:515:21: warning: capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
513 |                 if closedMidFetch {
514 |                     logWarning("Device info fetch stopped because the device is being closed")
515 |                     completion(false)
    |                     |- warning: capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
516 |                 } else if status == DC_STATUS_SUCCESS || status == DC_STATUS_PROTOCOL {
517 |                     // DC_STATUS_PROTOCOL is expected when we return 0 from callback
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:462:13: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
 460 |         // One main-queue turn per dive, enqueued before the finish block, so completion sees every dive.
 461 |         DispatchQueue.main.async {
 462 |             context.viewModel.appendDownloadedDive(diveData)
     |             |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |             `- note: task-isolated 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 463 |         }
 464 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:462:52: warning: sending 'diveData' risks causing data races; this is an error in the Swift 6 language mode
 460 |         // One main-queue turn per dive, enqueued before the finish block, so completion sees every dive.
 461 |         DispatchQueue.main.async {
 462 |             context.viewModel.appendDownloadedDive(diveData)
     |                                                    |- warning: sending 'diveData' risks causing data races; this is an error in the Swift 6 language mode
     |                                                    `- note: task-isolated 'diveData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 463 |         }
 464 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:651:24: warning: sending 'outcome' risks causing data races; this is an error in the Swift 6 language mode
 649 |             func endEarly(_ outcome: DiveDownloadResult.Outcome, status: dc_status_t) {
 650 |                 DispatchQueue.main.async {
 651 |                     if outcome == .cancelled {
     |                        |- warning: sending 'outcome' risks causing data races; this is an error in the Swift 6 language mode
     |                        `- note: task-isolated 'outcome' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 652 |                         viewModel.lastDownloadStatus = statusName(DC_STATUS_CANCELLED)
 653 |                         viewModel.updateProgress(.cancelled)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:652:25: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 650 |                 DispatchQueue.main.async {
 651 |                     if outcome == .cancelled {
 652 |                         viewModel.lastDownloadStatus = statusName(DC_STATUS_CANCELLED)
     |                         |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                         `- note: task-isolated 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 653 |                         viewModel.updateProgress(.cancelled)
 654 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:655:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 653 |                         viewModel.updateProgress(.cancelled)
 654 |                     }
 655 |                     completion(DiveDownloadResult(outcome: outcome, status: status, divesDownloaded: 0,
     |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 656 |                                                   parseFailureCount: 0, fingerprintCommit: nil))
 657 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:35: warning: sending 'devicePtr' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                   |- warning: sending 'devicePtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                   `- note: 'devicePtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:64: warning: sending 'closeCoordinator' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                |- warning: sending 'closeCoordinator' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                `- note: 'closeCoordinator' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:91: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                                           |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                                           `- note: 'session' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:885:28: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 885 |                     finish(context, enumStatus, family)
     |                            |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |                            `- note: 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:887:59: warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
     |                                                           |- warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                                           `- note: 'contextPtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 888 |                 }
 889 |
 890 |                 // A session's view model must not outlive its close through this static.
 891 |                 if policy == .legacy {
 892 |                     currentContext = context
     |                                      `- note: access can happen concurrently
 893 |                 }
 894 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                            `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     :
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                              `- note: access can happen concurrently
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:730:48: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                                |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                                `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:1097:39: warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
1095 |             holder.isRetrievingLogs = true
1096 |         } else {
1097 |             DispatchQueue.main.sync { holder.isRetrievingLogs = true }
     |                                       |- warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
     |                                       `- note: task-isolated 'holder' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1098 |         }
1099 |     }
[149/167] Compiling LibDCSwift DeviceConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:585:24: warning: static property 'currentContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 583 |     }
 584 |
 585 |     private static var currentContext: CallbackContext?
     |                        |- warning: static property 'currentContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                        |- note: convert 'currentContext' to a 'let' constant to make 'Sendable' shared state immutable
     |                        |- note: add '@MainActor' to make static property 'currentContext' part of global actor 'MainActor'
     |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 586 |
 587 |     /// Test seam: the retrieval path with no live `CBPeripheral`/`CoreBluetoothManager`.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: capture of 'viewModel' with non-sendable type 'DiveDataViewModel' in a '@Sendable' closure
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            `- warning: capture of 'viewModel' with non-sendable type 'DiveDataViewModel' in a '@Sendable' closure
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:16:14: note: class 'DiveDataViewModel' does not conform to the 'Sendable' protocol
 14 | /// View model for managing dive data and device fingerprints.
 15 | /// Handles storage, retrieval, and state management for dive logs and device identification.
 16 | public class DiveDataViewModel: ObservableObject {
    |              `- note: class 'DiveDataViewModel' does not conform to the 'Sendable' protocol
 17 |     @Published public var dives: [DiveData] = []
 18 |     @Published public var status: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:720:38: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     |                                      `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:722:68: warning: capture of 'closeCoordinator' with non-sendable type 'RetrievalCloseCoordinator' in a '@Sendable' closure
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                    `- warning: capture of 'closeCoordinator' with non-sendable type 'RetrievalCloseCoordinator' in a '@Sendable' closure
 723 |                         noDevice()
 724 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/RetrievalCloseCoordinator.swift:5:13: note: class 'RetrievalCloseCoordinator' does not conform to the 'Sendable' protocol
 3 | /// Decides whether a device can be closed now or has to wait for a download
 4 | /// that is still inside `dc_device_foreach` on it.
 5 | final class RetrievalCloseCoordinator {
   |             `- note: class 'RetrievalCloseCoordinator' does not conform to the 'Sendable' protocol
 6 |     enum Decision: Equatable {
 7 |         /// No download is using the device.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:722:95: warning: capture of 'session' with non-sendable type 'DiveComputerSession?' in a '@Sendable' closure
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                                               `- warning: capture of 'session' with non-sendable type 'DiveComputerSession?' in a '@Sendable' closure
 723 |                         noDevice()
 724 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Session/DiveComputerSession.swift:79:20: note: class 'DiveComputerSession' does not conform to the 'Sendable' protocol
 77 |
 78 | /// An open dive computer on any transport, running one `retrieveDiveLogs(session:)` at a time; `open` owns the device, `adopt` doesn't.
 79 | public final class DiveComputerSession {
    |                    `- note: class 'DiveComputerSession' does not conform to the 'Sendable' protocol
 80 |     public let devicePtr: UnsafeMutablePointer<device_data_t>
 81 |     public let displayName: String
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:723:25: warning: capture of 'noDevice' with non-sendable type '() -> Void' in a '@Sendable' closure
 721 |                     DispatchQueue.main.async {
 722 |                         releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 723 |                         noDevice()
     |                         |- warning: capture of 'noDevice' with non-sendable type '() -> Void' in a '@Sendable' closure
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 724 |                     }
 725 |                     return
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:734:36: warning: capture of 'deviceStorage' with non-sendable type 'DeviceStorage' in a '@Sendable' closure
 732 |
 733 |                 // Get device type from stored configuration (user-selected) for consistent fingerprint lookups
 734 |                 let storedDevice = deviceStorage.getStoredDevice(uuid: deviceUUID)
     |                                    `- warning: capture of 'deviceStorage' with non-sendable type 'DeviceStorage' in a '@Sendable' closure
 735 |                 let deviceTypeForFingerprint: String
 736 |                 if let stored = storedDevice,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:100:20: note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
102 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:775:34: warning: capture of 'isCancelled' with non-sendable type '() -> Bool' in a '@Sendable' closure
 773 |                     deviceUUID: deviceUUID,
 774 |                     storedFingerprint: storedFingerprint,
 775 |                     isCancelled: isCancelled,
     |                                  |- warning: capture of 'isCancelled' with non-sendable type '() -> Bool' in a '@Sendable' closure
     |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 776 |                     deviceStorage: deviceStorage,
 777 |                     useFingerprint: useFingerprint,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:781:37: warning: capture of 'parseHook' with non-sendable type 'DiveLogRetriever.ParseHook?' (aka 'Optional<(Data, () throws -> DiveData) throws -> DiveData>') in a '@Sendable' closure
 779 |                 )
 780 |                 context.devicePtr = devicePtr
 781 |                 context.parseHook = parseHook
     |                                     |- warning: capture of 'parseHook' with non-sendable type 'DiveLogRetriever.ParseHook?' (aka 'Optional<(Data, () throws -> DiveData) throws -> DiveData>') in a '@Sendable' closure
     |                                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 782 |                 context.session = session
 783 |                 context.identity = session?.identity
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:795:25: warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in a '@Sendable' closure
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
     |                         |- warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in a '@Sendable' closure
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 796 |                     }
 797 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:885:21: warning: capture of 'finish' with non-sendable type '(DiveLogRetriever.CallbackContext, dc_status_t, dc_family_t) -> Void' in a '@Sendable' closure
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 885 |                     finish(context, enumStatus, family)
     |                     |- warning: capture of 'finish' with non-sendable type '(DiveLogRetriever.CallbackContext, dc_status_t, dc_family_t) -> Void' in a '@Sendable' closure
     |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:795:25: warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in an isolated closure; this is an error in the Swift 6 language mode
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
     |                         |- warning: capture of 'onProgress' with non-sendable type '((Int, Int) -> Void)?' in an isolated closure; this is an error in the Swift 6 language mode
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 796 |                     }
 797 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Logger.swift:70:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 67 | }
 68 |
 69 | public class Logger {
    |              `- note: class 'Logger' does not conform to the 'Sendable' protocol
 70 |     public static let shared = Logger()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private var isEnabled = true
 72 |     private var minLevel: LogLevel = .debug
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:36:23: warning: static property 'supportedModels' is not concurrency-safe because non-'Sendable' type '[DeviceConfiguration.ComputerModel]' may have shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 |     // Helper struct for UI Selection
 19 |     public struct ComputerModel: Identifiable, Hashable {
    |                   `- note: consider making struct 'ComputerModel' conform to the 'Sendable' protocol
 20 |         public let id = UUID()
 21 |         public let name: String
    :
 34 |
 35 |     // List of selectable models for the UI
 36 |     public static let supportedModels: [ComputerModel] = [
    |                       |- warning: static property 'supportedModels' is not concurrency-safe because non-'Sendable' type '[DeviceConfiguration.ComputerModel]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'supportedModels' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |         // Shearwater computers
 38 |         ComputerModel(name: "Shearwater Peregrine", family: .shearwaterPetrel, modelID: 9),
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:311:24: warning: static property 'knownServiceUUIDs' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
309 |
310 |     /// Known BLE service UUIDs for supported dive computers.
311 |     private static let knownServiceUUIDs: [CBUUID] = [
    |                        `- warning: static property 'knownServiceUUIDs' is not concurrency-safe because non-'Sendable' type '[CBUUID]' may have shared mutable state; this is an error in the Swift 6 language mode
312 |         CBUUID(string: "0000fefb-0000-1000-8000-00805f9b34fb"), // Heinrichs-Weikamp Telit/Stollmann
313 |         CBUUID(string: "2456e1b9-26e2-8f83-e744-f34f01e9d701"), // Heinrichs-Weikamp U-Blox
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h:85:28: note: class 'CBUUID' does not conform to the 'Sendable' protocol
 83 |  */
 84 | NS_CLASS_AVAILABLE(10_7, 5_0)
 85 | CB_EXTERN_CLASS @interface CBUUID : NSObject <NSCopying>
    |                            `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
 86 |
 87 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
  1 | import Foundation
  2 | import CoreBluetooth
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
  3 | import Clibdivecomputer
  4 | import LibDCBridge
    :
309 |
310 |     /// Known BLE service UUIDs for supported dive computers.
311 |     private static let knownServiceUUIDs: [CBUUID] = [
    |                        |- note: add '@MainActor' to make static property 'knownServiceUUIDs' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
312 |         CBUUID(string: "0000fefb-0000-1000-8000-00805f9b34fb"), // Heinrichs-Weikamp Telit/Stollmann
313 |         CBUUID(string: "2456e1b9-26e2-8f83-e744-f34f01e9d701"), // Heinrichs-Weikamp U-Blox
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:713:24: warning: static property 'context' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 |     private var descriptor: OpaquePointer?
713 |     private static var context: OpaquePointer?
    |                        |- warning: static property 'context' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'context' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'context' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
714 |
715 |     public static func setupContext() {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:503:44: warning: capture of 'dcDevice' with non-sendable type 'OpaquePointer' in a '@Sendable' closure
501 |             // Call dc_device_foreach with our minimal callback
502 |             // This will trigger DC_EVENT_DEVINFO but stop before downloading any dives
503 |             let status = dc_device_foreach(dcDevice, minimalCallback, nil)
    |                                            `- warning: capture of 'dcDevice' with non-sendable type 'OpaquePointer' in a '@Sendable' closure
504 |
505 |             DispatchQueue.main.async {
Swift.OpaquePointer:1:23: note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct OpaquePointer {
  |                       `- note: struct 'OpaquePointer' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:507:38: warning: capture of 'manager' with non-sendable type 'CoreBluetoothManager' in a '@Sendable' closure
505 |             DispatchQueue.main.async {
506 |                 // Read before endRetrieval, which runs a held-back close that frees deviceDataPtr.
507 |                 let closedMidFetch = manager.isCloseDeferred(deviceDataPtr)
    |                                      `- warning: capture of 'manager' with non-sendable type 'CoreBluetoothManager' in a '@Sendable' closure
508 |                 let haveDevinfo = deviceDataPtr.pointee.have_devinfo != 0
509 |                 let serial = String(format: "%08x", deviceDataPtr.pointee.devinfo.serial)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/BLEManager.swift:36:14: note: class 'CoreBluetoothManager' does not conform to the 'Sendable' protocol
  34 | /// Manages device discovery, connection, and data transfer with BLE dive computers.
  35 | @objc(CoreBluetoothManager)
  36 | public class CoreBluetoothManager: NSObject, CoreBluetoothManagerProtocol, ObservableObject, CBCentralManagerDelegate, CBPeripheralDelegate {
     |              `- note: class 'CoreBluetoothManager' does not conform to the 'Sendable' protocol
  37 |     // MARK: - Singleton
  38 |     private static let sharedInstance = CoreBluetoothManager()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:507:62: warning: capture of 'deviceDataPtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
505 |             DispatchQueue.main.async {
506 |                 // Read before endRetrieval, which runs a held-back close that frees deviceDataPtr.
507 |                 let closedMidFetch = manager.isCloseDeferred(deviceDataPtr)
    |                                                              `- warning: capture of 'deviceDataPtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in a '@Sendable' closure
508 |                 let haveDevinfo = deviceDataPtr.pointee.have_devinfo != 0
509 |                 let serial = String(format: "%08x", deviceDataPtr.pointee.devinfo.serial)
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceConfiguration.swift:515:21: warning: capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
513 |                 if closedMidFetch {
514 |                     logWarning("Device info fetch stopped because the device is being closed")
515 |                     completion(false)
    |                     |- warning: capture of 'completion' with non-sendable type '(Bool) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
516 |                 } else if status == DC_STATUS_SUCCESS || status == DC_STATUS_PROTOCOL {
517 |                     // DC_STATUS_PROTOCOL is expected when we return 0 from callback
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:462:13: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
 460 |         // One main-queue turn per dive, enqueued before the finish block, so completion sees every dive.
 461 |         DispatchQueue.main.async {
 462 |             context.viewModel.appendDownloadedDive(diveData)
     |             |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |             `- note: task-isolated 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 463 |         }
 464 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:462:52: warning: sending 'diveData' risks causing data races; this is an error in the Swift 6 language mode
 460 |         // One main-queue turn per dive, enqueued before the finish block, so completion sees every dive.
 461 |         DispatchQueue.main.async {
 462 |             context.viewModel.appendDownloadedDive(diveData)
     |                                                    |- warning: sending 'diveData' risks causing data races; this is an error in the Swift 6 language mode
     |                                                    `- note: task-isolated 'diveData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 463 |         }
 464 |
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:651:24: warning: sending 'outcome' risks causing data races; this is an error in the Swift 6 language mode
 649 |             func endEarly(_ outcome: DiveDownloadResult.Outcome, status: dc_status_t) {
 650 |                 DispatchQueue.main.async {
 651 |                     if outcome == .cancelled {
     |                        |- warning: sending 'outcome' risks causing data races; this is an error in the Swift 6 language mode
     |                        `- note: task-isolated 'outcome' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 652 |                         viewModel.lastDownloadStatus = statusName(DC_STATUS_CANCELLED)
 653 |                         viewModel.updateProgress(.cancelled)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:652:25: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 650 |                 DispatchQueue.main.async {
 651 |                     if outcome == .cancelled {
 652 |                         viewModel.lastDownloadStatus = statusName(DC_STATUS_CANCELLED)
     |                         |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                         `- note: task-isolated 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 653 |                         viewModel.updateProgress(.cancelled)
 654 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:655:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
 653 |                         viewModel.updateProgress(.cancelled)
 654 |                     }
 655 |                     completion(DiveDownloadResult(outcome: outcome, status: status, divesDownloaded: 0,
     |                     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
     |                     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 656 |                                                   parseFailureCount: 0, fingerprintCommit: nil))
 657 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:35: warning: sending 'devicePtr' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                   |- warning: sending 'devicePtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                   `- note: 'devicePtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:64: warning: sending 'closeCoordinator' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                |- warning: sending 'closeCoordinator' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                `- note: 'closeCoordinator' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:884:91: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
     |                                                                                           |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
     |                                                                                           `- note: 'session' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:885:28: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
 880 |
 881 |                 let family = dc_device_get_type(dcDevice)
 882 |                 DispatchQueue.main.async {
     |                                          `- note: access can happen concurrently
 883 |                     // Before completion, so the host never sees a device a held-back close is about to free.
 884 |                     releaseDevice(devicePtr, closeCoordinator: closeCoordinator, session: session)
 885 |                     finish(context, enumStatus, family)
     |                            |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
     |                            `- note: 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:887:59: warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
 885 |                     finish(context, enumStatus, family)
 886 |                     context.isCompleted = true
 887 |                     Unmanaged<CallbackContext>.fromOpaque(contextPtr).release()
     |                                                           |- warning: sending 'contextPtr' risks causing data races; this is an error in the Swift 6 language mode
     |                                                           `- note: 'contextPtr' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 888 |                 }
 889 |
 890 |                 // A session's view model must not outlive its close through this static.
 891 |                 if policy == .legacy {
 892 |                     currentContext = context
     |                                      `- note: access can happen concurrently
 893 |                 }
 894 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:718:44: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 716 |
 717 |             retrievalQueue.async {
 718 |                 DispatchQueue.main.async { viewModel.applyResetProgress() }
     |                                            |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                            `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 719 |
 720 |                 guard let dcDevice = devicePtr.pointee.device else {
     :
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                              `- note: access can happen concurrently
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:730:48: warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
 728 |                 if dc_device_get_type(dcDevice) == DC_FAMILY_SUUNTO_NAUTIC {
 729 |                     let acknowledged = suunto_nautic_device_handshake_acknowledged(dcDevice) != 0
 730 |                     DispatchQueue.main.async { viewModel.lastHandshakeAcknowledged = acknowledged }
     |                                                |- warning: sending 'viewModel' risks causing data races; this is an error in the Swift 6 language mode
     |                                                `- note: 'viewModel' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 731 |                 }
 732 |
     :
 751 |                         }
 752 |                         if useFingerprint {
 753 |                             storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                           `- note: access can happen concurrently
 754 |                         }
 755 |                     }
     :
 758 |                     deviceStorage.updateDeviceSerial(uuid: deviceUUID, serial: serial)
 759 |                     if useFingerprint {
 760 |                         storedFingerprint = viewModel.getFingerprint(forDeviceType: deviceTypeForFingerprint, serial: serial)
     |                                                       `- note: access can happen concurrently
 761 |                     }
 762 |                 } else if let session, DiveComputerIdentity(descriptorOf: devicePtr, transport: session.identityTransport) != nil,
 763 |                           let identity = session.refreshIdentity() {
 764 |                     if useFingerprint {
 765 |                         storedFingerprint = viewModel.getFingerprint(for: identity, standIn: session.fingerprintStandIn)
     |                                                       `- note: access can happen concurrently
 766 |                     }
 767 |                     devinfoLessFingerprint = storedFingerprint ?? Data()
 768 |                 }
 769 |
 770 |                 let context = CallbackContext(
     |                               `- note: access can happen concurrently
 771 |                     viewModel: viewModel,
 772 |                     deviceName: deviceName,
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:1097:39: warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
1095 |             holder.isRetrievingLogs = true
1096 |         } else {
1097 |             DispatchQueue.main.sync { holder.isRetrievingLogs = true }
     |                                       |- warning: sending 'holder' risks causing data races; this is an error in the Swift 6 language mode
     |                                       `- note: task-isolated 'holder' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
1098 |         }
1099 |     }
[150/167] Compiling LibDCSwift DeviceCatalog.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:68:29: warning: static property 'activeInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 |     private let fingerprintKey = "DeviceFingerprints"
 68 |     private static weak var activeInstance: DiveDataViewModel?
    |                             |- warning: static property 'activeInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'activeInstance' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: add '@MainActor' to make static property 'activeInstance' part of global actor 'MainActor'
    |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public weak var persistence: DiveDataPersistence?
 70 |     /// Test seam: an isolated store instead of `DeviceFingerprintStorage.shared`. Session downloads keep their rejected dives here too.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:294:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
292 |             )
293 |             DispatchQueue.main.async {
294 |                 self.dives.append(dive)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
295 |                 if case .inProgress = self.progress {
296 |                     self.progress = .inProgress(self.dives.count)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:304:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
302 |     public func updateStatus(_ newStatus: String) {
303 |         DispatchQueue.main.async {
304 |             self.status = newStatus
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
305 |         }
306 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:310:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
308 |     public func updateProgress(_ progress: DownloadProgress) {
309 |         DispatchQueue.main.async {
310 |             self.progress = progress
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
311 |         }
312 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:310:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
308 |     public func updateProgress(_ progress: DownloadProgress) {
309 |         DispatchQueue.main.async {
310 |             self.progress = progress
    |                             |- warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: task-isolated 'progress' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
311 |         }
312 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:316:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
314 |     public func updateProgress(count: Int) {
315 |         DispatchQueue.main.async {
316 |             self.applyProgressCount(count)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
317 |         }
318 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:342:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
340 |     public func setError(_ message: String) {
341 |         DispatchQueue.main.async {
342 |             self.progress = .failed(message)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
343 |         }
344 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:348:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
346 |     public func clear() {
347 |         DispatchQueue.main.async {
348 |             self.dives.removeAll()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
349 |             self.hasNewDives = false
350 |             self.resetProgress()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:464:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
462 |     public func resetProgress() {
463 |         DispatchQueue.main.async {
464 |             self.applyResetProgress()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 |         }
466 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:397:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
395 |             }
396 |
397 |             self.progress = .failed(errorMessage)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
398 |         }
399 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:403:17: warning: sending 'newDives' risks causing data races; this is an error in the Swift 6 language mode
401 |     public func appendDives(_ newDives: [DiveData]) {
402 |         DispatchQueue.main.async {
403 |             if !newDives.isEmpty {
    |                 |- warning: sending 'newDives' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'newDives' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
404 |                 self.hasNewDives = true
405 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:404:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
402 |         DispatchQueue.main.async {
403 |             if !newDives.isEmpty {
404 |                 self.hasNewDives = true
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
405 |             }
406 |             self.dives.append(contentsOf: newDives)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:418:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
416 |     public func finalizeDiveNumbering() {
417 |         DispatchQueue.main.async {
418 |             self.applyDiveNumbering()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
419 |         }
420 |     }
[151/167] Compiling LibDCSwift DiveComputerIdentity.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:68:29: warning: static property 'activeInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 |     private let fingerprintKey = "DeviceFingerprints"
 68 |     private static weak var activeInstance: DiveDataViewModel?
    |                             |- warning: static property 'activeInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'activeInstance' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: add '@MainActor' to make static property 'activeInstance' part of global actor 'MainActor'
    |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public weak var persistence: DiveDataPersistence?
 70 |     /// Test seam: an isolated store instead of `DeviceFingerprintStorage.shared`. Session downloads keep their rejected dives here too.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:294:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
292 |             )
293 |             DispatchQueue.main.async {
294 |                 self.dives.append(dive)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
295 |                 if case .inProgress = self.progress {
296 |                     self.progress = .inProgress(self.dives.count)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:304:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
302 |     public func updateStatus(_ newStatus: String) {
303 |         DispatchQueue.main.async {
304 |             self.status = newStatus
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
305 |         }
306 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:310:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
308 |     public func updateProgress(_ progress: DownloadProgress) {
309 |         DispatchQueue.main.async {
310 |             self.progress = progress
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
311 |         }
312 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:310:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
308 |     public func updateProgress(_ progress: DownloadProgress) {
309 |         DispatchQueue.main.async {
310 |             self.progress = progress
    |                             |- warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: task-isolated 'progress' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
311 |         }
312 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:316:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
314 |     public func updateProgress(count: Int) {
315 |         DispatchQueue.main.async {
316 |             self.applyProgressCount(count)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
317 |         }
318 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:342:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
340 |     public func setError(_ message: String) {
341 |         DispatchQueue.main.async {
342 |             self.progress = .failed(message)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
343 |         }
344 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:348:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
346 |     public func clear() {
347 |         DispatchQueue.main.async {
348 |             self.dives.removeAll()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
349 |             self.hasNewDives = false
350 |             self.resetProgress()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:464:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
462 |     public func resetProgress() {
463 |         DispatchQueue.main.async {
464 |             self.applyResetProgress()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 |         }
466 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:397:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
395 |             }
396 |
397 |             self.progress = .failed(errorMessage)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
398 |         }
399 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:403:17: warning: sending 'newDives' risks causing data races; this is an error in the Swift 6 language mode
401 |     public func appendDives(_ newDives: [DiveData]) {
402 |         DispatchQueue.main.async {
403 |             if !newDives.isEmpty {
    |                 |- warning: sending 'newDives' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'newDives' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
404 |                 self.hasNewDives = true
405 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:404:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
402 |         DispatchQueue.main.async {
403 |             if !newDives.isEmpty {
404 |                 self.hasNewDives = true
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
405 |             }
406 |             self.dives.append(contentsOf: newDives)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:418:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
416 |     public func finalizeDiveNumbering() {
417 |         DispatchQueue.main.async {
418 |             self.applyDiveNumbering()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
419 |         }
420 |     }
[152/167] Compiling LibDCSwift DiveDataViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:68:29: warning: static property 'activeInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 |     private let fingerprintKey = "DeviceFingerprints"
 68 |     private static weak var activeInstance: DiveDataViewModel?
    |                             |- warning: static property 'activeInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'activeInstance' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: add '@MainActor' to make static property 'activeInstance' part of global actor 'MainActor'
    |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public weak var persistence: DiveDataPersistence?
 70 |     /// Test seam: an isolated store instead of `DeviceFingerprintStorage.shared`. Session downloads keep their rejected dives here too.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:294:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
292 |             )
293 |             DispatchQueue.main.async {
294 |                 self.dives.append(dive)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
295 |                 if case .inProgress = self.progress {
296 |                     self.progress = .inProgress(self.dives.count)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:304:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
302 |     public func updateStatus(_ newStatus: String) {
303 |         DispatchQueue.main.async {
304 |             self.status = newStatus
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
305 |         }
306 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:310:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
308 |     public func updateProgress(_ progress: DownloadProgress) {
309 |         DispatchQueue.main.async {
310 |             self.progress = progress
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
311 |         }
312 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:310:29: warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
308 |     public func updateProgress(_ progress: DownloadProgress) {
309 |         DispatchQueue.main.async {
310 |             self.progress = progress
    |                             |- warning: sending 'progress' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: task-isolated 'progress' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
311 |         }
312 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:316:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
314 |     public func updateProgress(count: Int) {
315 |         DispatchQueue.main.async {
316 |             self.applyProgressCount(count)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
317 |         }
318 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:342:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
340 |     public func setError(_ message: String) {
341 |         DispatchQueue.main.async {
342 |             self.progress = .failed(message)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
343 |         }
344 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:348:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
346 |     public func clear() {
347 |         DispatchQueue.main.async {
348 |             self.dives.removeAll()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
349 |             self.hasNewDives = false
350 |             self.resetProgress()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:464:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
462 |     public func resetProgress() {
463 |         DispatchQueue.main.async {
464 |             self.applyResetProgress()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
465 |         }
466 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:397:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
395 |             }
396 |
397 |             self.progress = .failed(errorMessage)
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
398 |         }
399 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:403:17: warning: sending 'newDives' risks causing data races; this is an error in the Swift 6 language mode
401 |     public func appendDives(_ newDives: [DiveData]) {
402 |         DispatchQueue.main.async {
403 |             if !newDives.isEmpty {
    |                 |- warning: sending 'newDives' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'newDives' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
404 |                 self.hasNewDives = true
405 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:404:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
402 |         DispatchQueue.main.async {
403 |             if !newDives.isEmpty {
404 |                 self.hasNewDives = true
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
405 |             }
406 |             self.dives.append(contentsOf: newDives)
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/ViewModels/DiveDataViewModel.swift:418:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
416 |     public func finalizeDiveNumbering() {
417 |         DispatchQueue.main.async {
418 |             self.applyDiveNumbering()
    |             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |             `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
419 |         }
420 |     }
[153/167] Compiling LibDCSwift CableError.swift
[154/167] Compiling LibDCSwift HIDCableSession.swift
[155/167] Compiling LibDCSwift HIDDeviceIO.swift
[156/167] Compiling LibDCSwift HIDStream.swift
[157/167] Compiling LibDCSwift SuuntoNauticExplorer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/SuuntoNauticResume.swift:11:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SuuntoNauticResume' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | /// (`suunto_nautic_device_set_resume`). `DeviceConfiguration.openBLEDevice` attaches
 9 | /// the shared store to every Nautic/Ocean device it opens.
10 | public final class SuuntoNauticResume {
   |                    `- note: class 'SuuntoNauticResume' does not conform to the 'Sendable' protocol
11 |     public static let shared = SuuntoNauticResume()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SuuntoNauticResume' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     private let lock = NSLock()
[158/167] Compiling LibDCSwift SuuntoNauticResume.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/SuuntoNauticResume.swift:11:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SuuntoNauticResume' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | /// (`suunto_nautic_device_set_resume`). `DeviceConfiguration.openBLEDevice` attaches
 9 | /// the shared store to every Nautic/Ocean device it opens.
10 | public final class SuuntoNauticResume {
   |                    `- note: class 'SuuntoNauticResume' does not conform to the 'Sendable' protocol
11 |     public static let shared = SuuntoNauticResume()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SuuntoNauticResume' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     private let lock = NSLock()
[159/167] Compiling LibDCSwift DCTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/SuuntoNauticResume.swift:11:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SuuntoNauticResume' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | /// (`suunto_nautic_device_set_resume`). `DeviceConfiguration.openBLEDevice` attaches
 9 | /// the shared store to every Nautic/Ocean device it opens.
10 | public final class SuuntoNauticResume {
   |                    `- note: class 'SuuntoNauticResume' does not conform to the 'Sendable' protocol
11 |     public static let shared = SuuntoNauticResume()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SuuntoNauticResume' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     private let lock = NSLock()
[160/167] Compiling LibDCSwift DeviceFingerprint.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceFingerprint.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 | /// Manages persistent storage of device fingerprints
 41 | public class DeviceFingerprintStorage {
    |              `- note: class 'DeviceFingerprintStorage' does not conform to the 'Sendable' protocol
 42 |     public static let shared = DeviceFingerprintStorage()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     private let fingerprintKey = "DeviceFingerprints"
 44 |     private let rejectedDivesKey = "RejectedDiveFingerprints"
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:101:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |    private let defaults: UserDefaults
[161/167] Compiling LibDCSwift DiveData.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceFingerprint.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 | /// Manages persistent storage of device fingerprints
 41 | public class DeviceFingerprintStorage {
    |              `- note: class 'DeviceFingerprintStorage' does not conform to the 'Sendable' protocol
 42 |     public static let shared = DeviceFingerprintStorage()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     private let fingerprintKey = "DeviceFingerprints"
 44 |     private let rejectedDivesKey = "RejectedDiveFingerprints"
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:101:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |    private let defaults: UserDefaults
[162/167] Compiling LibDCSwift SampleData.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceFingerprint.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 | /// Manages persistent storage of device fingerprints
 41 | public class DeviceFingerprintStorage {
    |              `- note: class 'DeviceFingerprintStorage' does not conform to the 'Sendable' protocol
 42 |     public static let shared = DeviceFingerprintStorage()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     private let fingerprintKey = "DeviceFingerprints"
 44 |     private let rejectedDivesKey = "RejectedDiveFingerprints"
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:101:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |    private let defaults: UserDefaults
[163/167] Compiling LibDCSwift StoredDevice.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/DeviceFingerprint.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 | /// Manages persistent storage of device fingerprints
 41 | public class DeviceFingerprintStorage {
    |              `- note: class 'DeviceFingerprintStorage' does not conform to the 'Sendable' protocol
 42 |     public static let shared = DeviceFingerprintStorage()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceFingerprintStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     private let fingerprintKey = "DeviceFingerprints"
 44 |     private let rejectedDivesKey = "RejectedDiveFingerprints"
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Models/StoredDevice.swift:101:22: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 98 | }
 99 |
100 | @objc public class DeviceStorage: NSObject {
    |                    `- note: class 'DeviceStorage' does not conform to the 'Sendable' protocol
101 |    public static let shared = DeviceStorage()
    |                      |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DeviceStorage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |    private let defaults: UserDefaults
[164/167] Compiling LibDCSwift DCIOStreamBackend.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/DCRecording.swift:305:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
296 |
297 | /// Rewrites bytes in `DCStreamRecorder.recording()` so a fixture carries no real serial, date or position; it sees each direction as one stream (a pattern split across reads is still found) and must keep the length, or the bytes are zeroed.
298 | public struct DCRecordScrubber {
    |               `- note: consider making struct 'DCRecordScrubber' conform to the 'Sendable' protocol
299 |     public let scrub: (_ bytes: [UInt8], _ direction: PacketDirection) -> [UInt8]
300 |
    :
303 |     }
304 |
305 |     public static let none = DCRecordScrubber { bytes, _ in bytes }
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |
307 |     /// Swaps every occurrence of each pattern (a serial number's bytes, say) for a stand-in of the same length, both ways.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[165/167] Compiling LibDCSwift DCRecording.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/DCRecording.swift:305:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
296 |
297 | /// Rewrites bytes in `DCStreamRecorder.recording()` so a fixture carries no real serial, date or position; it sees each direction as one stream (a pattern split across reads is still found) and must keep the length, or the bytes are zeroed.
298 | public struct DCRecordScrubber {
    |               `- note: consider making struct 'DCRecordScrubber' conform to the 'Sendable' protocol
299 |     public let scrub: (_ bytes: [UInt8], _ direction: PacketDirection) -> [UInt8]
300 |
    :
303 |     }
304 |
305 |     public static let none = DCRecordScrubber { bytes, _ in bytes }
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |
307 |     /// Swaps every occurrence of each pattern (a serial number's bytes, say) for a stand-in of the same length, both ways.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[166/167] Compiling LibDCSwift ScriptedStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/DCRecording.swift:305:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
296 |
297 | /// Rewrites bytes in `DCStreamRecorder.recording()` so a fixture carries no real serial, date or position; it sees each direction as one stream (a pattern split across reads is still found) and must keep the length, or the bytes are zeroed.
298 | public struct DCRecordScrubber {
    |               `- note: consider making struct 'DCRecordScrubber' conform to the 'Sendable' protocol
299 |     public let scrub: (_ bytes: [UInt8], _ direction: PacketDirection) -> [UInt8]
300 |
    :
303 |     }
304 |
305 |     public static let none = DCRecordScrubber { bytes, _ in bytes }
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |
307 |     /// Swaps every occurrence of each pattern (a serial number's bytes, say) for a stand-in of the same length, both ways.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[167/167] Compiling LibDCSwift TapStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/DCRecording.swift:305:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
296 |
297 | /// Rewrites bytes in `DCStreamRecorder.recording()` so a fixture carries no real serial, date or position; it sees each direction as one stream (a pattern split across reads is still found) and must keep the length, or the bytes are zeroed.
298 | public struct DCRecordScrubber {
    |               `- note: consider making struct 'DCRecordScrubber' conform to the 'Sendable' protocol
299 |     public let scrub: (_ bytes: [UInt8], _ direction: PacketDirection) -> [UInt8]
300 |
    :
303 |     }
304 |
305 |     public static let none = DCRecordScrubber { bytes, _ in bytes }
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DCRecordScrubber' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |
307 |     /// Swaps every occurrence of each pattern (a serial number's bytes, say) for a stand-in of the same length, both ways.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
[1/1] Compiling plugin ClibdcVerGeneratorPlugin
Building for debugging...
[1/3] Write swift-version-2F0A5646E1D333AE.txt
[2/3] Linking libLibDCBridge.dylib
[4/39] Compiling LibDCSwift DeviceFingerprint.swift
[5/39] Compiling LibDCSwift DiveData.swift
[6/39] Compiling LibDCSwift SampleData.swift
[7/39] Compiling LibDCSwift StoredDevice.swift
[8/42] Compiling LibDCSwift SuuntoNauticExplorer.swift
[9/42] Compiling LibDCSwift SuuntoNauticResume.swift
[10/42] Compiling LibDCSwift DCTransport.swift
[11/42] Compiling LibDCSwift DCIOStreamBackend.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[12/42] Compiling LibDCSwift DCRecording.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[13/42] Compiling LibDCSwift ScriptedStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[14/42] Compiling LibDCSwift TapStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/Streams/TapStream.swift:121:62: error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
119 |     public func setTimeout(_ timeout: Int32) -> dc_status_t {
120 |         let effective = readTimeoutFloor.map { timeout > 0 ? max(timeout, $0) : timeout } ?? timeout
121 |         let status = inner.map { dc_iostream_set_timeout($0, effective) } ?? DC_STATUS_IO
    |                                                              |- error: value of optional type 'Int32?' must be unwrapped to a value of type 'Int32'
    |                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
122 |         if status == DC_STATUS_SUCCESS {
123 |             self.timeout = effective
[15/42] Emitting module LibDCSwift
[16/42] Compiling LibDCSwift AutoSyncPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:369:19: warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
367 |         // Wall-clock, so a device that slept past the deadline fires as soon as it wakes.
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
    |                   `- warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
    :
722 |
723 | /// Settles the race between a connect finishing and its timeout firing.
724 | private final class ConnectAttempt {
    |                     `- note: class 'ConnectAttempt' does not conform to the 'Sendable' protocol
725 |     private let lock = NSLock()
726 |     private var settled = false
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:370:13: warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
 24 | ///
 25 | /// Never writes to the watch: dives stay unsynchronised for the Suunto app.
 26 | public final class NauticAutoSync {
    |                    `- note: class 'NauticAutoSync' does not conform to the 'Sendable' protocol
 27 |     public struct Configuration {
 28 |         public var reconnect: ReconnectPolicy = .suuntoApp
    :
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
    |             `- warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:372:13: warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
    |             `- warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
373 |         }
374 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticSyncLink.swift:29:17: note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 27 |
 28 | /// Finds and opens the watch.
 29 | public protocol NauticSyncConnector: AnyObject {
    |                 `- note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 30 |     /// Returns true once the watch is seen, false after `timeout` (nil waits indefinitely).
 31 |     func waitUntilPresent(timeout: TimeInterval?) async throws -> Bool
[17/42] Compiling LibDCSwift CoreBluetoothNauticConnector.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:369:19: warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
367 |         // Wall-clock, so a device that slept past the deadline fires as soon as it wakes.
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
    |                   `- warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
    :
722 |
723 | /// Settles the race between a connect finishing and its timeout firing.
724 | private final class ConnectAttempt {
    |                     `- note: class 'ConnectAttempt' does not conform to the 'Sendable' protocol
725 |     private let lock = NSLock()
726 |     private var settled = false
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:370:13: warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
 24 | ///
 25 | /// Never writes to the watch: dives stay unsynchronised for the Suunto app.
 26 | public final class NauticAutoSync {
    |                    `- note: class 'NauticAutoSync' does not conform to the 'Sendable' protocol
 27 |     public struct Configuration {
 28 |         public var reconnect: ReconnectPolicy = .suuntoApp
    :
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
    |             `- warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:372:13: warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
    |             `- warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
373 |         }
374 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticSyncLink.swift:29:17: note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 27 |
 28 | /// Finds and opens the watch.
 29 | public protocol NauticSyncConnector: AnyObject {
    |                 `- note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 30 |     /// Returns true once the watch is seen, false after `timeout` (nil waits indefinitely).
 31 |     func waitUntilPresent(timeout: TimeInterval?) async throws -> Bool
[18/42] Compiling LibDCSwift NauticAutoSync.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:369:19: warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
367 |         // Wall-clock, so a device that slept past the deadline fires as soon as it wakes.
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
    |                   `- warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
    :
722 |
723 | /// Settles the race between a connect finishing and its timeout firing.
724 | private final class ConnectAttempt {
    |                     `- note: class 'ConnectAttempt' does not conform to the 'Sendable' protocol
725 |     private let lock = NSLock()
726 |     private var settled = false
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:370:13: warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
 24 | ///
 25 | /// Never writes to the watch: dives stay unsynchronised for the Suunto app.
 26 | public final class NauticAutoSync {
    |                    `- note: class 'NauticAutoSync' does not conform to the 'Sendable' protocol
 27 |     public struct Configuration {
 28 |         public var reconnect: ReconnectPolicy = .suuntoApp
    :
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
    |             `- warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:372:13: warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
    |             `- warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
373 |         }
374 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticSyncLink.swift:29:17: note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 27 |
 28 | /// Finds and opens the watch.
 29 | public protocol NauticSyncConnector: AnyObject {
    |                 `- note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 30 |     /// Returns true once the watch is seen, false after `timeout` (nil waits indefinitely).
 31 |     func waitUntilPresent(timeout: TimeInterval?) async throws -> Bool
[19/42] Compiling LibDCSwift NauticSyncLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:369:19: warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
367 |         // Wall-clock, so a device that slept past the deadline fires as soon as it wakes.
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
    |                   `- warning: capture of 'attempt' with non-sendable type 'ConnectAttempt' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
    :
722 |
723 | /// Settles the race between a connect finishing and its timeout firing.
724 | private final class ConnectAttempt {
    |                     `- note: class 'ConnectAttempt' does not conform to the 'Sendable' protocol
725 |     private let lock = NSLock()
726 |     private var settled = false
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:370:13: warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
 24 | ///
 25 | /// Never writes to the watch: dives stay unsynchronised for the Suunto app.
 26 | public final class NauticAutoSync {
    |                    `- note: class 'NauticAutoSync' does not conform to the 'Sendable' protocol
 27 |     public struct Configuration {
 28 |         public var reconnect: ReconnectPolicy = .suuntoApp
    :
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
    |             `- warning: capture of 'self' with non-sendable type 'NauticAutoSync?' in a '@Sendable' closure
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:372:13: warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
    |             `- warning: capture of 'connector' with non-sendable type 'any NauticSyncConnector' in a '@Sendable' closure
373 |         }
374 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticSyncLink.swift:29:17: note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 27 |
 28 | /// Finds and opens the watch.
 29 | public protocol NauticSyncConnector: AnyObject {
    |                 `- note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 30 |     /// Returns true once the watch is seen, false after `timeout` (nil waits indefinitely).
 31 |     func waitUntilPresent(timeout: TimeInterval?) async throws -> Bool
[20/42] Compiling LibDCSwift IOKitCableDiscovery.swift
[21/42] Compiling LibDCSwift SerialCableSession.swift
[22/42] Compiling LibDCSwift USBCableSession.swift
[23/42] Compiling LibDCSwift USBComputers.swift
[24/42] Compiling LibDCSwift GenericParser.swift
[25/42] Compiling LibDCSwift RetrievalCloseCoordinator.swift
[26/42] Compiling LibDCSwift DiveComputerSession.swift
[27/42] Compiling LibDCSwift DCCustomStream.swift
[28/42] Compiling LibDCSwift DiveLogRetriever.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[29/42] Compiling LibDCSwift LibDCSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[30/42] Compiling LibDCSwift Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[31/42] Compiling LibDCSwift DeviceConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/DiveLogRetriever.swift:794:24: warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 792 |                 progressTimer.schedule(deadline: .now(), repeating: 0.25)
 793 |                 progressTimer.setEventHandler {
 794 |                     if devicePtr.pointee.have_progress != 0 {
     |                        `- warning: capture of 'devicePtr' with non-sendable type 'UnsafeMutablePointer<device_data_t>' in an isolated closure; this is an error in the Swift 6 language mode
 795 |                         onProgress?(Int(devicePtr.pointee.progress.current), Int(devicePtr.pointee.progress.maximum))
 796 |                     }
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
[32/42] Compiling LibDCSwift BLELinkState.swift
[33/42] Compiling LibDCSwift BLEManager.swift
[34/42] Compiling LibDCSwift CableDiscovery.swift
[35/42] Compiling LibDCSwift CableEndpoint.swift
[36/42] Compiling LibDCSwift CableError.swift
[37/42] Compiling LibDCSwift HIDCableSession.swift
[38/42] Compiling LibDCSwift HIDDeviceIO.swift
[39/42] Compiling LibDCSwift HIDStream.swift
[40/42] Compiling LibDCSwift DeviceCatalog.swift
[41/42] Compiling LibDCSwift DiveComputerIdentity.swift
[42/42] Compiling LibDCSwift DiveDataViewModel.swift
BUILD FAILURE 6.1 macosSpm