Xcode 6.0.1 不显示内存使用情况

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25948963/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:38:08  来源:igfitidea点击:

Xcode 6.0.1 not displaying memory usage

iosxcodedebuggingios8xcode6

提问by Can Poyrazo?lu

I've upgraded to Xcode 6.0.1 from 5.1 and when I'm running my app, I can't see memory usage in debug navigator:

我已经从 5.1 升级到 Xcode 6.0.1,当我运行我的应用程序时,我在调试导航器中看不到内存使用情况:

enter image description here

在此处输入图片说明

I'm getting memory warnings. Yes, I could profile my app instruments without debugging, but seeing direct memory usage simply while debugging helps me a lot. How can I re-enable this functionality? I've restarted Xcode, rebuilt my project etc but I still can't see memory usage. The problem is present both when debugging on device or on the simulator. When I click the memory tab, I also get this weird "zeroed out" dashboard:

我收到内存警告。是的,我可以在不调试的情况下分析我的应用程序工具,但是在调试时查看直接内存使用情况对我有很大帮助。如何重新启用此功能?我重新启动了 Xcode,重建了我的项目等,但我仍然看不到内存使用情况。在设备上或在模拟器上调试时都存在此问题。当我单击内存选项卡时,我还会看到这个奇怪的“归零”仪表板:

enter image description here

在此处输入图片说明

回答by Fabio

I have resolved disabling Memory Guard diagnostic in the Scheme. From Xcode: Menu Product -> Scheme -> Edit Scheme... -> Diagnostic Tab -> uncheck all Guard options

我已经解决了在 Scheme 中禁用 Memory Guard 诊断的问题。从 Xcode:菜单 Product -> Scheme -> Edit Scheme... -> Diagnostic Tab -> 取消选中所有 Guard 选项

If still doesn't work, try to disable (if enabled) the "Enable Zombie Object" checkbox.

如果仍然不起作用,请尝试禁用(如果启用)“启用僵尸对象”复选框。