正确的设置,以便 Xcode 为 iOS 设备生成正确的符号化日志
我正在一系列设备和 iOS 版本(iPhone、Touch、iPad、iOS 3.1.3、4.0.2、4.1)上对多个 iOS 应用程序进行测试。
我安装了 Xcode v3.2.4,主要是为了获取日志和控制台输出以附加到错误。
我们最近注意到我的符号化日志只是非符号化日志,在现有字符之间插入了额外的空格(因此“日志文件”显示为“logfile”。
其中一位工程师最终给了我一个包含 .app 和.dSYM,我在本地复制到我的 Mac 并通过 Xcode 安装到设备上(通常使用 iPhone Config Util),
之后,符号文件并不宽敞,但它们与非符号版本相同
。我配置错了什么?
我知道这可能是一个大问题,但我希望不是这样,或者如果是的话,有人会感到非常友善和无聊:)
提前感谢您的帮助帮助。
I'm performing testing on several iOS apps on a range of devices and iOS versions (iPhone, Touch, iPad, iOS 3.1.3, 4.0.2, 4.1).
I have Xcode v3.2.4 installed, primarily so I can get logs and console output to attach to bugs.
We recently noticed that my symbolicated logs are just the non-sybolicated logs with extra spaces inserted between existing characters (so "log file" appears as "l o g f i l e".
One of the engineers eventually gave me a build with both a .app and a .dSYM which I copied to my Mac locally and installed onto a device through Xcode (usually use iPhone Config Util).
After that, the symbolicated files aren't spacey, but they are identical to the non-symbolicated versions.
What am I missing? What do I have configured incorrectly? What am I doing wrong?
I recognize that might be a big question, but I'm hoping it's not, or if it is, someone's feeling very kind and bored :)
Thanks ahead of time for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论机器上的自动符号有多么损坏,这总是对我有用:
将 dSYM 文件复制到 Spotlight 明确索引的位置(根据经验:不是 /tmp 文件夹)。 Home、Desktop 或 Documents 的子文件夹是最安全的选择。
调用 mdimport 以确保 Spotlight 已对包含 dSYM 的文件夹建立索引:
mdimport /path/to/dSYM
调用symbolicatecrash(假设您在应用程序中有一个相当当前的Xcode):
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS。 platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash /path/to/crashlog
如果没有'不起作用,使用 -v (详细)运行 symbolicatecrash 通常会非常清楚地显示它在哪里寻找符号以及为什么找不到它们。
This always works for me, no matter how broken automatic symbolication on the machine is:
Copy the dSYM file to a location where it is definitely indexed by Spotlight (from experience: not the /tmp folder). A subfolder of Home, Desktop or Documents is the safest choice.
Call mdimport to ensure that Spotlight has indexed the folder containing the dSYM:
mdimport /path/to/dSYM
Call symbolicatecrash (assuming you've got a reasonably current Xcode in Applications):
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash /path/to/crashlog
If it doesn't work, running symbolicatecrash with -v (verbose) will usually show pretty clearly where it's looking for the symbols and why they're not found.