无法符号化来自 MonoTouch 程序的崩溃日志 [英] unable to symbolicate crash log from a MonoTouch program

查看:21
本文介绍了无法符号化来自 MonoTouch 程序的崩溃日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MonoTouch 应用程序,我在调试中构建并上传到设备.我在调试器中运行了该应用程序,并且该应用程序在没有调试器捕获任何内容的情况下死亡.我有一个 .crash 日志.我跑了:

I have a MonoTouch app that I built in debug and uploaded to the device. I ran the app in the debugger and the app died without the debugger catching anything. I have a .crash log for it. I ran:

symbolicatecrash myapp.crash myapp.dSYM

symbolicatecrash myapp.crash myapp.dSYM

它得到了苹果的东西,比如 CFRunLoopRunInMode 和 UIApplication 的符号信息,但没有得到我程序中的任何东西.

It got symbol information for Apple stuff like CFRunLoopRunInMode and UIApplication, but not for anything in my program.

是否有不同的方式来表示 MonoTouch 崩溃日志?

Is there a different way I need to symbolicate MonoTouch crash logs?

推荐答案

我们遇到了同样的问题,我们创建了一个解决方案...

We had this same problem and we created a work around...

当我们使用 -v 参数(详细)运行symbolicatecrash 时,我们看到它抱怨dSYM 包中没有二进制文件.因此,我们手动将应用程序包中的二进制文件复制到 dSYM 包中,并且成功了.类似于 [MyProject].app/[MyProject] 到 [MyProject].app.dSYM/[MyProject].

When we ran symbolicatecrash with the -v parameter (verbose) we saw it was complaining about not having a binary file inside the dSYM package. So we manually copied the binary file from within the app package into the dSYM package and that worked. Something like [MyProject].app/[MyProject] to [MyProject].app.dSYM/[MyProject].

然后我们将其创建为自定义命令以在构建后运行:

We then created this as a Custom Command to run After Build:

cp ${TargetDir}/${ProjectName}.app/[MyProject] ${TargetDir}/${ProjectName}.app.dSYM/${ProjectName}

请注意 [MyProject] 部分,因为出于某种原因,在应用程序包中创建的二进制文件与我们的项目名称不同.

现在所有从终端和 Xcode 组织器中构建的符号都很好.我希望有一种更少的创可贴方式,但我们正处于时间紧要关头,这奏效了.

Now all builds symbolicate fine from terminal and within Xcode organizer. I hope there's a less band-aid way, but we were in a time crunch and this worked.

这篇关于无法符号化来自 MonoTouch 程序的崩溃日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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