Build Information
Failed to build iOSMcuManagerLibrary, reference main (3d6ee1), with Swift 6.2 for macOS (SPM) on 20 Nov 2026 04:38:28 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nordicsemi/IOS-nRF-Connect-Device-Manager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nordicsemi/IOS-nRF-Connect-Device-Manager
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3d6ee1a Merge pull request #702 from nordicsemi/bump
Cloned https://github.com/nordicsemi/IOS-nRF-Connect-Device-Manager.git
Revision (git rev-parse @):
3d6ee1a72fbc6d4d5a1ecc704c229ea1ee3feb24
SUCCESS checkout https://github.com/nordicsemi/IOS-nRF-Connect-Device-Manager.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/nordicsemi/IOS-nRF-Connect-Device-Manager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
[0/6] Write sources
[1/6] Write MockGeneratorTool-tool-entitlement.plist
[2/6] Write swift-version--3CB7CFEC50E0D141.txt
[4/8] Emitting module MockGeneratorTool
[5/8] Compiling MockGeneratorTool main.swift
[5/8] Write Objects.LinkFileList
[6/8] Linking MockGeneratorTool-tool
[7/8] Applying MockGeneratorTool-tool
[1/1] Compiling plugin MockGenerator
Building for debugging...
[1/35] Write sources
[5/35] Copying PrivacyInfo.xcprivacy
[5/35] Write sources
[9/35] Write swift-version--3CB7CFEC50E0D141.txt
[10/35] Write Objects.LinkFileList
[11/178] Linking MockGeneratorTool-tool
[12/178] MockCopy ReactivePeripheralDelegate.swift
[12/178] MockCopy AsyncCharacteristicData.swift
[12/178] MockCopy PeripheralError.swift
[12/178] MockCopy UnimplementedError.swift
[16/178] MockCopy RSSI.swift
[16/178] MockCopy ContinuationSubscriber.swift
[18/178] MockCopy Queue.swift
[19/178] MockCopy Publishers+GuestList.swift
[20/178] MockCopy Publishers+FailablePrefix.swift.swift
[21/178] MockCopy Publishers+Connectable.swift
[22/178] MockCopy Publishers+Bluetooth.swift
[22/178] MockCopy Logger.swift
[24/178] MockCopy Data+Ext.swift.swift
[24/178] MockCopy Publishers+Async.swift
[26/178] MockCopy CBManagerState+Ext.swift
[27/178] MockCopy CBManagerState.swift
[28/178] MockCopy AdvertisementData.swift
[29/178] MockCopy Peripheral.swift
[30/178] MockCopy Peripheral+Writer.swift
[31/178] MockCopy ScanResult.swift
[31/178] MockCopy ReactiveCentralManagerDelegate.swift
[33/178] MockCopy CentralManager.swift
[34/178] Write sources
[36/178] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[37/179] Emitting module ZIPFoundation
[38/181] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
[39/181] Compiling ZIPFoundation URL+ZIP.swift
[40/181] Compiling ZIPFoundation resource_bundle_accessor.swift
[41/181] Compiling iOS_Common_Libraries Date.swift
[42/181] Compiling iOS_Common_Libraries Double.swift
[43/181] Compiling SwiftCBOR Util.swift
[44/181] Compiling iOS_Common_Libraries UIColor.swift
[45/181] Compiling iOS_Common_Libraries Data.swift
[46/181] Compiling iOS_Common_Libraries AutoLayout.swift
[47/181] Compiling iOS_Common_Libraries CGSize.swift
[48/181] Compiling iOS_Common_Libraries BlinkingModifier.swift
[49/181] Compiling iOS_Common_Libraries GlowingModifier.swift
[50/181] Compiling iOS_Common_Libraries Array.swift
[51/181] Compiling iOS_Common_Libraries Color.swift
[52/181] Compiling iOS_Common_Libraries NSColor.swift
[53/181] Compiling iOS_Common_Libraries RGB.swift
[54/181] Compiling iOS_Common_Libraries RGBA.swift
[56/181] Compiling iOS_Common_Libraries Collection.swift
[60/183] Compiling iOS_Common_Libraries HTTPRequest.swift
[61/183] Compiling iOS_Common_Libraries Network.swift
[64/183] Emitting module SwiftCBOR
[67/183] Emitting module CoreBluetoothMock
[71/183] Compiling iOS_Common_Libraries NordicLog.swift
[72/183] Compiling iOS_Common_Libraries Optional.swift
[73/183] Compiling iOS_Common_Libraries Publisher.swift
[76/183] Compiling iOS_Common_Libraries Float.swift
[87/183] Compiling iOS_Common_Libraries Sequence.swift
[88/183] Compiling iOS_Common_Libraries String.swift
[96/183] Compiling iOS_Common_Libraries UIView.swift
[97/183] Compiling iOS_Common_Libraries View.swift
[98/229] Compiling iOSMcuManagerLibrary LogManager.swift
[99/229] Compiling iOSMcuManagerLibrary RunTestManager.swift
[100/229] Compiling iOSMcuManagerLibrary CBOR+McuManager.swift
[101/229] Compiling iOSMcuManagerLibrary Data+McuManager.swift
[102/229] Compiling iOSMcuManagerLibrary String+McuManager.swift
[103/229] Compiling iOSMcuManagerLibrary BasicManager+Async.swift
[104/229] Compiling iOSMcuManagerLibrary BasicManager.swift
[105/229] Compiling iOSMcuManagerLibrary CrashManager.swift
[107/251] Compiling iOSMcuManagerLibrary SettingsManager+Async.swift
[108/251] Compiling iOSMcuManagerLibrary SettingsManager.swift
[109/251] Compiling iOSMcuManagerLibrary ShellManager.swift
[110/251] Compiling iOSMcuManagerLibrary StatsManager+Async.swift
[111/251] Compiling iOSMcuManagerLibrary StatsManager.swift
[112/251] Compiling iOSMcuManagerLibrary SuitManager+Async.swift
[113/251] Compiling iOSMcuManagerLibrary SuitManager.swift
[114/251] Compiling iOSMcuManagerLibrary McuManager.swift
[115/259] Compiling iOSMcuManagerLibrary McuMgrCallbackOoOBuffer.swift
[116/259] Compiling iOSMcuManagerLibrary McuMgrHeader.swift
[117/259] Compiling iOSMcuManagerLibrary McuMgrImage.swift
[118/259] Compiling iOSMcuManagerLibrary McuMgrLogDelegate.swift
[119/259] Compiling iOSMcuManagerLibrary McuMgrManifest.swift
[120/259] Compiling iOSMcuManagerLibrary McuMgrPackage.swift
[121/259] Compiling iOSMcuManagerLibrary McuMgrResponse.swift
[122/259] Compiling iOSMcuManagerLibrary McuMgrSuitEnvelope.swift
[123/259] Compiling iOSMcuManagerLibrary McuMgrSuitManifest.swift
[124/259] Emitting module iOS_BLE_Library_Mock
[125/261] Compiling iOS_BLE_Library_Mock ReactiveCentralManagerDelegate.swift
[126/261] Compiling iOS_BLE_Library_Mock ScanResult.swift
[127/261] Compiling iOS_BLE_Library_Mock Queue.swift
[128/261] Compiling iOS_BLE_Library_Mock Publishers+FailablePrefix.swift.swift
[129/261] Compiling iOS_BLE_Library_Mock AdvertisementData.swift
[130/261] Compiling iOS_BLE_Library_Mock CBManagerState.swift
[131/261] Compiling iOS_BLE_Library_Mock Publishers+Async.swift
[132/261] Compiling iOS_BLE_Library_Mock Publishers+Bluetooth.swift
[133/261] Compiling iOS_BLE_Library_Mock Publishers+GuestList.swift
[134/261] Compiling iOS_BLE_Library_Mock Publishers+Connectable.swift
[135/261] Compiling iOS_BLE_Library_Mock ContinuationSubscriber.swift
[136/261] Compiling iOS_BLE_Library_Mock CBManagerState+Ext.swift
[137/261] Compiling iOS_BLE_Library_Mock Data+Ext.swift.swift
[138/261] Compiling iOS_BLE_Library_Mock UnimplementedError.swift
[139/261] Compiling iOS_BLE_Library_Mock AsyncCharacteristicData.swift
[140/261] Compiling iOS_BLE_Library_Mock ReactivePeripheralDelegate.swift
[141/261] Compiling iOS_BLE_Library_Mock Alias.swift
[142/261] Compiling iOS_BLE_Library_Mock RSSI.swift
[143/261] Compiling iOS_BLE_Library_Mock Logger.swift
[144/261] Compiling iOS_BLE_Library_Mock Peripheral+Writer.swift
[145/261] Compiling iOS_BLE_Library_Mock CentralManager.swift
[146/261] Compiling iOS_BLE_Library_Mock Peripheral.swift
[147/261] Compiling iOS_BLE_Library_Mock PeripheralError.swift
[148/261] Emitting module iOSMcuManagerLibrary
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:9:8: warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
7 |
8 | import Foundation
9 | import iOSMcuManagerLibrary
| `- warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
10 |
11 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:10:8: warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
8 |
9 | import Foundation
10 | import iOSMcuManagerLibrary
| `- warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
11 |
12 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager.swift:132:37: warning: non-breaking space (U+00A0) used instead of regular space
130 | objc_sync_enter(self)
131 | // If upload is already in progress or paused, do not continue.
132 | if transferState == .none || transferState == .cancelled {
| `- warning: non-breaking space (U+00A0) used instead of regular space
133 | // Set downloading flag to true.
134 | transferState = .downloading
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``eraseAppSettings()``
19 | public func eraseAppSettings() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
21 | eraseAppSettings() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |
19 | /// Async variant of ``reset(bootMode:force:callback:)``
20 | public func reset(bootMode: ResetBootMode = .normal, force: Bool = false) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
22 | reset(bootMode: bootMode, force: force) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:37:5: warning: 'public' modifier is redundant for instance method declared in a public extension
35 |
36 | /// Async variant of ``params(callback:)``
37 | public func params() async throws -> McuMgrParametersResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
38 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrParametersResponse, Error>) in
39 | params { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:54:5: warning: 'public' modifier is redundant for instance method declared in a public extension
52 |
53 | /// Async variant of ``applicationInfo(format:callback:)``
54 | public func applicationInfo(format: Set<ApplicationInfoFormat>) async throws -> AppInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
55 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<AppInfoResponse, Error>) in
56 | applicationInfo(format: format) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
68 | // MARK: bootloaderInfo()
69 |
70 | public func bootloaderInfo() async throws -> (bootloader: BootloaderInfoResponse.Bootloader?, mode: BootloaderInfoResponse.Mode?, slot: UInt64?) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
71 | let bootloader = try await bootloaderQuery(.name).bootloader
72 | guard bootloader == .mcuboot else { return (bootloader: bootloader, mode: nil, slot: nil) }
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
80 |
81 | /// Async variant of ``bootloaderInfo(query:callback:)``
82 | public func bootloaderQuery(_ query: BootloaderInfoQuery) async throws -> BootloaderInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
83 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<BootloaderInfoResponse, Error>) in
84 | bootloaderInfo(query: query) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:99:5: warning: 'public' modifier is redundant for instance method declared in a public extension
97 |
98 | /// Async variant of ``memoryPoolStats(callback:)``
99 | public func memoryPoolStats() async throws -> McuMgrMemoryPoolStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
100 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrMemoryPoolStatsResponse, Error>) in
101 | memoryPoolStats() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 |
16 | @MainActor
17 | public func upload(_ name: String, data: Data, using configuration: FirmwareUpgradeConfiguration = FirmwareUpgradeConfiguration()) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | let asyncDelegate = AsyncFileSystemDelegate(name: name, data: data)
19 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |
33 | @MainActor
34 | public func download(_ path: String) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | let asyncDelegate = AsyncFileSystemDelegate(name: path)
36 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: list() async
16 |
17 | public func list() async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
19 | list() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: test() async
32 |
33 | public func test(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
35 | test(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: confirm() async
48 |
49 | public func confirm(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
51 | confirm(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | // MARK: erase() async throws
64 |
65 | public func erase(image: Int? = nil, slot: Int? = nil) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
67 | erase(image: image, slot: slot) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:18:5: warning: 'public' modifier is redundant for instance method declared in a public extension
16 | // MARK: async write()
17 |
18 | public func write(name: String, value: [UInt8]) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
19 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
20 | write(name: name, value: value) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 | // MARK: async save()
33 |
34 | public func save() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
36 | send(op: .write, commandId: ConfigID.three, payload: nil) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
48 | // MARK: async setFirmwareLoaderAdvertisingName(_:)
49 |
50 | public func setFirmwareLoaderAdvertisingName(_ name: String) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``list(callback:)``
19 | public func list() async throws -> McuMgrStatsListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsListResponse, Error>) in
21 | list { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
34 |
35 | /// Async variant of ``read(module:callback:)``
36 | public func read(module: String) async throws -> McuMgrStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
37 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsResponse, Error>) in
38 | read(module: module) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: listManifest()
16 |
17 | public func listManifest() async throws -> SuitListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<SuitListResponse, Error>) in
19 | listManifest { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: processRecentlyUploadedEnvelope()
32 |
33 | public func processRecentlyUploadedEnvelope() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
35 | processRecentlyUploadedEnvelope() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: cleanup()
48 |
49 | public func cleanup() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
51 | cleanup { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``list(callback:)``
19 | public func list() async throws -> McuMgrStatsListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsListResponse, Error>) in
21 | list { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
34 |
35 | /// Async variant of ``read(module:callback:)``
36 | public func read(module: String) async throws -> McuMgrStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
37 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsResponse, Error>) in
38 | read(module: module) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: listManifest()
16 |
17 | public func listManifest() async throws -> SuitListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<SuitListResponse, Error>) in
19 | listManifest { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: processRecentlyUploadedEnvelope()
32 |
33 | public func processRecentlyUploadedEnvelope() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
35 | processRecentlyUploadedEnvelope() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: cleanup()
48 |
49 | public func cleanup() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
51 | cleanup { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager.swift:619:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
617 | public func transport(_ transport: McuMgrTransport, didChangeStateTo state: McuMgrTransportState) {
618 | // Disregard other states.
619 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
620 |
621 | log(msg: "Device has disconnected.", atLevel: .info)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``list(callback:)``
19 | public func list() async throws -> McuMgrStatsListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsListResponse, Error>) in
21 | list { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
34 |
35 | /// Async variant of ``read(module:callback:)``
36 | public func read(module: String) async throws -> McuMgrStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
37 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsResponse, Error>) in
38 | read(module: module) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: listManifest()
16 |
17 | public func listManifest() async throws -> SuitListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<SuitListResponse, Error>) in
19 | listManifest { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: processRecentlyUploadedEnvelope()
32 |
33 | public func processRecentlyUploadedEnvelope() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
35 | processRecentlyUploadedEnvelope() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: cleanup()
48 |
49 | public func cleanup() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
51 | cleanup { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager.swift:619:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
617 | public func transport(_ transport: McuMgrTransport, didChangeStateTo state: McuMgrTransportState) {
618 | // Disregard other states.
619 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
620 |
621 | log(msg: "Device has disconnected.", atLevel: .info)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``list(callback:)``
19 | public func list() async throws -> McuMgrStatsListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsListResponse, Error>) in
21 | list { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
34 |
35 | /// Async variant of ``read(module:callback:)``
36 | public func read(module: String) async throws -> McuMgrStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
37 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsResponse, Error>) in
38 | read(module: module) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: listManifest()
16 |
17 | public func listManifest() async throws -> SuitListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<SuitListResponse, Error>) in
19 | listManifest { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: processRecentlyUploadedEnvelope()
32 |
33 | public func processRecentlyUploadedEnvelope() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
35 | processRecentlyUploadedEnvelope() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: cleanup()
48 |
49 | public func cleanup() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
51 | cleanup { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager.swift:619:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
617 | public func transport(_ transport: McuMgrTransport, didChangeStateTo state: McuMgrTransportState) {
618 | // Disregard other states.
619 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
620 |
621 | log(msg: "Device has disconnected.", atLevel: .info)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``list(callback:)``
19 | public func list() async throws -> McuMgrStatsListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsListResponse, Error>) in
21 | list { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
34 |
35 | /// Async variant of ``read(module:callback:)``
36 | public func read(module: String) async throws -> McuMgrStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
37 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsResponse, Error>) in
38 | read(module: module) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: listManifest()
16 |
17 | public func listManifest() async throws -> SuitListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<SuitListResponse, Error>) in
19 | listManifest { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: processRecentlyUploadedEnvelope()
32 |
33 | public func processRecentlyUploadedEnvelope() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
35 | processRecentlyUploadedEnvelope() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: cleanup()
48 |
49 | public func cleanup() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
51 | cleanup { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager.swift:619:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
617 | public func transport(_ transport: McuMgrTransport, didChangeStateTo state: McuMgrTransportState) {
618 | // Disregard other states.
619 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
620 |
621 | log(msg: "Device has disconnected.", atLevel: .info)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``list(callback:)``
19 | public func list() async throws -> McuMgrStatsListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsListResponse, Error>) in
21 | list { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/StatsManager+Async.swift:36:5: warning: 'public' modifier is redundant for instance method declared in a public extension
34 |
35 | /// Async variant of ``read(module:callback:)``
36 | public func read(module: String) async throws -> McuMgrStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
37 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrStatsResponse, Error>) in
38 | read(module: module) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: listManifest()
16 |
17 | public func listManifest() async throws -> SuitListResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<SuitListResponse, Error>) in
19 | listManifest { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: processRecentlyUploadedEnvelope()
32 |
33 | public func processRecentlyUploadedEnvelope() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
35 | processRecentlyUploadedEnvelope() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: cleanup()
48 |
49 | public func cleanup() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
51 | cleanup { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SuitManager.swift:619:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
617 | public func transport(_ transport: McuMgrTransport, didChangeStateTo state: McuMgrTransportState) {
618 | // Disregard other states.
619 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
620 |
621 | log(msg: "Device has disconnected.", atLevel: .info)
[159/266] Compiling iOSMcuManagerLibrary ImageManager.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager.swift:573:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
571 |
572 | private func onUploadResponseError(_ error: any LocalizedError, for response: McuMgrUploadResponse) {
573 | if case let McuMgrError.returnCode(.busy) = error {
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
574 | log(msg: "Received 'busy' Error from Device. Will try again after a short day.", atLevel: .debug)
575 | if let offset = response.off {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:18:5: warning: 'public' modifier is redundant for instance method declared in a public extension
16 | // MARK: async write()
17 |
18 | public func write(name: String, value: [UInt8]) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
19 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
20 | write(name: name, value: value) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 | // MARK: async save()
33 |
34 | public func save() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
36 | send(op: .write, commandId: ConfigID.three, payload: nil) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
48 | // MARK: async setFirmwareLoaderAdvertisingName(_:)
49 |
50 | public func setFirmwareLoaderAdvertisingName(_ name: String) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:53:23: warning: result of call to 'write(name:value:)' is unused [#no-usage]
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
53 | try await write(name: "fw_loader/adv_name", value: nameBlob)
| `- warning: result of call to 'write(name:value:)' is unused [#no-usage]
54 | return try await save()
55 | } catch {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager.swift:573:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
571 |
572 | private func onUploadResponseError(_ error: any LocalizedError, for response: McuMgrUploadResponse) {
573 | if case let McuMgrError.returnCode(.busy) = error {
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
574 | log(msg: "Received 'busy' Error from Device. Will try again after a short day.", atLevel: .debug)
575 | if let offset = response.off {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:18:5: warning: 'public' modifier is redundant for instance method declared in a public extension
16 | // MARK: async write()
17 |
18 | public func write(name: String, value: [UInt8]) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
19 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
20 | write(name: name, value: value) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 | // MARK: async save()
33 |
34 | public func save() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
36 | send(op: .write, commandId: ConfigID.three, payload: nil) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
48 | // MARK: async setFirmwareLoaderAdvertisingName(_:)
49 |
50 | public func setFirmwareLoaderAdvertisingName(_ name: String) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:53:23: warning: result of call to 'write(name:value:)' is unused [#no-usage]
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
53 | try await write(name: "fw_loader/adv_name", value: nameBlob)
| `- warning: result of call to 'write(name:value:)' is unused [#no-usage]
54 | return try await save()
55 | } catch {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager.swift:573:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
571 |
572 | private func onUploadResponseError(_ error: any LocalizedError, for response: McuMgrUploadResponse) {
573 | if case let McuMgrError.returnCode(.busy) = error {
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
574 | log(msg: "Received 'busy' Error from Device. Will try again after a short day.", atLevel: .debug)
575 | if let offset = response.off {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:18:5: warning: 'public' modifier is redundant for instance method declared in a public extension
16 | // MARK: async write()
17 |
18 | public func write(name: String, value: [UInt8]) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
19 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
20 | write(name: name, value: value) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 | // MARK: async save()
33 |
34 | public func save() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
36 | send(op: .write, commandId: ConfigID.three, payload: nil) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
48 | // MARK: async setFirmwareLoaderAdvertisingName(_:)
49 |
50 | public func setFirmwareLoaderAdvertisingName(_ name: String) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:53:23: warning: result of call to 'write(name:value:)' is unused [#no-usage]
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
53 | try await write(name: "fw_loader/adv_name", value: nameBlob)
| `- warning: result of call to 'write(name:value:)' is unused [#no-usage]
54 | return try await save()
55 | } catch {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager.swift:573:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
571 |
572 | private func onUploadResponseError(_ error: any LocalizedError, for response: McuMgrUploadResponse) {
573 | if case let McuMgrError.returnCode(.busy) = error {
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
574 | log(msg: "Received 'busy' Error from Device. Will try again after a short day.", atLevel: .debug)
575 | if let offset = response.off {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:18:5: warning: 'public' modifier is redundant for instance method declared in a public extension
16 | // MARK: async write()
17 |
18 | public func write(name: String, value: [UInt8]) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
19 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
20 | write(name: name, value: value) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 | // MARK: async save()
33 |
34 | public func save() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
36 | send(op: .write, commandId: ConfigID.three, payload: nil) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
48 | // MARK: async setFirmwareLoaderAdvertisingName(_:)
49 |
50 | public func setFirmwareLoaderAdvertisingName(_ name: String) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:53:23: warning: result of call to 'write(name:value:)' is unused [#no-usage]
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
53 | try await write(name: "fw_loader/adv_name", value: nameBlob)
| `- warning: result of call to 'write(name:value:)' is unused [#no-usage]
54 | return try await save()
55 | } catch {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager.swift:573:17: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
571 |
572 | private func onUploadResponseError(_ error: any LocalizedError, for response: McuMgrUploadResponse) {
573 | if case let McuMgrError.returnCode(.busy) = error {
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
574 | log(msg: "Received 'busy' Error from Device. Will try again after a short day.", atLevel: .debug)
575 | if let offset = response.off {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:18:5: warning: 'public' modifier is redundant for instance method declared in a public extension
16 | // MARK: async write()
17 |
18 | public func write(name: String, value: [UInt8]) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
19 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
20 | write(name: name, value: value) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 | // MARK: async save()
33 |
34 | public func save() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
36 | send(op: .write, commandId: ConfigID.three, payload: nil) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
48 | // MARK: async setFirmwareLoaderAdvertisingName(_:)
49 |
50 | public func setFirmwareLoaderAdvertisingName(_ name: String) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/SettingsManager+Async.swift:53:23: warning: result of call to 'write(name:value:)' is unused [#no-usage]
51 | do {
52 | let nameBlob: [UInt8] = Array(name.utf8)
53 | try await write(name: "fw_loader/adv_name", value: nameBlob)
| `- warning: result of call to 'write(name:value:)' is unused [#no-usage]
54 | return try await save()
55 | } catch {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:10:8: warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
8 |
9 | import Foundation
10 | import iOSMcuManagerLibrary
| `- warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
11 |
12 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager.swift:132:37: warning: non-breaking space (U+00A0) used instead of regular space
130 | objc_sync_enter(self)
131 | // If upload is already in progress or paused, do not continue.
132 | if transferState == .none || transferState == .cancelled {
| `- warning: non-breaking space (U+00A0) used instead of regular space
133 | // Set downloading flag to true.
134 | transferState = .downloading
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |
19 | /// Async variant of ``reset(bootMode:force:callback:)``
20 | public func reset(bootMode: ResetBootMode = .normal, force: Bool = false) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
22 | reset(bootMode: bootMode, force: force) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:37:5: warning: 'public' modifier is redundant for instance method declared in a public extension
35 |
36 | /// Async variant of ``params(callback:)``
37 | public func params() async throws -> McuMgrParametersResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
38 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrParametersResponse, Error>) in
39 | params { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:54:5: warning: 'public' modifier is redundant for instance method declared in a public extension
52 |
53 | /// Async variant of ``applicationInfo(format:callback:)``
54 | public func applicationInfo(format: Set<ApplicationInfoFormat>) async throws -> AppInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
55 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<AppInfoResponse, Error>) in
56 | applicationInfo(format: format) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
68 | // MARK: bootloaderInfo()
69 |
70 | public func bootloaderInfo() async throws -> (bootloader: BootloaderInfoResponse.Bootloader?, mode: BootloaderInfoResponse.Mode?, slot: UInt64?) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
71 | let bootloader = try await bootloaderQuery(.name).bootloader
72 | guard bootloader == .mcuboot else { return (bootloader: bootloader, mode: nil, slot: nil) }
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
80 |
81 | /// Async variant of ``bootloaderInfo(query:callback:)``
82 | public func bootloaderQuery(_ query: BootloaderInfoQuery) async throws -> BootloaderInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
83 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<BootloaderInfoResponse, Error>) in
84 | bootloaderInfo(query: query) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:99:5: warning: 'public' modifier is redundant for instance method declared in a public extension
97 |
98 | /// Async variant of ``memoryPoolStats(callback:)``
99 | public func memoryPoolStats() async throws -> McuMgrMemoryPoolStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
100 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrMemoryPoolStatsResponse, Error>) in
101 | memoryPoolStats() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 |
16 | @MainActor
17 | public func upload(_ name: String, data: Data, using configuration: FirmwareUpgradeConfiguration = FirmwareUpgradeConfiguration()) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | let asyncDelegate = AsyncFileSystemDelegate(name: name, data: data)
19 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |
33 | @MainActor
34 | public func download(_ path: String) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | let asyncDelegate = AsyncFileSystemDelegate(name: path)
36 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:23:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
21 | let result = upload(name: name, data: data, using: configuration, delegate: asyncDelegate)
22 | if !result {
23 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
24 | // deferred so stream listener can get it.
25 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:39:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
37 | let result = download(name: path, delegate: asyncDelegate)
38 | if !result {
39 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
40 | // deferred so stream listener can get it.
41 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: list() async
16 |
17 | public func list() async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
19 | list() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: test() async
32 |
33 | public func test(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
35 | test(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: confirm() async
48 |
49 | public func confirm(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
51 | confirm(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | // MARK: erase() async throws
64 |
65 | public func erase(image: Int? = nil, slot: Int? = nil) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
67 | erase(image: image, slot: slot) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:10:8: warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
8 |
9 | import Foundation
10 | import iOSMcuManagerLibrary
| `- warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
11 |
12 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager.swift:132:37: warning: non-breaking space (U+00A0) used instead of regular space
130 | objc_sync_enter(self)
131 | // If upload is already in progress or paused, do not continue.
132 | if transferState == .none || transferState == .cancelled {
| `- warning: non-breaking space (U+00A0) used instead of regular space
133 | // Set downloading flag to true.
134 | transferState = .downloading
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |
19 | /// Async variant of ``reset(bootMode:force:callback:)``
20 | public func reset(bootMode: ResetBootMode = .normal, force: Bool = false) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
22 | reset(bootMode: bootMode, force: force) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:37:5: warning: 'public' modifier is redundant for instance method declared in a public extension
35 |
36 | /// Async variant of ``params(callback:)``
37 | public func params() async throws -> McuMgrParametersResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
38 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrParametersResponse, Error>) in
39 | params { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:54:5: warning: 'public' modifier is redundant for instance method declared in a public extension
52 |
53 | /// Async variant of ``applicationInfo(format:callback:)``
54 | public func applicationInfo(format: Set<ApplicationInfoFormat>) async throws -> AppInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
55 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<AppInfoResponse, Error>) in
56 | applicationInfo(format: format) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
68 | // MARK: bootloaderInfo()
69 |
70 | public func bootloaderInfo() async throws -> (bootloader: BootloaderInfoResponse.Bootloader?, mode: BootloaderInfoResponse.Mode?, slot: UInt64?) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
71 | let bootloader = try await bootloaderQuery(.name).bootloader
72 | guard bootloader == .mcuboot else { return (bootloader: bootloader, mode: nil, slot: nil) }
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
80 |
81 | /// Async variant of ``bootloaderInfo(query:callback:)``
82 | public func bootloaderQuery(_ query: BootloaderInfoQuery) async throws -> BootloaderInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
83 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<BootloaderInfoResponse, Error>) in
84 | bootloaderInfo(query: query) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:99:5: warning: 'public' modifier is redundant for instance method declared in a public extension
97 |
98 | /// Async variant of ``memoryPoolStats(callback:)``
99 | public func memoryPoolStats() async throws -> McuMgrMemoryPoolStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
100 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrMemoryPoolStatsResponse, Error>) in
101 | memoryPoolStats() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 |
16 | @MainActor
17 | public func upload(_ name: String, data: Data, using configuration: FirmwareUpgradeConfiguration = FirmwareUpgradeConfiguration()) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | let asyncDelegate = AsyncFileSystemDelegate(name: name, data: data)
19 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |
33 | @MainActor
34 | public func download(_ path: String) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | let asyncDelegate = AsyncFileSystemDelegate(name: path)
36 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:23:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
21 | let result = upload(name: name, data: data, using: configuration, delegate: asyncDelegate)
22 | if !result {
23 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
24 | // deferred so stream listener can get it.
25 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:39:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
37 | let result = download(name: path, delegate: asyncDelegate)
38 | if !result {
39 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
40 | // deferred so stream listener can get it.
41 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: list() async
16 |
17 | public func list() async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
19 | list() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: test() async
32 |
33 | public func test(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
35 | test(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: confirm() async
48 |
49 | public func confirm(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
51 | confirm(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | // MARK: erase() async throws
64 |
65 | public func erase(image: Int? = nil, slot: Int? = nil) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
67 | erase(image: image, slot: slot) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:10:8: warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
8 |
9 | import Foundation
10 | import iOSMcuManagerLibrary
| `- warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
11 |
12 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager.swift:132:37: warning: non-breaking space (U+00A0) used instead of regular space
130 | objc_sync_enter(self)
131 | // If upload is already in progress or paused, do not continue.
132 | if transferState == .none || transferState == .cancelled {
| `- warning: non-breaking space (U+00A0) used instead of regular space
133 | // Set downloading flag to true.
134 | transferState = .downloading
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |
19 | /// Async variant of ``reset(bootMode:force:callback:)``
20 | public func reset(bootMode: ResetBootMode = .normal, force: Bool = false) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
22 | reset(bootMode: bootMode, force: force) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:37:5: warning: 'public' modifier is redundant for instance method declared in a public extension
35 |
36 | /// Async variant of ``params(callback:)``
37 | public func params() async throws -> McuMgrParametersResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
38 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrParametersResponse, Error>) in
39 | params { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:54:5: warning: 'public' modifier is redundant for instance method declared in a public extension
52 |
53 | /// Async variant of ``applicationInfo(format:callback:)``
54 | public func applicationInfo(format: Set<ApplicationInfoFormat>) async throws -> AppInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
55 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<AppInfoResponse, Error>) in
56 | applicationInfo(format: format) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
68 | // MARK: bootloaderInfo()
69 |
70 | public func bootloaderInfo() async throws -> (bootloader: BootloaderInfoResponse.Bootloader?, mode: BootloaderInfoResponse.Mode?, slot: UInt64?) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
71 | let bootloader = try await bootloaderQuery(.name).bootloader
72 | guard bootloader == .mcuboot else { return (bootloader: bootloader, mode: nil, slot: nil) }
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
80 |
81 | /// Async variant of ``bootloaderInfo(query:callback:)``
82 | public func bootloaderQuery(_ query: BootloaderInfoQuery) async throws -> BootloaderInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
83 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<BootloaderInfoResponse, Error>) in
84 | bootloaderInfo(query: query) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:99:5: warning: 'public' modifier is redundant for instance method declared in a public extension
97 |
98 | /// Async variant of ``memoryPoolStats(callback:)``
99 | public func memoryPoolStats() async throws -> McuMgrMemoryPoolStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
100 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrMemoryPoolStatsResponse, Error>) in
101 | memoryPoolStats() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 |
16 | @MainActor
17 | public func upload(_ name: String, data: Data, using configuration: FirmwareUpgradeConfiguration = FirmwareUpgradeConfiguration()) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | let asyncDelegate = AsyncFileSystemDelegate(name: name, data: data)
19 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |
33 | @MainActor
34 | public func download(_ path: String) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | let asyncDelegate = AsyncFileSystemDelegate(name: path)
36 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:23:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
21 | let result = upload(name: name, data: data, using: configuration, delegate: asyncDelegate)
22 | if !result {
23 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
24 | // deferred so stream listener can get it.
25 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:39:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
37 | let result = download(name: path, delegate: asyncDelegate)
38 | if !result {
39 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
40 | // deferred so stream listener can get it.
41 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: list() async
16 |
17 | public func list() async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
19 | list() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: test() async
32 |
33 | public func test(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
35 | test(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: confirm() async
48 |
49 | public func confirm(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
51 | confirm(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | // MARK: erase() async throws
64 |
65 | public func erase(image: Int? = nil, slot: Int? = nil) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
67 | erase(image: image, slot: slot) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:10:8: warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
8 |
9 | import Foundation
10 | import iOSMcuManagerLibrary
| `- warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
11 |
12 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager.swift:132:37: warning: non-breaking space (U+00A0) used instead of regular space
130 | objc_sync_enter(self)
131 | // If upload is already in progress or paused, do not continue.
132 | if transferState == .none || transferState == .cancelled {
| `- warning: non-breaking space (U+00A0) used instead of regular space
133 | // Set downloading flag to true.
134 | transferState = .downloading
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |
19 | /// Async variant of ``reset(bootMode:force:callback:)``
20 | public func reset(bootMode: ResetBootMode = .normal, force: Bool = false) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
22 | reset(bootMode: bootMode, force: force) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:37:5: warning: 'public' modifier is redundant for instance method declared in a public extension
35 |
36 | /// Async variant of ``params(callback:)``
37 | public func params() async throws -> McuMgrParametersResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
38 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrParametersResponse, Error>) in
39 | params { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:54:5: warning: 'public' modifier is redundant for instance method declared in a public extension
52 |
53 | /// Async variant of ``applicationInfo(format:callback:)``
54 | public func applicationInfo(format: Set<ApplicationInfoFormat>) async throws -> AppInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
55 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<AppInfoResponse, Error>) in
56 | applicationInfo(format: format) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
68 | // MARK: bootloaderInfo()
69 |
70 | public func bootloaderInfo() async throws -> (bootloader: BootloaderInfoResponse.Bootloader?, mode: BootloaderInfoResponse.Mode?, slot: UInt64?) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
71 | let bootloader = try await bootloaderQuery(.name).bootloader
72 | guard bootloader == .mcuboot else { return (bootloader: bootloader, mode: nil, slot: nil) }
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
80 |
81 | /// Async variant of ``bootloaderInfo(query:callback:)``
82 | public func bootloaderQuery(_ query: BootloaderInfoQuery) async throws -> BootloaderInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
83 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<BootloaderInfoResponse, Error>) in
84 | bootloaderInfo(query: query) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:99:5: warning: 'public' modifier is redundant for instance method declared in a public extension
97 |
98 | /// Async variant of ``memoryPoolStats(callback:)``
99 | public func memoryPoolStats() async throws -> McuMgrMemoryPoolStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
100 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrMemoryPoolStatsResponse, Error>) in
101 | memoryPoolStats() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 |
16 | @MainActor
17 | public func upload(_ name: String, data: Data, using configuration: FirmwareUpgradeConfiguration = FirmwareUpgradeConfiguration()) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | let asyncDelegate = AsyncFileSystemDelegate(name: name, data: data)
19 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |
33 | @MainActor
34 | public func download(_ path: String) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | let asyncDelegate = AsyncFileSystemDelegate(name: path)
36 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:23:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
21 | let result = upload(name: name, data: data, using: configuration, delegate: asyncDelegate)
22 | if !result {
23 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
24 | // deferred so stream listener can get it.
25 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:39:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
37 | let result = download(name: path, delegate: asyncDelegate)
38 | if !result {
39 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
40 | // deferred so stream listener can get it.
41 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: list() async
16 |
17 | public func list() async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
19 | list() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: test() async
32 |
33 | public func test(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
35 | test(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: confirm() async
48 |
49 | public func confirm(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
51 | confirm(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | // MARK: erase() async throws
64 |
65 | public func erase(image: Int? = nil, slot: Int? = nil) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
67 | erase(image: image, slot: slot) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:10:8: warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
8 |
9 | import Foundation
10 | import iOSMcuManagerLibrary
| `- warning: file 'DefaultManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
11 |
12 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager.swift:132:37: warning: non-breaking space (U+00A0) used instead of regular space
130 | objc_sync_enter(self)
131 | // If upload is already in progress or paused, do not continue.
132 | if transferState == .none || transferState == .cancelled {
| `- warning: non-breaking space (U+00A0) used instead of regular space
133 | // Set downloading flag to true.
134 | transferState = .downloading
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |
19 | /// Async variant of ``reset(bootMode:force:callback:)``
20 | public func reset(bootMode: ResetBootMode = .normal, force: Bool = false) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
22 | reset(bootMode: bootMode, force: force) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:37:5: warning: 'public' modifier is redundant for instance method declared in a public extension
35 |
36 | /// Async variant of ``params(callback:)``
37 | public func params() async throws -> McuMgrParametersResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
38 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrParametersResponse, Error>) in
39 | params { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:54:5: warning: 'public' modifier is redundant for instance method declared in a public extension
52 |
53 | /// Async variant of ``applicationInfo(format:callback:)``
54 | public func applicationInfo(format: Set<ApplicationInfoFormat>) async throws -> AppInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
55 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<AppInfoResponse, Error>) in
56 | applicationInfo(format: format) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:70:5: warning: 'public' modifier is redundant for instance method declared in a public extension
68 | // MARK: bootloaderInfo()
69 |
70 | public func bootloaderInfo() async throws -> (bootloader: BootloaderInfoResponse.Bootloader?, mode: BootloaderInfoResponse.Mode?, slot: UInt64?) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
71 | let bootloader = try await bootloaderQuery(.name).bootloader
72 | guard bootloader == .mcuboot else { return (bootloader: bootloader, mode: nil, slot: nil) }
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:82:5: warning: 'public' modifier is redundant for instance method declared in a public extension
80 |
81 | /// Async variant of ``bootloaderInfo(query:callback:)``
82 | public func bootloaderQuery(_ query: BootloaderInfoQuery) async throws -> BootloaderInfoResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
83 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<BootloaderInfoResponse, Error>) in
84 | bootloaderInfo(query: query) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DefaultManager+Async.swift:99:5: warning: 'public' modifier is redundant for instance method declared in a public extension
97 |
98 | /// Async variant of ``memoryPoolStats(callback:)``
99 | public func memoryPoolStats() async throws -> McuMgrMemoryPoolStatsResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
100 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrMemoryPoolStatsResponse, Error>) in
101 | memoryPoolStats() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 |
16 | @MainActor
17 | public func upload(_ name: String, data: Data, using configuration: FirmwareUpgradeConfiguration = FirmwareUpgradeConfiguration()) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | let asyncDelegate = AsyncFileSystemDelegate(name: name, data: data)
19 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:34:5: warning: 'public' modifier is redundant for instance method declared in a public extension
32 |
33 | @MainActor
34 | public func download(_ path: String) -> AsyncStream<AsyncFileSystemEvent> {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
35 | let asyncDelegate = AsyncFileSystemDelegate(name: path)
36 | self.asyncDelegate = asyncDelegate
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:23:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
21 | let result = upload(name: name, data: data, using: configuration, delegate: asyncDelegate)
22 | if !result {
23 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
24 | // deferred so stream listener can get it.
25 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/FileSystemManager+Async.swift:39:13: warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
37 | let result = download(name: path, delegate: asyncDelegate)
38 | if !result {
39 | defer {
| `- warning: 'defer' statement at end of scope always executes immediately; replace with 'do' statement to silence this warning
40 | // deferred so stream listener can get it.
41 | asyncDelegate.send(.operationDidFail(FileSystemManagerError.operationAlreadyInProgress))
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:17:5: warning: 'public' modifier is redundant for instance method declared in a public extension
15 | // MARK: list() async
16 |
17 | public func list() async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
18 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
19 | list() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:33:5: warning: 'public' modifier is redundant for instance method declared in a public extension
31 | // MARK: test() async
32 |
33 | public func test(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
34 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
35 | test(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:49:5: warning: 'public' modifier is redundant for instance method declared in a public extension
47 | // MARK: confirm() async
48 |
49 | public func confirm(hash: [UInt8]) async throws -> McuMgrImageStateResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
50 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrImageStateResponse, Error>) in
51 | confirm(hash: hash) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/ImageManager+Async.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | // MARK: erase() async throws
64 |
65 | public func erase(image: Int? = nil, slot: Int? = nil) async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
67 | erase(image: image, slot: slot) { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1026:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1024 |
1025 | // Disregard connected state.
1026 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1027 |
1028 | switch self.state { // FirmwareUpgradeState, not McuMgrTransportState
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1167:40: warning: variable 'images' was never mutated; consider changing to 'let' constant
1165 |
1166 | public func uploadProgressDidChange(bytesSent: Int, imageSize: Int, timestamp: Date) {
1167 | if bytesSent == imageSize, var images {
| `- warning: variable 'images' was never mutated; consider changing to 'let' constant
1168 | // An Image was sent. Mark as uploaded.
1169 | if let image = images.first(where: { !$0.uploaded && $0.data.count == imageSize }) {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1026:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1024 |
1025 | // Disregard connected state.
1026 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1027 |
1028 | switch self.state { // FirmwareUpgradeState, not McuMgrTransportState
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1167:40: warning: variable 'images' was never mutated; consider changing to 'let' constant
1165 |
1166 | public func uploadProgressDidChange(bytesSent: Int, imageSize: Int, timestamp: Date) {
1167 | if bytesSent == imageSize, var images {
| `- warning: variable 'images' was never mutated; consider changing to 'let' constant
1168 | // An Image was sent. Mark as uploaded.
1169 | if let image = images.first(where: { !$0.uploaded && $0.data.count == imageSize }) {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1026:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1024 |
1025 | // Disregard connected state.
1026 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1027 |
1028 | switch self.state { // FirmwareUpgradeState, not McuMgrTransportState
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1167:40: warning: variable 'images' was never mutated; consider changing to 'let' constant
1165 |
1166 | public func uploadProgressDidChange(bytesSent: Int, imageSize: Int, timestamp: Date) {
1167 | if bytesSent == imageSize, var images {
| `- warning: variable 'images' was never mutated; consider changing to 'let' constant
1168 | // An Image was sent. Mark as uploaded.
1169 | if let image = images.first(where: { !$0.uploaded && $0.data.count == imageSize }) {
[172/266] Compiling iOSMcuManagerLibrary FirmwareUpgradeMode.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1026:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1024 |
1025 | // Disregard connected state.
1026 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1027 |
1028 | switch self.state { // FirmwareUpgradeState, not McuMgrTransportState
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1167:40: warning: variable 'images' was never mutated; consider changing to 'let' constant
1165 |
1166 | public func uploadProgressDidChange(bytesSent: Int, imageSize: Int, timestamp: Date) {
1167 | if bytesSent == imageSize, var images {
| `- warning: variable 'images' was never mutated; consider changing to 'let' constant
1168 | // An Image was sent. Mark as uploaded.
1169 | if let image = images.first(where: { !$0.uploaded && $0.data.count == imageSize }) {
[173/266] Compiling iOSMcuManagerLibrary FirmwareUpgradePeripheralFinder.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1026:20: warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1024 |
1025 | // Disregard connected state.
1026 | guard case let .disconnected = state else { return }
| `- warning: 'let' pattern has no effect; sub-pattern didn't bind any variables
1027 |
1028 | switch self.state { // FirmwareUpgradeState, not McuMgrTransportState
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/DFU/FirmwareUpgradeManager.swift:1167:40: warning: variable 'images' was never mutated; consider changing to 'let' constant
1165 |
1166 | public func uploadProgressDidChange(bytesSent: Int, imageSize: Int, timestamp: Date) {
1167 | if bytesSent == imageSize, var images {
| `- warning: variable 'images' was never mutated; consider changing to 'let' constant
1168 | // An Image was sent. Mark as uploaded.
1169 | if let image = images.first(where: { !$0.uploaded && $0.data.count == imageSize }) {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:9:8: warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
7 |
8 | import Foundation
9 | import iOSMcuManagerLibrary
| `- warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
10 |
11 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``eraseAppSettings()``
19 | public func eraseAppSettings() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
21 | eraseAppSettings() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:9:8: warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
7 |
8 | import Foundation
9 | import iOSMcuManagerLibrary
| `- warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
10 |
11 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``eraseAppSettings()``
19 | public func eraseAppSettings() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
21 | eraseAppSettings() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:9:8: warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
7 |
8 | import Foundation
9 | import iOSMcuManagerLibrary
| `- warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
10 |
11 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``eraseAppSettings()``
19 | public func eraseAppSettings() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
21 | eraseAppSettings() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:9:8: warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
7 |
8 | import Foundation
9 | import iOSMcuManagerLibrary
| `- warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
10 |
11 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``eraseAppSettings()``
19 | public func eraseAppSettings() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
21 | eraseAppSettings() { response, error in
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:9:8: warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
7 |
8 | import Foundation
9 | import iOSMcuManagerLibrary
| `- warning: file 'BasicManager+Async.swift' is part of module 'iOSMcuManagerLibrary'; ignoring import
10 |
11 | // MARK: - DefaultManager+Async
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/Managers/BasicManager+Async.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |
18 | /// Async variant of ``eraseAppSettings()``
19 | public func eraseAppSettings() async throws -> McuMgrResponse {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<McuMgrResponse, Error>) in
21 | eraseAppSettings() { response, error in
[194/266] Compiling iOSMcuManagerLibrary McuMgrTransport.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:85:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
83 |
84 | mutating public func pipelinedSend(ofSize imageSize: Int, using sendFrom: @escaping (_ offset: UInt64) -> UInt64) {
85 | for i in 0..<availablePipelineSlots {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
86 | let maxUnflushedCallbacks = 0 // constant
87 | guard pendingUnflushedCallbacks <= maxUnflushedCallbacks else {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:122:30: warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
120 | // If throttled, DON'T ramp up again. Stability / Reliability > Speed.
121 | phaseChangeTo(.stable(depth))
122 | case .stable(let depth):
| `- warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
123 | break // Nothing to do here.
124 | }
[195/266] Compiling iOSMcuManagerLibrary McuMgrUploadPipeline.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:85:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
83 |
84 | mutating public func pipelinedSend(ofSize imageSize: Int, using sendFrom: @escaping (_ offset: UInt64) -> UInt64) {
85 | for i in 0..<availablePipelineSlots {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
86 | let maxUnflushedCallbacks = 0 // constant
87 | guard pendingUnflushedCallbacks <= maxUnflushedCallbacks else {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:122:30: warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
120 | // If throttled, DON'T ramp up again. Stability / Reliability > Speed.
121 | phaseChangeTo(.stable(depth))
122 | case .stable(let depth):
| `- warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
123 | break // Nothing to do here.
124 | }
[196/266] Compiling iOSMcuManagerLibrary CBOR+String.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:85:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
83 |
84 | mutating public func pipelinedSend(ofSize imageSize: Int, using sendFrom: @escaping (_ offset: UInt64) -> UInt64) {
85 | for i in 0..<availablePipelineSlots {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
86 | let maxUnflushedCallbacks = 0 // constant
87 | guard pendingUnflushedCallbacks <= maxUnflushedCallbacks else {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:122:30: warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
120 | // If throttled, DON'T ramp up again. Stability / Reliability > Speed.
121 | phaseChangeTo(.stable(depth))
122 | case .stable(let depth):
| `- warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
123 | break // Nothing to do here.
124 | }
[197/266] Compiling iOSMcuManagerLibrary ResultLock.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:85:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
83 |
84 | mutating public func pipelinedSend(ofSize imageSize: Int, using sendFrom: @escaping (_ offset: UInt64) -> UInt64) {
85 | for i in 0..<availablePipelineSlots {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
86 | let maxUnflushedCallbacks = 0 // constant
87 | guard pendingUnflushedCallbacks <= maxUnflushedCallbacks else {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:122:30: warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
120 | // If throttled, DON'T ramp up again. Stability / Reliability > Speed.
121 | phaseChangeTo(.stable(depth))
122 | case .stable(let depth):
| `- warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
123 | break // Nothing to do here.
124 | }
[198/266] Compiling iOSMcuManagerLibrary UTI.swift
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:85:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
83 |
84 | mutating public func pipelinedSend(ofSize imageSize: Int, using sendFrom: @escaping (_ offset: UInt64) -> UInt64) {
85 | for i in 0..<availablePipelineSlots {
| `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#no-usage]
86 | let maxUnflushedCallbacks = 0 // constant
87 | guard pendingUnflushedCallbacks <= maxUnflushedCallbacks else {
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/McuMgrUploadPipeline.swift:122:30: warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
120 | // If throttled, DON'T ramp up again. Stability / Reliability > Speed.
121 | phaseChangeTo(.stable(depth))
122 | case .stable(let depth):
| `- warning: immutable value 'depth' was never used; consider replacing with '_' or removing it [#no-usage]
123 | break // Nothing to do here.
124 | }
[204/266] Compiling iOS_Common_Libraries TemperatureFlag.swift
[205/266] Compiling iOS_Common_Libraries TemperatureMeasurement.swift
[206/266] Compiling iOS_Common_Libraries BitField.swift
[207/266] Compiling iOS_Common_Libraries PasswordField.swift
[208/266] Compiling iOS_Common_Libraries PipelineManager.swift
[209/266] Compiling iOS_Common_Libraries PipelineStage.swift
[210/266] Compiling iOS_Common_Libraries PipelineView.swift
[211/266] Compiling iOS_Common_Libraries ProgressView.swift
[212/266] Compiling iOS_Common_Libraries RSSIShape.swift
[213/266] Compiling iOS_Common_Libraries RSSIView.swift
[214/266] Compiling iOS_Common_Libraries SourceCodeLinkView.swift
[215/266] Compiling iOS_Common_Libraries Cache.swift
[216/266] Compiling iOS_Common_Libraries Constant.swift
[217/266] Compiling iOS_Common_Libraries ErrorEvent.swift
[218/266] Compiling iOS_Common_Libraries Haptic.swift
[219/266] Compiling iOS_Common_Libraries LogLevel.swift
[220/266] Compiling iOS_Common_Libraries LogRecord.swift
[221/266] Compiling iOS_Common_Libraries Option.swift
[222/266] Compiling iOS_Common_Libraries Preview.swift
[223/266] Compiling iOS_Common_Libraries DevZoneLinkView.swift
[224/266] Compiling iOS_Common_Libraries DotView.swift
[225/266] Compiling iOS_Common_Libraries FPSCounter.swift
[226/266] Compiling iOS_Common_Libraries IndeterminateProgressView.swift
[227/266] Compiling iOS_Common_Libraries InlinePicker.swift
[228/266] Compiling iOS_Common_Libraries InlineSegmentedControlPicker.swift
[229/266] Compiling iOS_Common_Libraries NoContentView.swift
[230/266] Compiling iOS_Common_Libraries NordicDataField.swift
[231/266] Compiling iOS_Common_Libraries RSSI.swift
[232/266] Compiling iOS_Common_Libraries LabelStyle.swift
[233/266] Compiling iOS_Common_Libraries LabeledContentStyle.swift
[234/266] Compiling iOS_Common_Libraries TextFieldAlertModifier.swift
[235/266] Compiling iOS_Common_Libraries AppIconView.swift
[236/266] Compiling iOS_Common_Libraries BadgeView.swift
[237/266] Compiling iOS_Common_Libraries BlinkingCursorView.swift
[238/266] Compiling iOS_Common_Libraries CancellableTextField.swift
[257/266] Emitting module iOS_Common_Libraries
[267/283] Compiling iOSOtaLibrary ObservabilityDevice.swift
[268/283] Compiling iOSOtaLibrary ObservabilityDeviceEvent.swift
[269/283] Compiling iOSOtaLibrary OTAManager+Logs.swift
[270/283] Compiling iOSOtaLibrary OTAManager.swift
[271/283] Emitting module iOSOtaLibrary
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/OTA/Tokens/DeviceInfoToken.swift:83:45: warning: non-breaking space (U+00A0) used instead of regular space
81 | public var failureReason: String? { errorDescription }
82 |
83 | public var recoverySuggestion: String? { errorDescription }
| `- warning: non-breaking space (U+00A0) used instead of regular space
84 | }
85 |
[272/283] Compiling iOSOtaLibrary DeviceInfoToken.swift
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/OTA/Tokens/DeviceInfoToken.swift:83:45: warning: non-breaking space (U+00A0) used instead of regular space
81 | public var failureReason: String? { errorDescription }
82 |
83 | public var recoverySuggestion: String? { errorDescription }
| `- warning: non-breaking space (U+00A0) used instead of regular space
84 | }
85 |
[273/283] Compiling iOSOtaLibrary ProjectKey.swift
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/OTA/Tokens/DeviceInfoToken.swift:83:45: warning: non-breaking space (U+00A0) used instead of regular space
81 | public var failureReason: String? { errorDescription }
82 |
83 | public var recoverySuggestion: String? { errorDescription }
| `- warning: non-breaking space (U+00A0) used instead of regular space
84 | }
85 |
[274/283] Compiling iOSOtaLibrary GetLatestReleaseInfoRequest.swift
[275/283] Compiling iOSOtaLibrary MemfaultManager.swift
[276/283] Compiling iOSOtaLibrary CBUUID+MDS.swift
[277/283] Compiling iOSOtaLibrary ObservabilityChunk.swift
[278/283] Compiling iOSOtaLibrary ObservabilityError.swift
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/ObservabilityManager+Internal.swift:154:26: warning: variable 'self' was written to, but never read
152 | peripheral
153 | .listenValues(for: dataExportCharacteristic)
154 | .map { [weak self] data in
| `- warning: variable 'self' was written to, but never read
155 | ObservabilityChunk(data)
156 | }
[279/283] Compiling iOSOtaLibrary ObservabilityManager+Internal.swift
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/ObservabilityManager+Internal.swift:154:26: warning: variable 'self' was written to, but never read
152 | peripheral
153 | .listenValues(for: dataExportCharacteristic)
154 | .map { [weak self] data in
| `- warning: variable 'self' was written to, but never read
155 | ObservabilityChunk(data)
156 | }
[280/283] Compiling iOSOtaLibrary ObservabilityManager+Logs.swift
[281/283] Compiling iOSOtaLibrary ObservabilityManager.swift
[282/283] Compiling iOSOtaLibrary ObservabilityState.swift
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:37:37: warning: result of call to 'sorted(by:)' is unused [#no-usage]
35 |
36 | pendingUploads[identifier]?.append(contentsOf: chunks)
37 | pendingUploads[identifier]?.sorted(by: <)
| `- warning: result of call to 'sorted(by:)' is unused [#no-usage]
38 | enqueueWriteToDisk()
39 | }
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:96:44: error: 'decompress(as:)' is only available in macOS 11.0 or newer
87 | // MARK: Save / Restore
88 |
89 | extension ObservabilityState {
| `- note: add '@available' attribute to enclosing extension
90 |
91 | mutating func restoreFromDisk() {
| `- note: add '@available' attribute to enclosing instance method
92 | guard let url = Self.stateURL(),
93 | let data = try? Data(contentsOf: url) else { return }
94 |
95 | if #available(iOS 14.0, *) {
96 | guard let restored = try? data.decompress(as: Self.self) else { return }
| |- error: 'decompress(as:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
97 | self = restored
98 | } else {
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:96:34: warning: no calls to throwing functions occur within 'try' expression
94 |
95 | if #available(iOS 14.0, *) {
96 | guard let restored = try? data.decompress(as: Self.self) else { return }
| `- warning: no calls to throwing functions occur within 'try' expression
97 | self = restored
98 | } else {
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:142:30: error: 'compressed()' is only available in macOS 11.0 or newer
87 | // MARK: Save / Restore
88 |
89 | extension ObservabilityState {
| `- note: add '@available' attribute to enclosing extension
90 |
91 | mutating func restoreFromDisk() {
:
133 | }
134 |
135 | static func writeToDisk(url: URL, copy: Self) {
| `- note: add '@available' attribute to enclosing static method
136 | Task.detached(name: "writeToDisk", priority: .utility) {
137 | guard let data = try? JSONEncoder().encode(copy) else { return }
:
140 | try Self.createDirectoryIfNecessary(at: urlDirectory)
141 | if #available(iOS 14.0, *) {
142 | try data.compressed().write(to: url, options: [.atomic, .completeFileProtection])
| |- error: 'compressed()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
143 | } else {
144 | try data.write(to: url, options: [.atomic, .completeFileProtection])
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:142:78: error: 'completeFileProtection' is only available in macOS 11.0 or newer
87 | // MARK: Save / Restore
88 |
89 | extension ObservabilityState {
| `- note: add '@available' attribute to enclosing extension
90 |
91 | mutating func restoreFromDisk() {
:
133 | }
134 |
135 | static func writeToDisk(url: URL, copy: Self) {
| `- note: add '@available' attribute to enclosing static method
136 | Task.detached(name: "writeToDisk", priority: .utility) {
137 | guard let data = try? JSONEncoder().encode(copy) else { return }
:
140 | try Self.createDirectoryIfNecessary(at: urlDirectory)
141 | if #available(iOS 14.0, *) {
142 | try data.compressed().write(to: url, options: [.atomic, .completeFileProtection])
| |- error: 'completeFileProtection' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
143 | } else {
144 | try data.write(to: url, options: [.atomic, .completeFileProtection])
[283/283] Compiling iOSOtaLibrary Observability+HTTPRequest.swift
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:37:37: warning: result of call to 'sorted(by:)' is unused [#no-usage]
35 |
36 | pendingUploads[identifier]?.append(contentsOf: chunks)
37 | pendingUploads[identifier]?.sorted(by: <)
| `- warning: result of call to 'sorted(by:)' is unused [#no-usage]
38 | enqueueWriteToDisk()
39 | }
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:96:44: error: 'decompress(as:)' is only available in macOS 11.0 or newer
87 | // MARK: Save / Restore
88 |
89 | extension ObservabilityState {
| `- note: add '@available' attribute to enclosing extension
90 |
91 | mutating func restoreFromDisk() {
| `- note: add '@available' attribute to enclosing instance method
92 | guard let url = Self.stateURL(),
93 | let data = try? Data(contentsOf: url) else { return }
94 |
95 | if #available(iOS 14.0, *) {
96 | guard let restored = try? data.decompress(as: Self.self) else { return }
| |- error: 'decompress(as:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
97 | self = restored
98 | } else {
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:96:34: warning: no calls to throwing functions occur within 'try' expression
94 |
95 | if #available(iOS 14.0, *) {
96 | guard let restored = try? data.decompress(as: Self.self) else { return }
| `- warning: no calls to throwing functions occur within 'try' expression
97 | self = restored
98 | } else {
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:142:30: error: 'compressed()' is only available in macOS 11.0 or newer
87 | // MARK: Save / Restore
88 |
89 | extension ObservabilityState {
| `- note: add '@available' attribute to enclosing extension
90 |
91 | mutating func restoreFromDisk() {
:
133 | }
134 |
135 | static func writeToDisk(url: URL, copy: Self) {
| `- note: add '@available' attribute to enclosing static method
136 | Task.detached(name: "writeToDisk", priority: .utility) {
137 | guard let data = try? JSONEncoder().encode(copy) else { return }
:
140 | try Self.createDirectoryIfNecessary(at: urlDirectory)
141 | if #available(iOS 14.0, *) {
142 | try data.compressed().write(to: url, options: [.atomic, .completeFileProtection])
| |- error: 'compressed()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
143 | } else {
144 | try data.write(to: url, options: [.atomic, .completeFileProtection])
/Users/admin/builder/spi-builder-workspace/iOSOtaLibrary/Source/Observability/Data Structures/ObservabilityState.swift:142:78: error: 'completeFileProtection' is only available in macOS 11.0 or newer
87 | // MARK: Save / Restore
88 |
89 | extension ObservabilityState {
| `- note: add '@available' attribute to enclosing extension
90 |
91 | mutating func restoreFromDisk() {
:
133 | }
134 |
135 | static func writeToDisk(url: URL, copy: Self) {
| `- note: add '@available' attribute to enclosing static method
136 | Task.detached(name: "writeToDisk", priority: .utility) {
137 | guard let data = try? JSONEncoder().encode(copy) else { return }
:
140 | try Self.createDirectoryIfNecessary(at: urlDirectory)
141 | if #available(iOS 14.0, *) {
142 | try data.compressed().write(to: url, options: [.atomic, .completeFileProtection])
| |- error: 'completeFileProtection' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
143 | } else {
144 | try data.write(to: url, options: [.atomic, .completeFileProtection])
[284/284] Compiling iOSOtaLibrary PostChunkRequest.swift
Fetching https://github.com/nordicsemi/IOS-BLE-Library
Fetching https://github.com/valpackett/SwiftCBOR.git
Fetching https://github.com/nordicsemi/IOS-Common-Libraries
Fetching https://github.com/weichsel/ZIPFoundation.git
[1/1576] Fetching swiftcbor
[1483/9207] Fetching swiftcbor, zipfoundation
[1484/11287] Fetching swiftcbor, zipfoundation, ios-common-libraries
[1807/16372] Fetching swiftcbor, zipfoundation, ios-common-libraries, ios-ble-library
Fetched https://github.com/nordicsemi/IOS-BLE-Library from cache (1.84s)
[5641/11287] Fetching swiftcbor, zipfoundation, ios-common-libraries
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (2.16s)
Fetched https://github.com/nordicsemi/IOS-Common-Libraries from cache (2.16s)
Fetched https://github.com/valpackett/SwiftCBOR.git from cache (2.16s)
Computing version for https://github.com/nordicsemi/IOS-Common-Libraries
Computed https://github.com/nordicsemi/IOS-Common-Libraries at 0.2.6 (2.84s)
Computing version for https://github.com/nordicsemi/IOS-BLE-Library
Computed https://github.com/nordicsemi/IOS-BLE-Library at 0.4.5 (0.67s)
Fetching https://github.com/nordicsemi/IOS-CoreBluetooth-Mock.git
[1/9051] Fetching ios-corebluetooth-mock
Fetched https://github.com/nordicsemi/IOS-CoreBluetooth-Mock.git from cache (1.59s)
Computing version for https://github.com/weichsel/ZIPFoundation.git
Computed https://github.com/weichsel/ZIPFoundation.git at 0.9.20 (2.19s)
Computing version for https://github.com/valpackett/SwiftCBOR.git
Computed https://github.com/valpackett/SwiftCBOR.git at 0.6.0 (0.65s)
Computing version for https://github.com/nordicsemi/IOS-CoreBluetooth-Mock.git
Computed https://github.com/nordicsemi/IOS-CoreBluetooth-Mock.git at 1.1.1 (0.56s)
Creating working copy for https://github.com/valpackett/SwiftCBOR.git
Working copy of https://github.com/valpackett/SwiftCBOR.git resolved at 0.6.0
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at 0.9.20
Creating working copy for https://github.com/nordicsemi/IOS-BLE-Library
Working copy of https://github.com/nordicsemi/IOS-BLE-Library resolved at 0.4.5
Creating working copy for https://github.com/nordicsemi/IOS-CoreBluetooth-Mock.git
Working copy of https://github.com/nordicsemi/IOS-CoreBluetooth-Mock.git resolved at 1.1.1
Creating working copy for https://github.com/nordicsemi/IOS-Common-Libraries
Working copy of https://github.com/nordicsemi/IOS-Common-Libraries resolved at 0.2.6
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/iOSMcuManagerLibrary/Source/PrivacyInfo.xcprivacy
BUILD FAILURE 6.2 macosSpm