Skip to content

Fix microphone permission request silently failing#2

Open
fredchu wants to merge 1 commit intoleftouterjoins:masterfrom
fredchu:fix/add-audio-input-entitlement
Open

Fix microphone permission request silently failing#2
fredchu wants to merge 1 commit intoleftouterjoins:masterfrom
fredchu:fix/add-audio-input-entitlement

Conversation

@fredchu
Copy link

@fredchu fredchu commented Feb 24, 2026

Summary

  • Add com.apple.security.device.audio-input entitlement to VoiceWrite.entitlements
  • Without this entitlement, AVCaptureDevice.requestAccess(for: .audio) silently fails under Hardened Runtime — the system permission dialog never appears
  • The "Request" button in Settings → Permissions had no visible effect because of this

Fixes #1

Root Cause

The app is signed with Hardened Runtime (codesign -o runtime), which blocks hardware access by default. Microphone access requires an explicit com.apple.security.device.audio-input entitlement. NSMicrophoneUsageDescription in Info.plist alone is not sufficient.

Test plan

  • Build with make app
  • Launch app fresh (or reset microphone permission via tccutil reset Microphone com.voicewrite.app)
  • Click "Request" in Settings → Permissions → Microphone
  • Verify system permission dialog appears

🤖 Generated with Claude Code

Add com.apple.security.device.audio-input entitlement required for
microphone access under Hardened Runtime. Without this, the system
permission dialog never appears when clicking "Request" in Settings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

[Bug]: Doesn't prompt for microphone access on macOS 26.3 (b) Beta

1 participant