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

前端 未结 11 1034
南笙
南笙 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:52

    Okay I think I got it working.

    Here are some more details about how to remove xcode command line authorization prompt

    What I did was the following:

    • Mark jenkins user as admin (unfortunately it seems that there is no other way atm)
    • Go to /etc/authorization
    • search for key system.privilige.taskport
    • change value of allow-root to true

      system.privilege.taskport
      
          allow-root
           // change to -> 
          class
          user
          comment
          Used by task_for_pid(...).
          ...
      
      

    Now I am being able to use jenkins to run my UIAutomation-Tests via Command Line Script

提交回复
热议问题