symboliccrash与XCode 4.2不符号系统符号 [英] symbolicatecrash with XCode 4.2 not symbolicating system symbols
问题描述
请注意,我在三台不同的机器上获得相同的结果,2只狮子,1只雪豹。
示例命令行:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash/Users/mike/Downloads/mycrash-iPad.crash
请注意,当我将文件拖动到XCode 4.2日志管理器窗口的日志部分并等待XCode对文件进行符号时,我得到相同的结果。
以下是我的代码中部分符号符号的崩溃示例:
最终异常回溯:
0 CoreFoundation 0x33dae8bf 0x33cf5000 + 759999
1 libobjc.A.dylib 0x354ca1e5 0x354c1000 + 37349
2 CoreFoundation 0x33dae7b9 0x33cf5000 + 759737
3 CoreFoundation 0x33dae7db 0x33cf5000 + 759771
4 CoreFoundation 0x33d1b6bb 0x33cf5000 + 157371
5 myZenfolio 0x001a551d - [GtDataSourceManager setDataSource:forKey:](GtDataSource.m:59)
6 myZenfolio 0x0004c793 - [ZfUserAccountViewController doUpdateDataSourceManager:](ZfUserAccountViewController。 m:202)
7 myZenfolio 0x0022f853 - [GtEditObjectViewController tableViewWillReloadData:](GtEditObjectViewController.m:803)
8 CoreFoundation 0x33d0d22b 0x33cf5000 + 98859
9 m yZenfolio 0x002557b9 - [GtTableView reloadData](GtTableView.m:48)
10 myZenfolio 0x0004c36d - [ZfUserAccountViewController.m:160]
11 CoreFoundation 0x33d0d22b 0x33cf5000 + 98859
12 Foundation 0x3187c757 0x317d8000 + 673623
13 CoreFoundation 0x33d82b03 0x33cf5000 + 580355
14 CoreFoundation 0x33d822cf 0x33cf5000 + 578255
15 CoreFoundation 0x33d81075 0x33cf5000 + 573557
16 CoreFoundation 0x33d044dd 0x33cf5000 + 62685
17 CoreFoundation 0x33d043a5 0x33cf5000 + 62373
18 GraphicsServices 0x35944fcd 0x35941000 + 16333
19 UIKit 0x34e49743 0x34e18000 + 202563
20 myZenfolio 0x00004017 main(main.m:15)
21 myZenfolio 0x00003fd0 start + 40
我已经用-v运行symbolicate crash命令,并且发现app.dSym文件可以,它似乎没有找到图书馆的symfiles,这似乎是大多数人所面临的相反的问题。 Facepalm。
例如,以下是CoreFoundation lib的-v运行的输出:
code> ............获取CoreFoundation的符号文件 - [undef]
搜索[/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0(9A334)/符号/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation]...-- / /开发者/平台iPhone OS.platform / DeviceSupport / 5.0(9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation]运行xcrun -sdk iphoneos lipo -info'/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0(9A334)/符号/系统/库/框架/ CoreFoundation.framework / CoreFoundation'
运行xcrun -sdk iphoneos otool -arch armv7 -l'/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0(9A334)/ Symbols / System /图书馆/框架/ CoreFoundation.framework / CoreFoundation'
给定UUID de9eefc6109735369cfd8f3de9895da0 for'/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0(9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'真的是UUID a2dbc131fdc0364e822339ca2926b6e8
- NO MATCH
- [/ Developer / Platforms / iPhoneOS.platform / DeviceSupport / Latest / Symbols / System / Library / Frameworks / CoreFoundation.framework / CoreFoundation]运行xcrun -sdk iphoneos lipo -info'/ Developer / Platforms / iPhoneOS .platform / DeviceSupport / Latest / Symbols / System / Library / Frameworks / CoreFoundation.framework / CoreFoundation'
运行xcrun -sdk iphoneos otool -arch armv7 -l'/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/符号/系统/库/框架/ CoreFoundation.framework / CoreFoundation'
给定UUID de9eefc6109735369cfd8f3de9895da0用于'/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'真的是UUID a2dbc131fdc0 364e822339ca2926b6e8
- 没有匹配
使用UUID搜索dsym的de9eefc6109735369cfd8f3de9895da0
运行mdfindcom_apple_xcode_dsym_uuids == DE9EEFC6-1097-3536-9CFD-8F3DE9895DA0
@dsym_paths =( )
@exec_names =()
没有找到dsym
##的可执行文件警告:找不到与/System/Library/Frameworks/CoreFoundation.framework/的版本匹配的任何未分解的二进制文件CoreFoundation
我真的很失望,想知道下一步要尝试。
$ b有没有人有任何想法?$ b
我很新鲜谢谢,
Mike
更多信息,现在我'在symbolicatecrash输出中得到错误。
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:对于架构armv7对象:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/System/Library/Frameworks/Foundation.framework/Foundation truncated or malformed object(dataoff field of LC_FUNCTION_STARTS command 22延伸到文件的末尾)
/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/System/Library/Frameworks/Foundation.framework/的符号文件中的错误基础
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7 object:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/ Symbols / System / Library / PrivateFrameworks / GraphicsServices.framework / GraphicsServices被截断或格式错误的对象(LC_FUNCTI的dataoff字段ON_STARTS命令17延伸到文件末尾)
/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/ Symbols / System / Library / PrivateFrameworks / GraphicsServices的符号文件中的错误.framework / GraphicsServices
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7 object:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405) /Symbols/System/Library/Frameworks/UIKit.framework/UIKit截断或格式错误的对象(LC_FUNCTION_STARTS命令41的dataoff字段延伸超过文件的末尾)
/ Users / mike / Library / Developer的符号文件中的错误/ Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7对象:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/System/Library/PrivateFrameworks/WebCore.framework/WebCore截断或格式错误的对象(dataoff LC_FUNCTION_STARTS命令28的字段延伸超过文件的末尾)
/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/ Symbols / System / Library / PrivateFrameworks的符号文件中的错误/WebCore.framework/WebCore
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7 object:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1( 9A405)/Symbols/usr/lib/libobjc.A.dylib截断或格式错误的对象(LC_FUNCTION_STARTS命令12的dataoff字段延伸超过文件的末尾)
/ Users / mike / Library / Developer的符号文件中的错误/ Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/usr/lib/libobjc.A.dylib
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7 object: / Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/usr/lib/system/libdispatch.dylib截断或格式错误的对象(LC_FUNCTION_STARTS命令11的dataoff字段延伸到文件末尾)
/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)的符号文件中的错误/Symbols/usr/lib/system/libdispatch.dylib
/开发人员/平台/ iPhoneOS .platform / Developer / usr / bin / size:架构armv7对象:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/usr/lib/system/libsystem_c.dylib被截断或错误的对象(LC_FUNCTION_STARTS命令11的dataoff字段延伸超过文件的末尾)
/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/ Symbols / usr的符号文件中的错误/lib/system/libsystem_c.dylib
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7 object:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0。 1(9A405)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation被截断或格式不正确的对象(LC_FUNCTION_STARTS命令15的dataoff字段延伸超过文件的末尾)
/ Users / mike的符号文件中的错误/图书馆/开发者/ Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size:for architecture armv7对象:/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)/Symbols/usr/lib/system/libsystem_kernel.dylib截断或格式错误的对象(LC_FUNCTION_STARTS命令10的dataoff字段延伸到结束的文件)
/ Users / mike / Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)的符号文件中的错误/Symbols/usr/lib/system/libsystem_kernel.dylib
以下内容解决了我的问题:
- 删除文件夹〜/ Library / Developer / Xcode / iOS DeviceSupport / 5.0.1(9A405)
- 重新安装iOS设备它将自动导入正确的符号。
之后崩溃报告可以正确标识。 (重新标识崩溃报告,打开主办单位,点击显示在Finder并删除符号版本)
This is a very weird problem. I think I must be doing something wrong, but I don't know what it is. I've been using symbolicatecrash for several years with no problems. The issue I'm seeing is that symbolicatecrash is not showing symbols for the system libraries, but it IS showing symbols for my application. I've tried everything I can think of to resolve this with no luck.
Note that I'm getting the same results on three different machines, 2 Lion, 1 Snow Leopard.
Example command line: /Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash /Users/mike/Downloads/mycrash-iPad.crash
Note also that I get the same results when I drag the file into the logs section of the XCode 4.2 logs organizer window and wait for XCode to symbolicate the file.
Here's an example of a crash in my code with the partially symbolicated symbols:
Last Exception Backtrace:
0 CoreFoundation 0x33dae8bf 0x33cf5000 + 759999
1 libobjc.A.dylib 0x354ca1e5 0x354c1000 + 37349
2 CoreFoundation 0x33dae7b9 0x33cf5000 + 759737
3 CoreFoundation 0x33dae7db 0x33cf5000 + 759771
4 CoreFoundation 0x33d1b6bb 0x33cf5000 + 157371
5 myZenfolio 0x001a551d -[GtDataSourceManager setDataSource:forKey:] (GtDataSource.m:59)
6 myZenfolio 0x0004c793 -[ZfUserAccountViewController doUpdateDataSourceManager:] (ZfUserAccountViewController.m:202)
7 myZenfolio 0x0022f853 -[GtEditObjectViewController tableViewWillReloadData:] (GtEditObjectViewController.m:803)
8 CoreFoundation 0x33d0d22b 0x33cf5000 + 98859
9 myZenfolio 0x002557b9 -[GtTableView reloadData] (GtTableView.m:48)
10 myZenfolio 0x0004c36d -[ZfUserAccountViewController _updateFromCache] (ZfUserAccountViewController.m:160)
11 CoreFoundation 0x33d0d22b 0x33cf5000 + 98859
12 Foundation 0x3187c757 0x317d8000 + 673623
13 CoreFoundation 0x33d82b03 0x33cf5000 + 580355
14 CoreFoundation 0x33d822cf 0x33cf5000 + 578255
15 CoreFoundation 0x33d81075 0x33cf5000 + 573557
16 CoreFoundation 0x33d044dd 0x33cf5000 + 62685
17 CoreFoundation 0x33d043a5 0x33cf5000 + 62373
18 GraphicsServices 0x35944fcd 0x35941000 + 16333
19 UIKit 0x34e49743 0x34e18000 + 202563
20 myZenfolio 0x00004017 main (main.m:15)
21 myZenfolio 0x00003fd0 start + 40
I've run the symbolicate crash command with -v and it's finding the app.dSym files okay, it just doesn't seem to be finding the library symfiles which seems to be the opposite problem most people are having. Facepalm.
For example, here's the output from a -v run for the CoreFoundation lib:
............fetching symbol file for CoreFoundation--[undef]
Searching [/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation]...--[/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation] Running xcrun -sdk iphoneos lipo -info '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'
Running xcrun -sdk iphoneos otool -arch armv7 -l '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'
Given UUID de9eefc6109735369cfd8f3de9895da0 for '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.0 (9A334)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation' is really UUID a2dbc131fdc0364e822339ca2926b6e8
-- NO MATCH
--[/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation] Running xcrun -sdk iphoneos lipo -info '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'
Running xcrun -sdk iphoneos otool -arch armv7 -l '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation'
Given UUID de9eefc6109735369cfd8f3de9895da0 for '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation' is really UUID a2dbc131fdc0364e822339ca2926b6e8
-- NO MATCH
Searching in Spotlight for dsym with UUID of de9eefc6109735369cfd8f3de9895da0
Running mdfind "com_apple_xcode_dsym_uuids == DE9EEFC6-1097-3536-9CFD-8F3DE9895DA0"
@dsym_paths = ( )
@exec_names = ( )
Did not find executable for dsym
## Warning: Can't find any unstripped binary that matches version of /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
I really am at a loss to figure out what to try next.
Does anyone have any ideas? I'm fresh out. Your help will be much appreciated!
thanks, Mike
More info, now I'm getting an error in the symbolicatecrash output.
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/Foundation.framework/Foundation truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 22 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/Foundation.framework/Foundation
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 17 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 41 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/PrivateFrameworks/WebCore.framework/WebCore truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 28 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/PrivateFrameworks/WebCore.framework/WebCore
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/libobjc.A.dylib truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 12 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/libobjc.A.dylib
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/system/libdispatch.dylib truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 11 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/system/libdispatch.dylib
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/system/libsystem_c.dylib truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 11 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/system/libsystem_c.dylib
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 15 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/size: for architecture armv7 object: /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/system/libsystem_kernel.dylib truncated or malformed object (dataoff field of LC_FUNCTION_STARTS command 10 extends past the end of the file)
Error in symbol file for /Users/mike/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/usr/lib/system/libsystem_kernel.dylib
The following solved the problem for me:
- Delete the folder ~/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)
- Reattach your iOS device and it will automatically import the correct symbols.
After that the crash reports could be symbolicated correctly. (to re-symbolicate a crash report, open the Organizer, click on 'Reveal in Finder' and delete the symbolicated version)
这篇关于symboliccrash与XCode 4.2不符号系统符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!