简体   繁体   English

将“复制期间的条调试符号”设置为“否”后,经常会出现内存警告

[英]Often memory warning after setting “Strip Debug Symbols During Copy” to NO

I have set "Strip Debug Symbols During Copy" build parameter to NO. 我已将“复制期间的条带调试符号”构建参数设置为NO。 It has increased the size of my binary app by 0.5 MB. 它使我的二进制应用程序的大小增加了0.5 MB。 Surprisingly, I have started seeing memory warnings in my application very often. 令人惊讶的是,我开始经常在应用程序中看到内存警告。 Can this be a reason for this? 这可能是原因吗?

I can set it back to YES in that case. 在这种情况下,我可以将其设置回“是”。

The debug symbols are not the problem, that is quite certain. 调试符号不是问题,这是可以肯定的。

For finding out the root cause of your memory issues, use the following: 为了找出导致内存问题的根本原因,请使用以下命令:

  1. Xcode Analyzer - will locate most potential memory leaks already (among other things) without even running your app. Xcode分析器 -无需运行您的应用程序,即可定位大多数潜在的内存泄漏(以及其他)。

  2. Instruments: Leaks Instrument - will locate all remaining leak issues. 仪器:泄漏仪器 -将查找所有剩余的泄漏问题。

You may, in rare circumstances get false positives from both tools. 在极少数情况下,您可能会从这两种工具中获得误报。 But rest assured, from my experience those usually are not false positives but spot on issues of your code/app. 但是请放心,根据我的经验,这些通常不是误报,而是针对您的代码/应用程序的问题。

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

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