Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Xcode 将允许我以 root 身份运行我的应用程序(方案中的“Debug Process As”选项允许您选择“Me”或“root”)。如何以 root 身份通过探查器运行它?
我正在使用 Xcode 4.6.3。
解决方案是以 root 身份运行 Instruments 并附加到进程。
以 root 身份运行 Instruments:sudo /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
sudo /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments