“Strip Debug Symbols During Copy” and “Strip Linked Product”

巧了我就是萌 提交于 2019-12-22 03:55:13

问题


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

  • Make the binary size smaller
  • The program show a better debug crash

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

  • If I set YES to both config, my binary will be the smaller
  • If I set NO, I will get better debug crash

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


回答1:


You are correct, set it to YES for AppStore build and NO for debugging builds. Even when you build you AppStore version, there is dsym file containing all symbols you need to symbolicate your crash logs.




回答2:


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.

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".

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.

You should apply this settings as well:



来源:https://stackoverflow.com/questions/9399728/strip-debug-symbols-during-copy-and-strip-linked-product

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!