Microphone access on Mojave

I just upgraded to Mojave, no every time I recompile I need to approve my app for microphone access. Is there a way to approve it once and for all?

No, I think macOS sees it as a “new” app when you recompile so you have to approve permissions again.

Interestly, if I build with Xcode 9 I don’t get the prompt, but I do if I build with Xcode 10. Not 100% sure that’s the difference yet, but I don’t see the issue on my MacBook Pro, but I do on my Mac Pro. Xcode versions is the main difference between them, the are both on Mojave.