我部分解决了这个问题。我从命令行运行仪器并在 GUI 中有授权提示(每个会话一次)+ 在控制台中(每次我运行仪器):
Instruments: Instruments wants permission to analyze other processes.
Type your password to allow this.
Name ([my-username]):
Password:
Failed to authorize rights (0x20) with status: -60007.
2012-02-28 10:04:19.607 instruments[60398:1203] Failed to connect to
local pid watcher service: (os/kern) failure
我比较了升级到 xCode 4.3 前后的 /etc/authorization 文件。苹果更换了两把钥匙:
<key>com.apple.dt.instruments.process.analysis</key>
<key>com.apple.dt.instruments.process.kill</key>
和
<key>com.apple.instruments.process.analysis</key>
我编辑了 /etc/authorization,在新的下面添加了缺少的键,控制台的问题得到了解决。不幸的是 GUI 提示仍然存在。
缺少键:
<key>com.apple.dt.instruments.process.analysis</key>
<dict>
<key>allow-root</key>
<true/>
<key>class</key>
<string>user</string>
<key>comment</key>
<string>Rights for Instruments</string>
<key>group</key>
<string>admin</string>
<key>shared</key>
<true/>
<key>timeout</key>
<integer>36000</integer>
</dict>
<key>com.apple.dt.instruments.process.kill</key>
<dict>
<key>allow-root</key>
<true/>
<key>class</key>
<string>user</string>
<key>comment</key>
<string>Rights for Instruments</string>
<key>group</key>
<string>admin</string>
<key>shared</key>
<true/>
<key>timeout</key>
<integer>5</integer>
</dict>
希望这会为您解决整个问题