Remove the authorization prompt from command line instruments (Under mavericks)

淺唱寂寞╮ 提交于 2020-01-02 04:29:43

问题


Similar to this question, except that the authorization database changed formats for mavericks and the old solution doesn't work: Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

The specific use-case being to get ios-driver working to run automated tests: http://ios-driver.github.io/ios-driver/faq.html

The specific prompt is "Instruments wants permission to analyze other processes"

I've tried

sudo security authorizationdb write system.privilege.taskport allow

and

sudo security authorizationdb write system.privilege.taskport is-developer

(with the user being in the _developers group) but the prompt is still coming up every time :(

Also tried

sudo security authorizationdb write com.apple.dt.instruments.process.analysis allow

because that looked related (thinking maybe the name of the required permission changed as well as the way to set it), but still getting the prompt

来源:https://stackoverflow.com/questions/21285793/remove-the-authorization-prompt-from-command-line-instruments-under-mavericks

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