尝试获取 iOS .crash 文件的符号 [英] Trying to get symbols for an iOS .crash file

查看:25
本文介绍了尝试获取 iOS .crash 文件的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对如何从 xcode 中获取 .crash 文件的符号感到困惑.

I'm stumped on how to get symbols for a .crash file out of xcode.

我有 .crash 文件、.app 文件、.ipa 文件和 .dSYM 文件.我将崩溃日志拖到 xcode 管理器中,我看到崩溃日志带有系统调用的符号,但我的应用程序没有符号.

I have the .crash file, the .app file, the .ipa file and the .dSYM file. I drag the crash log into the xcode organizer and I see the crash log with symbols for system calls, but no symbols for my app.

.app/.ipa 是由我们的构建机器构建的,所以它没有通过 xcode 存档.

The .app/.ipa was built by our build machine, so it was not archived via xcode.

我尝试将所有三个文件(嗯,两个实际上是目录,但在 Mac 上看起来像文件)放在同一个文件夹中,但什么也没有.我尝试在该目录中从命令行运行symbolicatecrash,但出现此错误:

I tried placing all three files (well, two are actually directories but look like files to the Mac) in the same folder and nothing. I tried running symbolicatecrash from the command line while in that directory and I get this error:

Error: "DEVELOPER_DIR" is not defined at /Applications/Xcode.app/[snip]Resources/symbolicatecrash line 53.

我尝试将 DEVELOPER_DIR 设置为/Applications/Xcode.app 并且它变得更进一步,但现在我看到了一系列错误:

I tried setting DEVELOPER_DIR to /Applications/Xcode.app and it gets further, but now I see a slew of errors that read:

sh: /Applications/Xcode.app/usr/bin/xcrun: No such file or directory

我被难住了.你会认为这会更容易,因为所有 4 个需要的文件都在同一个目录中.

I'm stumped. You'd think this would be easier given all 4 needed files are in same directory.

我正在运行 xcode 4.4,但昨晚在 4.3 上遇到了同样的问题.我希望升级会有所帮助.

I am running xcode 4.4, but was experiencing the same issues last night with 4.3. I was hope upgrading would help.

推荐答案

确保设置正确的 DEVELOPER_DIR:

Make sure you set the right DEVELOPER_DIR:

export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"

Xcode 是用大写的 X 编写的.在 Mountain Lion (10.8) 上测试过.

Xcode is written with capital X. Tested on Mountain Lion (10.8).

这篇关于尝试获取 iOS .crash 文件的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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