简体   繁体   English

我是否仍然可以表示剥离其调试符号的分发构建?

[英]Can I still symbolicate a distribution build that stripped its debug symbols?

I have two related questions actually: 我实际上有两个相关的问题:

  1. If I want to be able to symbolicate crash logs from a distribution build (that is, a build I gave to someone to beta test my application - not one that is already in the appstore), should I disable the "Strip Linked Product" and "Strip Debug Symbols During Copy" options for debug or for release ? 如果我希望能够从分发版本中构建崩溃日志(也就是我给某人测试我的应用程序的版本 - 而不是已经在appstore中的版本),我应该禁用"Strip Linked Product""Strip Debug Symbols During Copy"选项用于调试发布 In fact, would it cause any kind of problem is I disable both of them forever (even in my appstore submission)? 事实上,它会导致任何类型的问题是我永远禁用它们(即使在我的appstore提交)?

  2. If I distributed a build to a beta tester, but it had enabled the "Strip Linked Product" and "Strip Debug Symbols During Copy" options, is there still a way to symbolicate their crash logs? 如果我将一个构建版本分发给beta测试人员,但它启用"Strip Linked Product""Strip Debug Symbols During Copy"选项,是否还有一种方法可以表示他们的崩溃日志?

When you create an Archive (Build > Archive), the archive bundle will have a folder called dSYMS that contain dSYM file(s) (debug symbols file) for your application and other linked libraries. 创建存档(Build> Archive)时,存档包将有一个名为dSYMS的文件夹,其中包含应用程序和其他链接库的dSYM文件(调试符号文件)。 This means you can strip debug symbols from your products but keep the dSYM files to symbolicate crash reports. 这意味着您可以从产品中剥离调试符号,但保留dSYM文件以表示崩溃报告。 This post has more information on how to use the atos tool to symbolicate a crash report provided that you have the app binary and dSYM files. 本文提供了有关如何使用atos工具来表示崩溃报告的更多信息,前提是您拥有应用程序二进制文件和dSYM文件。

In general, Debug builds have Strip Debug Symbols During Copy set to NO , and Release builds have it set to YES to reduce the binary size. 通常,Debug构建在复制期间将条带调试符号设置为NO ,而Release构建将其设置为YES以减小二进制大小。

If you have distributed your application through build -> archive, you will have dSYM file associated with it. 如果您通过build - > archive分发了应用程序,那么您将拥有与之关联的dSYM文件。 Now when you get crash report, there is no need to do anything. 现在当你收到崩溃报告时,没有必要做任何事情。 Drag the crash report into Xcode and it will be automatically get added to you Organizer section. 将崩溃报告拖到Xcode中,它将自动添加到您的管理器部分。 If valid archive and dSYM file is available, Xcode will automatically symbolicate the crash log for you. 如果有效的存档和dSYM文件可用,Xcode将自动为您指示崩溃日志。

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

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