Xcode 6符号无法正常工作

时间:2014-11-06 21:41:17

标签: ios objective-c xcode xcode6 symbolicatecrash

我已经遵循了一些用于符号化的SO解决方案,但我无法让任何Apple框架线符号化。使用symbolicatecrash将新的崩溃日志输出到终端,但它只表示我的代码:

/Applications/XCode6/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash crash1.crash Defqt.app.dSYM

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                  0x185f59e48 0x185e34000 + 1203784
1                                   0x1966540e4  + 6818185444
2   CoreFoundation                  0x185f597fc 0x185e34000 + 1202172
3   Defqt                           0x1000e5358 __39-[MUTCameraAssetGroupList getAllAlbums]_block_invoke (MUTCameraAssetGroupList.m:139)
4   AssetsLibrary                   0x18528d58c 0x185284000 + 38284
5                                   0x196c993ac  + 6824760236
6                                   0x196c9936c  + 6824760172
7                                   0x196c9d980  + 6824778112
8   CoreFoundation                  0x185f116a0 0x185e34000 + 906912
9   CoreFoundation                  0x185f0f748 0x185e34000 + 898888
10  CoreFoundation                  0x185e3d1f4 0x185e34000 + 37364
11                                  0x18efd35a4  + 6693926308
12  UIKit                           0x18a76e784 0x18a6f8000 + 485252
13  Defqt                           0x1000e174c main (main.m:16)
14                                  0x196cc2a08  + 6824929800


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x0000000196ddb270 0x196dc0000 + 111216
1   libsystem_pthread.dylib         0x0000000196e79224 0x196e74000 + 21028
2   libsystem_c.dylib               0x0000000196d52b14 0x196cf0000 + 404244
3   libc++abi.dylib                 0x0000000195e39414 0x195e38000 + 5140
4   libc++abi.dylib                 0x0000000195e58b88 0x195e38000 + 134024
5   libobjc.A.dylib                 0x00000001966543bc 0x19664c000 + 33724
6   libc++abi.dylib                 0x0000000195e55bb0 0x195e38000 + 121776
7   libc++abi.dylib                 0x0000000195e55474 0x195e38000 + 119924
8   libobjc.A.dylib                 0x0000000196654200 0x19664c000 + 33280
9   CoreFoundation                  0x0000000185f597f8 0x185e34000 + 1202168
10  Defqt                           0x00000001000e5354 __39-[MUTCameraAssetGroupList getAllAlbums]_block_invoke (MUTCameraAssetGroupList.m:139)
11  AssetsLibrary                   0x000000018528d588 0x185284000 + 38280
12  libdispatch.dylib               0x0000000196c993a8 0x196c98000 + 5032
13  libdispatch.dylib               0x0000000196c99368 0x196c98000 + 4968
14  libdispatch.dylib               0x0000000196c9d97c 0x196c98000 + 22908
15  CoreFoundation                  0x0000000185f1169c 0x185e34000 + 906908
16  CoreFoundation                  0x0000000185f0f744 0x185e34000 + 898884
17  CoreFoundation                  0x0000000185e3d1f0 0x185e34000 + 37360
18  GraphicsServices                0x000000018efd35a0 0x18efc8000 + 46496
19  UIKit                           0x000000018a76e780 0x18a6f8000 + 485248
20  Defqt                           0x00000001000e1748 main (main.m:16)
21  libdyld.dylib                   0x0000000196cc2a04 0x196cc0000 + 10756

运行脚本后出现以下错误:

Use of uninitialized value $image_base in hex at /Applications/XCode6/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash line 572.
Use of uninitialized value $image in sprintf at /Applications/XCode6/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash line 573.
Use of uninitialized value $image_base in sprintf at /Applications/XCode6/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash line 573.
Use of uninitialized value $image_base in hex at /Applications/XCode6/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash line 572.
Use of uninitialized value $image in sprintf at /Applications/XCode6/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash line 573.

1 个答案:

答案 0 :(得分:1)

尝试使用“symbolicatecrash -v xxx.crash”命令获取详细日志,你应该能够找到无法找到的苹果框架符号,它们应该位于〜/ Library / Developer / Xcode中/ iOS DeviceSupport / $ {iOS version},如果您将真实设备连接到Mac并进行同步,则会复制符号,并且版本必须与崩溃报告发生的设备iOS版本完全相同。

我不知道在哪里下载不同iOS版本的符号,问题Missing iOS symbols at “~/Library/Developer/Xcode/iOS DeviceSupport”已经问过这个但目前没有回答。