“复制期间剥离调试符号"和“剥离链接产品" [英] "Strip Debug Symbols During Copy" and "Strip Linked Product"

查看:33
本文介绍了“复制期间剥离调试符号"和“剥离链接产品"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了很多东西,发现这个配置有两个副作用:

I read a lot of thing and discovery this configs have 2 side effect:

  • 使二进制文件更小
  • 程序显示出更好的调试崩溃

我正在为 iOS 构建程序,所以我希望我的二进制文件尽可能小.这意味着:

I am building program for iOS, so I want my binary to be the smallest possible. This mean:

  • 如果我将 YES 设置为两个配置,我的二进制文件将更小
  • 如果我设置NO,我会得到更好的调试崩溃
  • If I set YES to both config, my binary will be the smaller
  • If I set NO, I will get better debug crash

所以我必须为 AppStore 版本设置 YES,为 Debug 设置 NO?

So I have to set YES for AppStore version and NO for Debug?

推荐答案

dSYM 文件不是调试符号文件".它是在项目的构建设置中启用条带调试符号"设置时生成的.

A dSYM file is nothing a "debug symbols file". It is generated when the "Strip Debug Symbols" setting is enabled in the build settings of your project.

新 iOS 项目调试配置的默认调试信息格式是DWARF with dSYM 文件",但新 OS X 项目的默认调试信息格式只是DWARF".

The default debug info format for the Debug configuration for new iOS projects is "DWARF with dSYM file", but for new OS X projects is just "DWARF".

当然,如果你在调试器下运行,它只会在崩溃点停止,所以你不需要符号化崩溃报告.所以在应用程序开发时设置'DWARF'并设置发布时的DWARF with dSYM".

If you're running under the debugger, of course, it will just stop at the point of the crash, so you don't need to symbolicate a crash report.So set 'DWARF' when application is in development and set 'DWARF with dSYM' at the time of release.

您也应该应用此设置:

这篇关于“复制期间剥离调试符号"和“剥离链接产品"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆