Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Instruments unable to take snapshots of leaks when running on device

Recently I have not been able to test for leaks with Instruments when running apps on a device. Instruments will attempt to take a snapshot but the status will freeze at "Analyzing Process". At first I thought it was just taking it's time but I have waited over 20 minutes for it and had no luck. It does still work fine on the simulator though.

So far I have tried: - Using other devices with different ios versions - Restarting all devices - Updating Xcode to latest version - Running a number of different apps - Turning automatic snapshots off and trying manually

Unfortunately none of the above made any difference and I'm running out of ideas aside from reinstalling Instruments if possible.

Does anyone have any idea of what could be causing this?

like image 939
David Avatar asked Aug 16 '12 19:08

David


2 Answers

I also have the same issue and I have fixed it by adding a Developer Profile of my project.

You have to add a Developer Profile of your project in Organizer and set Build Setting -> Code Signing to Developer Profile. After that you can see the Leaks in Instrument.

like image 156
rizzz86 Avatar answered Oct 24 '22 18:10

rizzz86


Also had this problem after a recent XCode update, and my scheme for Profiling was set to use the Build Configuration of "Release" when it needed to be "Debug" - which allowed the analysis to complete.

like image 30
SkeletonJelly Avatar answered Oct 24 '22 19:10

SkeletonJelly