Symbolicate iPhone app crash
Asked Answered
P

2

4

Symbolicate iPhone app crash - Map hexadecimal addresses to valid function namespace (call stack)

Listing requirements: Symbolicating crashes

  1. Using Xcode Organizer
  2. Using external services
  3. Using .crash file and .dSYM file
    Sources: iTunesConnect crash report (distributed)
    Device crash log or external services.
Parmesan answered 25/2, 2013 at 10:1 Comment(2)
Its a post rather a question. I apologize if I am supposed not to do this way. I felt its informative. So did.Parmesan
Thanks for sharing; please make a real question about the problem your post solves, and put the solution into an answer to your own question.Beguin
P
4

Provided I have .crash file and .dSYM file, this works.

  1. Preliminary

    Create a folder temp in ~/, path is ~/temp/
    Keep all files in ~/temp/ i.e. script, .ipa, .dsym and .crash (in fact .ipa is not needed)

  2. Go to ~/temp/

  3. Set path: If there are two Xcode's in system or paths not being set

    sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/ export DEVELOPER_DIR=/Applications/Xcode.app

  4. Create shortcut

    Alias symbolicateCrash /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash

  5. Get symbolication:

    atos -arch armv7 -o 'appname.app'.dSYM/Contents/Resources/DWARF/'appname' 0x0029c296
    atos -arch armv7 -o 'appname.app'.dSYM/Contents/Resources/DWARF/'appname -l "binary image line of crash log"
    

    or

    symbolicateCrash 'logname'.crash 'appname.app'.dSYM/Contents/Resources/DWARF/'appname'
    
  6. Still, if any issues? Still couldn't link with some not found, couldn't figure out exceptions.
    Downloaded script: external shell script (uploaded as 'symbolicatecrash')

./symbolicatecrash -v filename.crash

References:

How to Manually Symbolicate iOS Crash to View Crash Logs

Symbolicating iPhone App Crash Reports

iphone: Where the .dSYM file is located in crash report

How to create dSYM file in XCode 4?

How to symbolicate iPhone \ iPad crash logs?

Parmesan answered 25/2, 2013 at 10:59 Comment(1)
W
0

you should go with -->Xcode -- > Organizer--> Devices --> Device Logs :)

Here you can find crash log.... OR you can use TestFlight SDK for use see crash log of your testing teams Device....

Woolf answered 25/2, 2013 at 10:34 Comment(3)
That is when you are developing. But i guess it wont be applicable to the app released on app store. For such a case this works.Parmesan
For testFlight yes it works only when you develoing the app......but xcode organiser method will works also for app store appss...Woolf
You are saying opening .crash file with xcode organizer will symbolicate? Because once we distribute app on app store we cant access devices but somehow we can access crash report.Parmesan

© 2022 - 2024 — McMap. All rights reserved.