Revoke a requestAccessToEntityType: authorization on Mavericks so I can test my app

一笑奈何 提交于 2019-12-25 02:43:04

问题


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:


use the CLI command:

tccutil reset Reminders

(and man tccutil for details)



来源:https://stackoverflow.com/questions/20184219/revoke-a-requestaccesstoentitytype-authorization-on-mavericks-so-i-can-test-my

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!