You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report — fixed in #8 (now on main).
Root cause: the iOS Simulator's capture stack has no path to Mac cameras. iOS 26.5 and iOS 27 simulators list zero devices — not even the Mac's built-in camera — so a CMIO virtual camera can never reach a simulator app, regardless of Device Hub.
Fix: a small library is loaded into your app in the Simulator only; your code doesn't change.
Build/run the SimulatorCamera Mac app from main and pick a source (it feeds a test pattern as soon as it's open).
Run on the Simulator: AVCaptureDevice.default(for: .video) returns "SimulatorCamera"; frames reach AVCaptureVideoDataOutput and AVCaptureVideoPreviewLayer, QR codes reach AVCaptureMetadataOutput, and AVCapturePhotoOutput returns JPEGs.
Tested on iOS 27.0 and 26.5 simulators. For CI there's also simcamctl feed --qr "TEXT" | --image PATH | --pattern. If your app uses another part of AVFoundation (e.g. movie file output or non-QR barcodes), let me know which and I'll add it.
@dautovri thank you for your fix. After I pulled your changes, still needed some work with Claude to make it work in my environment #10
I'm using Dotnet MAUI technology with C# on my project, and those changes only worked for me
Activity
Merge #8: simulator apps get camera frames via an injected library (f…
dautovri commentedon Oct 15, 2026
Thanks for the report — fixed in #8 (now on
main).Root cause: the iOS Simulator's capture stack has no path to Mac cameras. iOS 26.5 and iOS 27 simulators list zero devices — not even the Mac's built-in camera — so a CMIO virtual camera can never reach a simulator app, regardless of Device Hub.
Fix: a small library is loaded into your app in the Simulator only; your code doesn't change.
mainand pick a source (it feeds a test pattern as soon as it's open).DYLD_INSERT_LIBRARIES=/Applications/SimulatorCamera.app/Contents/Resources/libSimCamInject.dylib(or
SIMCTL_CHILD_DYLD_INSERT_LIBRARIES=<that path> xcrun simctl launch booted <bundle id>).AVCaptureDevice.default(for: .video)returns "SimulatorCamera"; frames reachAVCaptureVideoDataOutputandAVCaptureVideoPreviewLayer, QR codes reachAVCaptureMetadataOutput, andAVCapturePhotoOutputreturns JPEGs.Tested on iOS 27.0 and 26.5 simulators. For CI there's also
simcamctl feed --qr "TEXT" | --image PATH | --pattern. If your app uses another part of AVFoundation (e.g. movie file output or non-QR barcodes), let me know which and I'll add it.hflexgrig commentedon Oct 17, 2026
@dautovri thank you for your fix. After I pulled your changes, still needed some work with Claude to make it work in my environment #10
I'm using Dotnet MAUI technology with C# on my project, and those changes only worked for me
https://drive.google.com/file/d/1FutGknlIFLCakO5FsAmv1zUT7TVRqy2I/view?usp=sharing
Simulator apps get frames via an injected library (fixes dautovri#7)