26.5.1 does not ask my notarized app for mic permission

My app runs as expected when debugging, trigging the MacOS to ask the user for permission to use the microphone.

The notarized version of the app does not have the MacOS asking for user permission but the app gets the message 'User rejected permission'.

I'm seeing this after upgrading to 26.5.1 and so is one of my users.

What changed in getting microphone permission?

Answered by DTS Engineer in 894607022

The majority of problems like this are caused by the hardened runtime. The notary service requires that you enable the hardened runtime and the hardened runtime prevents accidental access to certain resources, like the microphone. Rather, you have to tell macOS that your app expects to use those resources. You do this via the various resource access entitlements. So, in your specific case, make sure that your app is signed with the com.apple.security.device.audio-input entitlement. You can check that using codesign:

% codesign -d --entitlements - /path/to/your.app

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

The majority of problems like this are caused by the hardened runtime. The notary service requires that you enable the hardened runtime and the hardened runtime prevents accidental access to certain resources, like the microphone. Rather, you have to tell macOS that your app expects to use those resources. You do this via the various resource access entitlements. So, in your specific case, make sure that your app is signed with the com.apple.security.device.audio-input entitlement. You can check that using codesign:

% codesign -d --entitlements - /path/to/your.app

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

26.5.1 does not ask my notarized app for mic permission
 
 
Q