Ad

Reset Screen Capture And Microphone Permission For All Apps Through Terminal In MacOS

I am working on an electron app which has audio and screen recording features.

I have to ask permission for both features before moving to the signup flow.

So while developing, I manually need to go to System Preferences ->Security and Privacy then uncheck both permissions. It takes too much time so I have to do that thing using the terminal.

Ad

Answer

For the Microphone use - tccutil reset Microphone For the Screen Recording use - tccutil reset ScreenCapture

Ad
source: stackoverflow.com
Ad