Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?
    primarykey
    data
    text
    <p>I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. </p> <p>With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an authorized user to 'analyze other processes'. No user is ever actually authenticated, even if the correct credentials are granted. I get the following error:</p> <pre><code>Failed to authorize rights (0x20) with status: -60007. 2012-02-27 19:30:37.232 instruments[54151:1c03] Failed to connect to local pid watcher service: (os/kern) failure </code></pre> <p>Even with the authentication failure, the Automation plug-in executes, however this requires my script to have a physical babysitter enter credentials, which in many ways defeats the purpose of these command-line runs. Is it possible to add the user details as arguments? Or is there some other way to skip over this prompt without requiring a person at the keys?</p> <p><strong>-- EDIT --</strong></p> <p>This authorization dialog appears when you try to run UIAutomation tests from the GUI for the first time.</p> <p><img src="https://i.stack.imgur.com/Es3Gr.png" alt="enter image description here"></p> <p>Filed a <a href="http://openradar.appspot.com/radar?id=1544403" rel="noreferrer">radar rdar://10945962</a>.</p> <p><strong>-- EDIT --</strong></p> <p>Once the authorization dialog has been answered in the GUI, the prompts stop appearing on the command-line. This kind of work-around doesn't seem valid as an 'answer' though.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload