在 ios6 上使用 Xcode 5 追踪僵尸
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20109022/
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
Tracking down zombies with Xcode 5 on ios6
提问by Ben Avery
I have a zombie object somewhere in my code when it is run on iOS 6.1 but not in 7.
当它在 iOS 6.1 上运行但不在 7 中时,我的代码中某处有一个僵尸对象。
Unfortunately instruments will not run with zombies it pops up the following warning. "Zombies can only be run on devices with iOS 7 or later".
不幸的是,仪器不会与僵尸一起运行,它会弹出以下警告。“僵尸只能在装有 iOS 7 或更高版本的设备上运行”。
I don't really want to download an older version of Xcode as works internet is painfully slow.
我真的不想下载旧版本的 Xcode,因为工作互联网非常慢。
What are some tips/tricks for hunting down the cause of this zombie as my normal goto approach is unavailable.
由于我的常规 goto 方法不可用,因此有什么提示/技巧可以追查这个僵尸的原因。
Any help would be greatly appreciated.
任何帮助将不胜感激。
回答by rob mayoff
From the menu bar, choose Project > Scheme > Edit Scheme… Click the Run item in the list on the left. Then click the Diagnostics tab on the right. Turn on the “Enable Zombie Objects” checkbox. Run your app from Xcode.
从菜单栏中,选择 Project > Scheme > Edit Scheme... 单击左侧列表中的 Run 项。然后单击右侧的诊断选项卡。打开“启用僵尸对象”复选框。从 Xcode 运行您的应用程序。