React Native Firebase Crashlytics 反混淆 [英] React Native Firebase Crashlytics Deobfuscation
问题描述
我已经使用 react-native-firebase 集成了 crashlytics,并且我已经上传了所有必需的 dSYM进入控制台.因此,崩溃会显示出来,但它们被混淆了,无法以这种格式进行追踪.
I have integrated crashlytics using react-native-firebase, and i have uploaded all the required dSYMs into the console. So, the crashes are shown, but they are obfuscated and they can't be tracked down in this format.
Fatal Exception: RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 't.code')
This error is located at:
in O
in B
in p
in RCTView
in Portal.Host
in c
in h
in s
in v
in u
in RCTView
in RCTView
in o
0 CoreFoundation
我试图以某种方式去混淆它们没有成功.有什么想法吗?
I had no success trying to de-obfuscate them somehow. Any ideas?
推荐答案
这是一个 Javascript 异常,您可能已经复制了原始文本.如果您签入格式化的文本,它将如下所示:
This is a Javascript exception, and you have probably copied the raw text. If you check in the formatted text, it will look like something like this:
Unhandled JS Exception: TypeError: undefined is not an object (evaluating 't.code') This error is located at: in O in B in p in RCTView in Portal.Host ..., stack: value@1451:1379 value@1451:1558 value@1764:2262 value@1764:1616 Tl@161:77714
此格式匹配 JSC(react-native)堆栈跟踪,您可以使用像 这样的工具stack-beautifier 以人类可读的形式解析它.该工具还有一个很好的文档,说明了达到人类可读格式所需的过程.简而言之,您需要:
This format matches the JSC (react-native) stack trace and you can use a tool like stack-beautifier to parse it in a humanly readable form. The tool also has a nice documentation of the process needed to reach a humanly readable format. In short, you will need to:
- 使用来自所需分支的 react-native bundle 查找或重新创建源映射,同样,工具文档中有关如何执行此操作的详细步骤
- 将 JSC 堆栈跟踪提取到一个新的 txt 文件中,在适当的位置添加新行(即第一个在 "...stack:" 之后)
- 使用上述所有输入运行该工具,您应该会得到所需的内容
这篇关于React Native Firebase Crashlytics 反混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!