Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 Memory Leaks Instrument doesn't work

I am trying to use Instruments to find leaks within my app. I do it in the same way as I did before updating to Xcode 6.x. Since updating, it won't take any snapshots: the leaks instrument status displays "Analyzing process" and will never change.

Both Xcode 6.0.1 and 6.1 GM 2 exhibit this problem.

Any workaround?

like image 861
spanfish Avatar asked Sep 22 '14 07:09

spanfish


People also ask

How do I use memory leak instruments in Xcode?

We open the Xcode leaks instrument first and press the record button. When the app automatically launches, we press on the navigate button that presents our leaking view controller. We simply pop it using navigation item's back button. Finally, we observe the effect in the leaks instrument and memory graph.

How do I debug memory leak in Xcode?

Quick start on shooting your memory issueOpen your app and play the feature where has a potential memory leak. 3. Click the Debug Memory Graph button on Xcode, Then the memory graph will show up. The purple icons show the memory leaks.


1 Answers

Seems like is a bug on iOS8 and not on Xcode. I have Xcode6.1 and the memory leak profiler seems to work on iOS7.

As a workaround until Apple fix this (already reported the bug and was marked as duplicate) you can profile your memory leaks using a simulator.

like image 163
LarryPel Avatar answered Sep 23 '22 23:09

LarryPel