Is there a way to remove the authorization prompt from command-line instances of Instruments (Xcode)?

前端 未结 11 1037
南笙
南笙 2020-12-02 07:53

I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in.

With 4.2, this worked well en

11条回答
  •  不知归路
    2020-12-02 08:38

    Adding to Alexander's answer, I found that for Mavericks, because of the way authorizations are handled (source), you should do this:

    sudo security authorizationdb write system.privilege.taskport allow

    I am running zucchini functional tests through a Jenkins job in a VMWare VM, and the slave couldn't launch properly the simulator and would hang on the splash screen, probably because of incorrect authorisations. This helped me solve this issue, hope it helps others.

提交回复
热议问题