iPhone崩溃日志说“Version:???” [英] iPhone crash logs say "Version: ???"

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

问题描述

我正在开发一个iPhone应用程序,并进行ad-hoc分发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?

EDIT 显然,在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进行比较。

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,请按照下列步骤操作:

To retrieve the UDID:

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

并将其与crashlog进行比较:

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崩溃日志说“Version:???”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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