xcode 我应该在 Google Analytics 中使用“Strip Debug Symbols during Copy”和“Strip Linked Produts”吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15125816/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:52:25  来源:igfitidea点击:

Should I use 'Strip Debug Symbols During Copy' and 'Strip Linked Produts' with Google Analytics?

iosxcodedebugginggoogle-analyticstestflight

提问by Dmitry

I have used TestFlight for remote crash reporting. Now I'm using Google Analytics for that.

我已经使用 TestFlight 进行远程崩溃报告。现在我为此使用了 Google Analytics。

TestFlight recommends 'Strip Debug Symbols During Copy' and 'Strip Linked Produts' to be disabled. Google Analytics - no. Should I remove them after I have changed TestFlight to Google Analytics?

TestFlight 建议禁用“复制期间剥离调试符号”和“剥离链接产品”。谷歌分析 - 没有。将 TestFlight 更改为 Google Analytics 后是否应该删除它们?

enter image description here

在此处输入图片说明

回答by Kerni

This depends on how the crash reports are being symbolicated:

这取决于崩溃报告的符号化方式:

  1. If you can upload a dSYM to get symbolicated crash reports, you should stripthe debug symbols. This has the benefit of getting line numbers and sometimes up to 50% smaller application binaries.

  2. If you can NOTupload a dSYM for symbolication, and can't/don't want to download the crash reports and symbolicate them on your own Mac, you should not stripthe symbols to get at least something. Symbolication on your Mac will only work if you archive the dSYM of those builds and you can download crash reports in standard format.

  1. 如果您可以上传 dSYM 以获得符号化的崩溃报告,您应该去除调试符号。这样做的好处是可以获得行号,有时可以将应用程序二进制文件缩小 50%。

  2. 如果您不能上传用于符号化的 dSYM,并且不能/不想下载崩溃报告并在您自己的 Mac对其进行符号化,那么您不应该剥离符号以获得至少一些东西。仅当您存档这些构建的 dSYM 并且您可以下载标准格式的崩溃报告时,Mac 上的符号化才会起作用。