Xcode 6内存泄漏仪器不起作用

问题描述:

我正在尝试使用Instruments查找我的应用程序中的漏洞.我这样做的方式与更新到Xcode 6.x之前的方式相同.自更新以来,它不会拍摄任何快照:泄漏仪器状态显示为分析过程",并且永远不会更改.

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.

Xcode 6.0.1和6.1 GM 2都出现此问题.

Both Xcode 6.0.1 and 6.1 GM 2 exhibit this problem.

有什么解决方法吗?

似乎是iOS8(而非Xcode)上的错误.我有Xcode6.1,内存泄漏分析器似乎可以在iOS7上运行.

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.

作为一种变通办法,直到Apple修复此问题(已报告该错误并将其标记为重复),您可以使用模拟器来分析内存泄漏.

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.