撤销Mavericks上的requestAccessToEntityType:授权,以便我可以测试我的应用 [英] Revoke a requestAccessToEntityType: authorization on Mavericks so I can test my app

查看:155
本文介绍了撤销Mavericks上的requestAccessToEntityType:授权,以便我可以测试我的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个CLI应用程序,该应用程序请求访问OSX Mavericks上的Reminders应用程序.通过请求权限,一切正常,并检测用户是否已禁用该权限.我的问题是我无法完全撤消操作系统中应用程序的许可.该应用程序显示在首选项"->隐私"->提醒"中,我能做的就是禁用权限,但是我想(再次)测试权限请求是否被正确触发.有什么方法可以完全删除权限,例如从Prefs->隐私->提醒中删除该应用程序?

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?

推荐答案

使用CLI命令:

tccutil reset Reminders

(有关详细信息,请参见man tccutil

(and man tccutil for details)

这篇关于撤销Mavericks上的requestAccessToEntityType:授权,以便我可以测试我的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆