2011-11-18 12 views
13

Este es un problema muy extraño. Creo que debo estar haciendo algo mal, pero no sé qué es. He estado usando symbolicatecrash durante varios años sin problemas. El problema que estoy viendo es que symbolicatecrash no muestra símbolos para las bibliotecas del sistema, pero muestra símbolos para mi aplicación. Intenté todo lo que pude pensar para resolver esto sin suerte.symbolicatecrash con XCode 4.2 no simboliza los símbolos del sistema

Tenga en cuenta que obtengo los mismos resultados en tres máquinas diferentes, 2 Lion, 1 Snow Leopard.

Ejemplo línea de comando: /Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash /Users/mike/Downloads/mycrash-iPad.crash

Tenga en cuenta también que obtengo los mismos resultados cuando arrastro el archivo a la sección de registros de la ventana del organizador de registros de XCode 4.2 y espero que XCode simbolice el archivo.

He aquí un ejemplo de un accidente en mi código con los símbolos parcialmente symbolicated:

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 

me he encontrado el comando accidente symbolicate con -v y se trata de encontrar los archivos de acuerdo al app.dSym, sólo doesn Parece que está encontrando los archivos simbólicos de la biblioteca, que parece ser el problema opuesto que la mayoría de la gente está teniendo. Facepalm.

Por ejemplo, aquí está la salida de una carrera -v para la lib CoreFoundation:

............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 

Realmente estoy en una pérdida de averiguar qué probar siguiente.

¿Alguien tiene alguna idea? Estoy recién salido. ¡Su ayuda será muy apreciada!

gracias, Mike

Más información, ahora estoy recibiendo un error en la salida symbolicatecrash.

/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 
+0

Hola Mike, ¿cómo has los símbolos 5.0.1? He actualizado mi Xcode a 4.2.1 pero todavía no hay una carpeta "5.0.1 (9A405)" en "iOS DeviceSupport". –

+0

Conecté un 5.0.1 dispositivo y XCode descargan los símbolos en la carpeta/Users/Mike/Library ... –

+0

Estoy bastante convencido de que esto es un error en las herramientas, por cierto. –

Respuesta

13

Los siguientes resuelto el problema para mí:

  • eliminar la carpeta ~/Library/desarrollador/Xcode/IOS DeviceSupport/5.0.1 (9A405)
  • Vuelva a colocar el dispositivo iOS y automáticamente se la importación los símbolos correctos.

Después de eso, los informes de fallos se pueden simbolizar correctamente. (Para volver a symbolicate un informe de error, abra el Organizador, haga clic en 'Mostrar en el Finder' y eliminar la versión symbolicated)

+0

¿Qué versión de Xcode está usando? Reimporté los archivos de símbolos de un iPad 1 y un iPhone 4 y obtuve el mismo resultado en ambas ocasiones. Esto es con Xcode 4.2, la última versión compatible en Snow Leopard. – arlomedia

+4

Esto funcionó. Eliminé los símbolos de la Mac y luego conecté un dispositivo 5.0.1 diferente y luego funcionó correctamente. Si intento de nuevo con símbolos nuevos con mi iPhone 4s no funciona correctamente, con los símbolos de un iPad, funciona. Debe estar dañado en el teléfono de alguna manera. Gracias –

+0

Estoy usando XCode Versión 4.2.1 Build 4D502 en Lion. – ARsteve

2

Parece que este es un fallo reconocido con Xcode 4.2 y iOS 5:

https://devforums.apple.com/message/578722

Un nuevo Xcode beta fue lanzado para Lion ayer, hace que el trabajo para usted? No puedo probarlo porque aún no está disponible para Snow Leopard.

+0

No lo he probado todavía. Aunque las notas de la versión dicen que la nueva versión preliminar de XCode rompe los informes symbolicatecrash y que para simbolizar los bloqueos, tenemos que eliminar la versión de vista previa. Probablemente esperaré un poco hasta que arreglen esto para instalar la versión de vista previa. –

+0

¿Pudo encontrar una solución para esto? Estoy usando XCode 4.3.2 y veo esto en el simulador también (5.1) –

+0

Desde que publiqué esa respuesta, actualicé a Lion y luego a Mountain Lion y ahora estoy ejecutando Xcode 4.4. No puedo recordarlo con certeza, pero creo que cambiar a Lion y Xcode 4.3 arreglaron ese problema en particular, por lo que debes ver un problema diferente. Si tiene acceso a los foros de desarrolladores, puede revisar algunos de los recursos de solución de problemas que me han ayudado: https://devforums.apple.com/message/636623#636623 – arlomedia

Cuestiones relacionadas