Search code examples
xcode4.2ios-simulatorxcode-instrumentsmemory-leak-detector

XCode Instruments Warning - "Insufficient task_for_pid privileges (LeakAgent)"


While running Instruments I get the warnning "Insufficient task_for_pid privileges (LeakAgent)", after that Instruments doesn't show the time chart for Leaks

can anyone point me in the right direction to solve this issue?

I'm building for iOS 3.0 on iOS simulator 5.0, using Base SDK 5.1 without any code signing, on Xcode 4.2

My app is not trying to access any authorization service of function AFAIK, only reading some information from the application bundle and parsing it into Graphics elements using the library Cocos2d-X

Any help is appreciated


Solution

  • I think LeakAgent is the process Instruments uses for periodically checking for leaks.

    When I started Instruments the first time, it asked me for my administrator password. Did it ask you for that?

    If not, you could try just restarting your computer, or deleting the Instruments preferences plist? ~Library/Preferences/com.apple.Instruments3.plist (just guessing it may then re-prompt for admin permissions?)