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?
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.
This issue seems to occur only on my iOS 8.x devices.
I also submitted a bug report but in the meantime I have it working with the following configuration :
- Xcode 6.1
- iPhone 4 with iOS 6.1.3
This is still a workaround though as you can hardly debug any iOS 8 related feature and analyzing leaks on an old device like that is a real pain.
来源:https://stackoverflow.com/questions/25968301/xcode-6-memory-leaks-instrument-doesnt-work