简体   繁体   English

如何确保iPhone应用程序崩溃日志可以被符号化?

[英]How to ensure iphone app crash logs can be symbolocated?

I have a niggling issue in an app I'm developing; 我正在开发的应用程序有一个小问题; it's not in the app store, however I can see the crash logs from the Organizer when I plug in my iPhone. 它不在应用商店中,但是当我插入iPhone时,可以从管理器中看到崩溃日志。

The problem is that the crash logs do not symbolocate. 问题在于崩溃日志没有符号化。 I can see a .dSYM file in my build/Debug-iphoneos directory from the last time I installed the app on my phone, however I can't figure out how to make it work. 从上次在手机上安装应用程序以来,我可以在build/Debug-iphoneos目录中看到一个.dSYM文件,但是我不知道该如何使它工作。

I've consulted this technote , however it doesn't really say what to do, simply that the organizer "must have the .dSYM and application binary that produced the crash report." 我已经查阅了该技术说明 ,但是并没有真正说出要做什么,只是组织者“必须具有生成崩溃报告的.dSYM和应用程序二进制文件”。

How do I make it "have" these things? 我如何使其“拥有”这些东西? They appear to be sitting around on my hard drive, but it doesn't recognize them. 它们似乎正坐在我的硬盘上,但无法识别它们。 Is there a more clear step-by-step process to making this work? 是否有更清晰的分步流程来完成这项工作?

If you Build And Archive every time you're ready to send something out, you'll always have the dSYM file. 如果每次准备发送内容时都进行“ 构建和归档” ,则将始终具有dSYM文件。

If you don't Build And Archive, you can instead right/control-click on your .app file in the Products group in Xcode and choose Reveal In Finder . 如果您不进行构建和存档,则可以右键/按住Control键单击Xco​​de中“ 产品”组中的.app文件,然后选择“ 在Finder中显示” The folder revealed will contain both the .app and the .app.dSYM files. 显示的文件夹将同时包含.app和.app.dSYM文件。 You'll need to copy the .dSYM file somewhere else because it will be replaced on the next build. 您需要将.dSYM文件复制到其他位置,因为它将在下一个版本中替换。

Build And Archive is your better bet, as everything is taken care of for you. Build And Archive是您最好的选择,因为一切都将由您完成。

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

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