I recently built an app using Tauri where I was trying to access a user's a contacts list using the native macos apis. My code worked in development but the app would crash when bundled and signed.
To make it work, you need to do two things:
Add necessary attributes to Info.plist placed in the src-tauri directory
Add the correct entitlements to your entitlements.plist file, also placed in the src-tauri directory.
To let Tauri know about the entitlements.plist file, I had to add it under the "entitlements" section of my tauri.config.json file. It looked something like this:
My Info.plist looked like this:
My entitlements.plist looked like this:
This is particular for accessing contact list but I imagine you need to do something similar for webcam, microphone, etc.