iPhone 崩溃日志显示“版本:???" [英] iPhone crash logs say "Version: ???"

查看:19
本文介绍了iPhone 崩溃日志显示“版本:???"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 iPhone 应用程序并为 beta 测试进行临时分发.我的用户正在向我发送这样的崩溃日志:

I'm developing an iPhone app and doing ad-hoc distribution for beta testing. My users are sending me crash logs that say this:

Identifier:      MyAppName
Version:         ??? (???)
Code Type:       ARM (Native)

我不明白如何用真实的版本号替换这些问号.我已经将我的 Info.plist 配置为包含一个 CFBundleVersion 和一个 CFBundleShortVersionString,但这并没有帮助...崩溃日志仍然只包含问号而不是我期望的版本号.

I can't understand how to replace those question marks with a real version number. I've configured my Info.plist to include a CFBundleVersion and a CFBundleShortVersionString, but that didn't help... crash logs still just contain question marks instead of the version number I expect.

如何设置我的版本以便它显示在崩溃日志中?

How do I set my version so it will show up in crash logs?

编辑显然,由于 iPhone CrashReporter 中可能存在错误,因此无法正确设置版本".但是有解决方法吗?在崩溃日志元数据中插入版本号(例如内部版本号或 SCM 修订号)的其他方式?

EDIT Apparently, due to a possible bug in the iPhone CrashReporter, there's no way to set the "Version" properly. But is there a workaround? Some other way to insert a version number (e.g. a build number or SCM revision number) in the crash log metadata?

推荐答案

最简单的方法是保存您分发的所有二进制文件的 UDID,并将它们与故障转储中的 UDID 进行比较.每个构建的 UDID 都不同.

The easiest method is to save the UDIDs of all the binaries you distribute, and compare them to the UDIDs in the crash dumps. UDIDs are different for each build you make.

要检索 UDID:

$ dwarfdump -u /path/to/MyApp.app/MyApp
UUID: 864F3D54-F165-3356-3292-2C9C48E97C55 (armv6) /path/to/MyApp.app/MyApp

并将其与崩溃日志进行比较:

And compare it to the crashlog:

Binary Images:
    0x1000 -    0x5ffff +MyApp armv6  <864F3D54F165335632922C9C48E97C55> /var/mobile/Applications/5FB3933B-348E-42D7-B99F-76DE284D2148/MyApp.app/MyApp

这篇关于iPhone 崩溃日志显示“版本:???"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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