Xcode 6 Memory Leaks Instrument doesn't work

我怕爱的太早我们不能终老 提交于 2019-12-03 06:46:14

问题


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?


回答1:


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.




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!