ios crash report -- atos symbolicate

来源:互联网 发布:ov7670 51单片机 编辑:程序博客网 时间:2024/05/18 02:52

plcrashreporter


===============================

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

//------------

Steps to analyze crash report from apple:

  1. Copy the release .app file which was pushed to the appstore, the .dSYM file that was created at the time of release and the crash report receive from APPLE into a FOLDER.

  2. OPEN terminal application and go to the folder created above (using CD command)

  3. atos -arch armv7 -o YOURAPP.app/YOURAPP MEMORY_LOCATION_OF_CRASH. The memory location should be the one at which the app crashed as per the report.

Ex: atos -arch armv7 -o 'app name.app'/'app name' 0x0003b508

This would show you the exact line, method name which resulted in crash.

Ex: [classname functionName:]; -510

Symbolicating IPA

if we use IPA for symbolicating - just rename the extention .ipa with .zip , extract it then we can get a Payload Folder which contain app. In this case we don't need .dSYM file.

Thanks



===============================

http://stackoverflow.com/questions/10242766/atos-and-dwarfdump-wont-symbolicate-my-address


[ http://stackoverflow.com/questions/13574933/ios-crash-reports-atos-not-working-as-expected ]

You have to calculate the address to use with atos, you can't just use the one in the stacktrace.

symbol address = slide + stack address - load address

The slide value is the value of vmaddr in LC_SEGMENT cmd (Mostly this is0x1000). Run the following to get it:

otool -arch ARCHITECTURE -l "APP_BUNDLE/APP_EXECUTABLE" | grep -B 3 -A 8 -m 2 "__TEXT"
  1. Replace ARCHITECTURE with the actual architecture the crash report shows, e.g.armv7.ReplaceAPP_BUNDLE/APP_EXECUTABLE with the path to the actual executable.

  2. The stack address is the hex value from the crash report.

  3. The load address can be is the first address showing in the Binary Images section at the very front of the line which contains your executable. (Usually the first entry).

Since in the past value of the slide was equal to value of the load address this always worked. But since Apple introduced Address space layout randomization beginning with iOS 4.3 (in different variations), the apps loading address is randomized for security reasons.


=========================

Using symbolicatecrash: (http://stackoverflow.com/questions/11682789/trying-to-get-symbols-for-an-ios-crash-file)

whereis it ?

under /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/

If error: no DEVELOPER_DIR defined?

add export DEVELOPER_DIR=`xcode-select --print-path` to ~/.bashrc

You'd better run:

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash /usr/bin/symbolicatecrash

Then:

symbolicatecrash crash.file dsym.file