cfa823bc13730a5edf8a4f890fc87e1acc5998aa
On-device logs proved the camera is being blocked by device state, not the app: every retry showed window=true app=active scene=foregroundActive yet reason-1 (videoDeviceNotAvailableInBackground) persisted for 6s — the signature of iPhone Mirroring / a locked tethered device, where iOS disables the camera (the recurring com.apple.PointerUI log is the Mac pointer driving the phone). Rather than sit on a black screen after retries are exhausted, report a new .couldNotStart state explaining the likely cause (locked / mirrored) with a "Try Again" button that rebuilds the capture session from scratch (via .id(retryToken)). App-side capture code is correct; this is a graceful fallback for an environment that withholds the camera. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Description
No description provided
2 MiB
Languages
Swift
100%