Revoke a requestAccessToEntityType: authorization

2019-09-02 03:36发布

I'm developing a CLI app that requests access to Reminders app on OSX Mavericks. Everything works fine with requesting permission, and detecting if the user has disabled the permission. The problem I have is that I cannot completely revoke the permission from the app in my OS. The app appears in Prefs -> Privacy -> Reminders, and the most I can do is disable the permission, but I want to (again) test if the permission request is fired correctly. Is there any way to completely remove the permission, as in remove the App from Prefs -> Privacy -> Reminders?

1条回答
倾城 Initia
2楼-- · 2019-09-02 03:55

use the CLI command:

tccutil reset Reminders

(and man tccutil for details)

查看更多
登录 后发表回答