xcode 将 dSYM 上传到 crashlytics 的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29294523/
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
issue with uploading dSYM to crashlytics
提问by BaSha
To upload dSYM to crashlytics, I have following setup but not able to get dSYM uploaded.
要将 dSYM 上传到 crashlytics,我有以下设置但无法上传 dSYM。
In my target -> build phases -> Run Script
在我的目标 -> 构建阶段 -> 运行脚本
./Fabric.framework/run KEY SECRET
echo "working"
./Crashlytics.framework/run KEY SECRET
In Report navigator
在报告导航器中
2015-03-27 11:45:32.868 run[12108:507] Fabric.framework/run 1.3.13
working
2015-03-27 11:45:36.000 run[12109:507] Crashlytics.framework/run 1.3.13
In my app fabric.io dashboard
在我的应用程序 fabric.io 仪表板中
Missing dSYM
缺少 dSYM
What i'm missing?
我缺少什么?
回答by xaphod
If you have bitcode on because you want app-thinning or a TVOS or WatchOS app, then the dSYMs you create when you generate the xcarchive are NOT the dSYMs required. This is because apple re-compilesfrom the bitcode. To get the real dSYMs, go to itunesconnect, open up the specific (processed) build, and hit the "Download dSYMs" link. Apparently fastlane can automate this process (I have not tried it): https://krausefx.com/blog/download-dsym-symbolication-files-from-itunes-connect-for-bitcode-ios-apps
如果您因为想要应用精简或 TVOS 或 WatchOS 应用而启用 bitcode,那么您在生成 xcarchive 时创建的 dSYM 不是所需的 dSYM。这是因为苹果从位码重新编译。要获得真正的 dSYM,请转到 itunesconnect,打开特定(已处理的)构建,然后点击“下载 dSYM”链接。显然 fastlane 可以自动化这个过程(我没有尝试过):https: //krausefx.com/blog/download-dsym-symbolication-files-from-itunes-connect-for-bitcode-ios-apps
回答by swapnilagarwal
AFAIK, You install the fabric software on your mac, on which you are making your build or archive, as soon as you make an archive, it automatically asks for your permission and uploads the dsym file.
AFAIK,您在 mac 上安装结构软件,在其上进行构建或存档,一旦创建存档,它就会自动请求您的许可并上传 dsym 文件。
Also see Fabric Integration Troubleshooting, see 4 point under TroubleShooting
另请参阅面料集成故障排除,请参阅下4点的故障排除
It's possible, but rare, that we are missing a dSYM to symbolicate any crash reports. There will be an alert on your dashboard if this is the case. Click through to upload the missing dSYM. Keep in mind that exceptions are not guaranteed to crash. The full code path, including code in system libraries, matters here. If you aren't seeing the dSYM alert, you can go to your app's settings page, and append “/mappings” to the URL to reach it, e.g. https://fabric.io/settings/apps//mappings
有可能,但很少见,我们缺少一个 dSYM 来象征任何崩溃报告。如果是这种情况,您的仪表板上会发出警报。单击以上传丢失的 dSYM。请记住,不保证异常会崩溃。完整的代码路径,包括系统库中的代码,在这里很重要。如果您没有看到 dSYM 警报,您可以转到您应用的设置页面,并将“/mappings”附加到 URL 以访问它,例如https://fabric.io/settings/apps//mappings
回答by Paulo Coutinho
I have created a tool to upload the dSym files:
我创建了一个工具来上传 dSym 文件:
https://github.com/prsolucoes/fabric-upload-dsym
https://github.com/prsolucoes/fabric-upload-dsym
This tool is open source and made with golang. It can simplify the upload process without any other tool.
这个工具是开源的,是用 golang 制作的。它可以在没有任何其他工具的情况下简化上传过程。
Thanks.
谢谢。
回答by Lane Rettig
I have everything in place--double, triple checked--and I'm having the same problem now. The dSYM always fails to automatically upload. I think Apple changed something about how apps with bitcode are processed so that UUIDs are changing and causing problems with dSYM files. There's more information here, and I posted a workaround here: https://stackoverflow.com/a/35374388/2397068.
我已经准备好了一切——双重、三重检查——现在我遇到了同样的问题。dSYM 总是无法自动上传。我认为 Apple 改变了有关如何处理带有位码的应用程序的一些内容,因此 UUID 会发生变化并导致 dSYM 文件出现问题。还有更多的信息在这里,我在这里发表解决方法:https://stackoverflow.com/a/35374388/2397068。