简体   繁体   中英

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.

Edit01:

See IPHONE: Analyzing leaks with instruments for an example of how to view source in Instruments.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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