为什么Crashlytics每次都要求丢失DSYM文件? [英] Why Crashlytics is asking for missing DSYM file every time?

查看:122
本文介绍了为什么Crashlytics每次都要求丢失DSYM文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用了Crashlytics,一切正常。甚至Crashlytics也运作良好。


但是问题是,每当我为应用程序
创建新建版本 显示缺少新上传的DSYM文件。


对此有什么解决方案吗?



在fabric文档中,我发现了这个。



有人可以向我解释如何解决此问题吗?



解决方案

TL; DR


每次添加一行代码后重新编译项目时,dSYM都会发生变化,因为代码行的地址二进制文件是不一样的。


您可以查看


这会将您带到xcarchive内部,您可以在其中看到应用程序的dSYM



将其上传到crashlytics应该可以解决您的问题


I am using Crashlytics in my app everything working fine. even Crashlytics is also working good.

But the problem is that whenever I am creating a new build for our app its again showing missing DSYM File upload new.

Is there any solution for this?

In fabric Document, I found this. but I did not understand this.

can anyone explain to me how to resolve this issue?

https://docs.fabric.io/apple/crashlytics/advanced-setup.html

解决方案

TL;DR

Everytime you recompile your project after adding a line of code, the dSYM changes because the address of your lines of code in the resulting binary is not the same.

You can look at Fabric docs about uploading dsym to automatically upload your dSYM by adding a build phase or use the Fabric pod instead of just Crashlytics which apparently adds a build phase automatically like @ekscrypto said.

If you still want to do this manually, open your xcarchive where you can find your dSYMs and upload them to crashlytics

More details

dSYM is short for debug SYMbols. This helps crashlytics resolve the crash logs it receives and helps display detailed information about the crashes/bugs that can occur.

When you archive your app, you're left with *.xcarchive "file" which really is a folder that you can browse. Inside this xcarchive, you should have a dSYM folder where your dSYMs are.

To view it, first open organizer window in XCode (Window > Organizer or cmd+shift+6), right click on the last archive and click "Show in Finder". On the Finder window that opens, right click the last xcarchive for your app and click on show contents (sorry the picture is in french)

This takes you inside your xcarchive where you can see the dSYMs for your app

Uploading this to crashlytics should solve your issue

这篇关于为什么Crashlytics每次都要求丢失DSYM文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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