尽管有dSYM,但无法手动对iOS崩溃日志进行符号化

时间:2016-01-19 18:12:13

标签: ios xcode crash xcode7 dsym

我无法让Xcode 7象征我App Store用户发送的崩溃日志,并且在尝试手动对其进行符号化时失败了,尽管我已经拥有了所有必需的dSYM。

崩溃日志摘录:

Exception Type: EXC_BREAKPOINT (SIGTRAP) 
Exception Codes: 0x0000000000000001, 0x0000000100fa990c 
Triggered by Thread: 0

Filtered syslog: 
None found

Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 libswiftCore.dylib 0x0000000100fa990c 0x100e64000 + 1333516 
1 libswiftCore.dylib 0x0000000100fa990c 0x100e64000 + 1333516 
2 MyApp 0x00000001002cdc50 0x1000a4000 + 2268240 

...

Binary Images: 
0x1000a4000 - 0x10079ffff MyApp arm64 <29a862b975b335ae91c2615c775e064f> /var/mobile/Containers/Bundle/Application/CC9E1FB1-22BB-4723-B28A-95EBE21522A1/MyApp.app/MyApp 

我的应用已启用Bitcode,因此我从Xcode&gt;下载了dSYM。组织者&gt;档案。然后我确认29A862B9-75B3-35AE-91C2-615C775E064F.dSYM确实存在于提交到App Store的构建的存档中(与用户在崩溃时运行的构建相同)。

然后手动对崩溃日志进行符号化,我在终端中运行了以下命令:

$ export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
$ /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/Current/Resources/symbolicatecrash -v ~/Desktop/CrashOnLaunchLogFromUser.crash  > ~/Desktop/Symbolicated.crash

然后我等待处理完成,但生成的符号文件没有替换符号。查看输出时,我看到以下与我的应用程序二进制文件相关的信息:

Symbolicating...

....fetching symbol file for MyApp--[undef]
Searching []...-- NO MATCH
Searching in Spotlight for dsym with UUID of 29a862b975b335ae91c2615c775e064f
Running mdfind "com_apple_xcode_dsym_uuids == 29A862B9-75B3-35AE-91C2-615C775E064F"
Running mdls -name com_apple_xcode_dsym_paths ...

... Lots of paths including those to all dSYMs from the correct archive that spotlight found
... I can also see that it finds the correct MyApp.app file from the archive as well

## /Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphoneos/MyApp.app/MyApp doesn't contain arm64 slice
UUID of executable is: 29a862b975b335ae91c2615c775e064f
Executable name: /Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphoneos/MyApp.app/MyApp

UUID doesn't match dsym for executable /Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphoneos/MyApp.app/MyApp
Running /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -info '/Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp'
## /Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp doesn't contain arm64 slice
UUID of executable is: 29a862b975b335ae91c2615c775e064f
Executable name: /Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp

UUID doesn't match dsym for executable /Users/Sencha/Library/Developer/Xcode/DerivedData/MyApp-byivrddxclcridbtblvodrqymqwv/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp
Running /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -info '/Users/Sencha/Library/Developer/Xcode/Archives/2016-01-01/MyApp 030100.03.9 01-01-2016, 20.27.xcarchive/Products/Applications/MyApp.app/MyApp'
Running /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -arch arm64 -l '/Users/Sencha/Library/Developer/Xcode/Archives/2016-01-01/MyApp 030100.03.9 01-01-2016, 20.27.xcarchive/Products/Applications/MyApp.app/MyApp'
Given UUID 29a862b975b335ae91c2615c775e064f for '/Users/Sencha/Library/Developer/Xcode/Archives/2016-01-01/MyApp 030100.03.9 01-01-2016, 20.27.xcarchive/Products/Applications/MyApp.app/MyApp' is really UUID 0209e38b2511300f967d01738731d7dd
UUID of executable is: 29a862b975b335ae91c2615c775e064f
Executable name: /Users/Sencha/Library/Developer/Xcode/Archives/2016-01-01/MyApp 030100.03.9 01-01-2016, 20.27.xcarchive/Products/Applications/MyApp.app/MyApp

UUID doesn't match dsym for executable /Users/Sencha/Library/Developer/Xcode/Archives/2016-01-01/MyApp 030100.03.9 01-01-2016, 20.27.xcarchive/Products/Applications/MyApp.app/MyApp
Did not find executable for dsym
## Warning: Can't find any unstripped binary that matches version of /var/mobile/Containers/Bundle/Application/CC9E1FB1-22BB-4723-B28A-95EBE21522A1/MyApp.app/MyApp 

...

done.
0 binary images were found.

这一切都导致没有符号被替换。任何想法为什么这不起作用?所有UUID看起来都没问题,它找到了正确的应用程序文件,dSYMs等。如果需要,我很乐意提供更多信息。

0 个答案:

没有答案