Skip to content

simcamctl: request camera access, fix feed --camera, drop bundled-CLI claim - #14

Merged
dautovri merged 1 commit into
mainfrom
fix/simcamctl-camera-access
Oct 21, 2026
Merged

dautovri merged 1 commit into
mainfrom
fix/simcamctl-camera-access

Conversation

@dautovri

Copy link
Copy Markdown
Owner

What

  • simcamctl feed --camera wrote 0 frames and printed no error. The hardened-runtime binary had no camera entitlement and never requested TCC consent, so capture started silently and delivered nothing.
    • Add com.apple.security.device.camera (simcamctl/simcamctl.entitlements) and an embedded NSCameraUsageDescription.
    • Request camera access up front; if denied, exit 3 with a message pointing to System Settings → Privacy & Security → Camera (or the app's "Mac Camera" source).
  • Correct the claim that simcamctl ships inside SimulatorCamera.app. It is not in the v1.1.0 release, so the README symlink instructions failed and the Homebrew cask's binary stanza pointed at a missing file. README now says to build from source; the cask line is removed.

Tested

  • Build succeeds; the 20 contract tests pass (CI-style, unsigned).
  • Built binary carries the camera entitlement.
  • simcamctl feed --camera --seconds 5 wrote 101 frames.
  • Earlier on v1.1.0: test pattern, QR (decoded from simulator screenshot), image, and the Mac app's Mac Camera source all deliver frames on iOS 26.5; test pattern verified on iOS 27.0.

Not tested

  • The camera-denied error path (access was already granted on the test machine).
  • brew install --cask simulatorcamera after the cask change.

🤖 Generated with Claude Code

…CLI claim

feed --camera produced 0 frames with no error: the hardened-runtime binary lacked the camera entitlement and never requested TCC consent. Add the entitlement and an embedded NSCameraUsageDescription, request access up front, and exit 3 with a clear message when denied. The README and Homebrew cask claimed simcamctl ships inside SimulatorCamera.app; it does not, so correct both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dautovri
dautovri merged commit e4e92f7 into main Oct 21, 2026
2 checks passed
@dautovri
dautovri deleted the fix/simcamctl-camera-access branch October 21, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant