Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMediaAccessStatus returns not-determined if permission was set through script #46

Open
has-n opened this issue Jul 22, 2022 · 0 comments

Comments

@has-n
Copy link

has-n commented Jul 22, 2022

I'm setting up CircleCI to run automated tests for my app which uses the microphone. CircleCI runs Mac tests on an image with SIP disabled and injects permissions into the TCC.db. The command is add-permission : source

Using the list-permissions command, I am able to confirm that the app does have the correct permission:

`client service auth_value


com.apple.Terminal kTCCServiceDeveloperTool 0
/usr/sbin/sshd kTCCServiceAppleEvents 2
/usr/sbin/sshd kTCCServiceAppleEvents 2
/usr/libexec/sshd-keygen-wrapper kTCCServiceAppleEvents 2
/usr/libexec/sshd-keygen-wrapper kTCCServiceAppleEvents 2
/usr/libexec/sshd-keygen-wrapper kTCCServiceAccessibility 2
APP.BUNDLE.IDENTIFIER kTCCServiceAll 2 `

When testing for the permission using systemPreferences.getMediaAccessStatus, the result is always not determined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant