本文介绍了为新项目添加了Fabric / Crashlytics但未上传dSYM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用Xcode 7 beta-4创建了一个新的iOS Swift项目,并集成了(现在是的一部分),采用通常的流程。

I've just created a new iOS Swift project, using Xcode 7 beta-4, and have integrated Crashlytics (part of Fabric now) with the usual process.

它集成了所有罚款,我可以模拟崩溃等。

It integrated all fine, and I can simulate crashes etc.

但是当我去Crashlytics时仪表板警告我:

However when I go to the Crashlytics dashboard it warns me that:

我们错过了dSYM处理崩溃,上传到这里!

We're missing a dSYM to process crashes, upload it here!

并且没有任何崩溃出现。

And none of the crashes show up.

点击警告信息(这里提到了链接:
)给我一个列表UUIDs Crashlytics缺少dSYMs。

Clicking the warning message (it's link is mentioned here:http://docs.fabric.io/ios/crashlytics/crashlytics.html#troubleshooting) gives me a list UUIDs Crashlytics is missing dSYMs for.

该页面提供了上传dSYM的选项,我尝试过这个选项(从/ Users / me / Library / Developer / Xcode / DerivedData / MyApp-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx获取) /编译/产品/调试-的iPhoneOS)。但是在这样做之后,这并没有解决问题。

The page gives the option to upload a dSYM, which I have tried doing (getting it from /Users/me/Library/Developer/Xcode/DerivedData/MyApp-xxxxxxxxxxxxxxxxxxxxxxxxxxxx/Build/Products/Debug-iphoneos). However after doing so this does not resolve the issue.

我尝试从CocoaPods获取框架而不是手动添加它们,以防有所作为。它没有。

I've tried getting the frameworks from CocoaPods instead of manually adding them, in case that made a difference. It didn't.

-

所以我唯一想到的可能是Crashlytics不会处理由dSYM产生的Xcode 7 beta?或者有什么根本我忽略了吗?

So my only thought is perhaps Crashlytics doesn't handle dSYMs produced by Xcode 7 beta? Or is there something fundamental I've overlooked?

非常感谢你的帮助!

-

更新:

在与Crashlytics团队多次来回发送电子邮件后,这个特殊问题被他们发现是由一个beta Xcode 7版本所做的更改引起的。对Crashlytics的解决方案被推出,从那时起它就起作用了。

After many back and forth emails with the Crashlytics team, this particular problem was discovered by them to be caused by changes made in one the beta Xcode 7 versions. A fix to Crashlytics was pushed out and since then it worked.

如果您遇到类似问题,我建议您首先确保使用的是Xcode的发布版本,以及最新版本的Crashlytics:)

If you're experiencing similar issues, I suggest first ensuring you're using a release version of Xcode, and also the latest version of Crashlytics :)

推荐答案

转到Build settings并选择Dwarf with DYSM File选项进行调试和发布构建。

Go to Build settings and choose Dwarf with DYSM File option for both debug and release builds.

这篇关于为新项目添加了Fabric / Crashlytics但未上传dSYM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 20:53