与此问题类似,只是授权数据库更改了特立独行者的格式,而旧解决方案无效:Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?
具体的用例是让ios-driver工作以运行自动化测试:http://ios-driver.github.io/ios-driver/faq.html
具体提示是" Instruments希望获得分析其他流程的权限"
我已经尝试了
sudo security authorizationdb write system.privilege.taskport allow
和
sudo security authorizationdb write system.privilege.taskport is-developer
(用户在_developers组中)但每次都会出现提示:(
也试过
sudo security authorizationdb write com.apple.dt.instruments.process.analysis allow
因为它看起来很相关(想到可能更改了所需权限的名称以及设置它的方式),但仍然得到提示