简体   繁体   English

为什么主泄漏在我的iPhone应用程序中?

[英]Why is main leaking in my iPhone app?

See the screenshot below, this is the only leak the Leaks Instrument finds in my app. 请参阅下面的屏幕截图,这是泄漏仪器在我的应用程序中发现的唯一泄漏。 Seems odd that main is leaking since it's out-of-the-box. 似乎很奇怪,因为它是开箱即用的,所以它正在泄漏。 Is this common? 这很常见吗?

主目录

调用堆栈的顶部

调用堆栈的底部

This usually indicates that the leak is occurring somewhere before the app delegate loads. 这通常表明泄漏是在应用程序委托加载之前发生的。 Check any added resources like compiled libraries. 检查任何已添加的资源,例如编译的库。

Drag this code source or your app delegate source into Instruments and it might show you the call stack so you can track it down. 将此代码源或您的应用程序委托源拖到Instruments中,它可能会显示调用堆栈,以便您进行跟踪。

Edit01: 编辑01:

See IPHONE: Analyzing leaks with instruments for an example of how to view source in Instruments. 有关如何在仪器中查看源的示例,请参见IPHONE:使用仪器分析泄漏

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM