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

When working with tools, I get the warning "Insufficient rights to task_for_pid (LeakAgent)", after which the "Tools" do not show a timeline for leaks

Can someone point me in the right direction to solve this problem?

I am creating iOS 3.0 on iOS simulator 5.0 using Base SDK 5.1 without any code signing, on Xcode 4.2

My application does not try to access any AFAIK function authorization service, only reading some information from the application package and analyzing it in graphic elements using the Cocos2d-X library

Any help is appreciated

+4
source share
3 answers

I think LeakAgent is a process that uses Tools to periodically check for leaks.

When I first started Tools, he asked me for an administrator password. He asked you about this?

If not, can you just restart your computer or delete the β€œTools” settings? ~Library/Preferences/com.apple.Instruments3.plist (just guessing that he can re-request administrator permissions?)

+1
source

@DouglasHeriot answer didn’t help me. So I just started Instrumets through sudo from the terminal: sudo /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments .
Maybe this will help someone.

+1
source

I also ran into the same problem. It took me almost 2 days to solve the problem. Finally got a solution. Make sure your profile schema is in DEBUG mode instead of RELEASE. This will solve the problem.

0
source

All Articles