Crash文件分析:符号化iOS Crash文件的3种方法
- export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash appName.crash appName.app > appName.log
- grep "appName armv" *crash
- grep --after-context=2 "Binary Images:" *crash
- appName.crash-0x4000 - 0x9e7fff appName armv7 <8bdeaf1a0b233ac199728c2a0ebb4165> /var/mobile/Applications/A0F8AB29-35D1-4E6E-84E2-954DE7D21CA1/appName.crash.app/appName
- xcrun dwarfdump -–uuid <AppName.app/ExecutableName>
- xcrun dwarfdump --uuid appName.app/appName
- UUID: 8BDEAF1A-0B23-3AC1-9972-8C2A0EBB4165 (armv7) appName.app/appName
- UUID: 5EA16BAC-BB52-3519-B218-342455A52E11 (armv7s) appName.app/appName
- 8BDEAF1A-0B23-3AC1-9972-8C2A0EBB4165
- atos [-o AppName.app/AppName] [-l loadAddress] [-arch architecture]
- xcrun atos -o appName.app.dSYM/Contents/Resources/DWARF/appName -l 0x4000 -arch armv7
- xcrun atos -o appName.app.dSYM/Contents/Resources/DWARF/appName -arch armv7
- xcrun atos -o appName.app/appName -arch armv7
- * 3 appName 0x000f462a 0x4000 + 984618
- * 4 appName **0x00352aee** 0x4000 + 3468014
- xcrun atos -o appName.app.dSYM/Contents/Resources/DWARF/appName -l 0x4000 -arch armv7
- 0x00352aee
- -[UIScrollView(UITouch) touchesEnded:withEvent:] (in appName) (UIScrollView+UITouch.h:26)