Xcode - 如何以root身份分析应用程序?

时间:2014-01-27 22:39:44

标签: xcode macos root profiler xcode-scheme

Xcode允许我以root身份运行我的应用程序(方案中的“Debug Process As”选项允许您选择“Me”或“root”)。如何以root身份通过探查器运行它?

我正在使用Xcode 4.6.3。

1 个答案:

答案 0 :(得分:7)

解决方案是以root身份运行Instruments并附加到流程。

以root身份运行Instruments:sudo /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Ins‌​truments