I am getting the error below after successfully notarizing my app and then I try to install from the DMG and try to launch it, it crashes.
Termination Reason: Namespace TCC, Code 0 This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an com.apple.security.device.audio-input key with a string value explaining to the user how the app uses this data.
Note: I have already added the entitlements to my electron-builder config and and I can see the entitlements in the Info.plist of my .app in the Applications directory.
hardenedRuntime: true,
extendInfo: {
NSMicrophoneUsageDescription: 'Need microphone access for recognizing audio',
'com.apple.security.app-sandbox': true,
'com.apple.security.cs.allow-jit': true,
'com.apple.security.device.audio-input': true,
'com.apple.security.cs.allow-unsigned-executable-memory': true,
'com.apple.security.cs.disable-executable-page-protection': true,
'com.apple.security.cs.disable-library-validation': true,
'com.apple.security.device.microphone': true,
'com.apple.security.network.client': true,
'com.apple.security.files.user-selected.read-write': true,
'com.apple.security.cs.allow-dyld-environment-variables': true,
}