Re: How do you get Xcode to symbolicate an OS X crash report?
Re: How do you get Xcode to symbolicate an OS X crash report?
- Subject: Re: How do you get Xcode to symbolicate an OS X crash report?
- From: email@hidden
- Date: Fri, 25 Jul 2014 17:07:17 -0700
The crashlog command (actually a Python script) parses the crashlog, reads the UUID's for all the binaries from the images list at the end of the crash log, and then uses the "DebugSymbols" framework to locate the dSYM given the UUID. You can read more about how DebugSymbols works here:
http://lldb.llvm.org/symbols.html
Jim
> On Jul 25, 2014, at 4:37 PM, Roland King <email@hidden> wrote:
>
>
>>>
>>>
>>
>> See: <http://lldb.llvm.org/symbolication.html>
>>
>> First, you'll need to find-replace all tabs->spaces in the .crash file, due to <rdar://15948413> lldb gets confused by tabs. Then:
>>
>> (lldb) command script import lldb.macosx.crashlog
>> (lldb) crashlog ~/Library/Logs/DiagnosticReports/foo.crash
>>
>
> Than you Sean, you are now an official TechNote (why isn't there an official TechNote about this, or why doesn't Xcode do it for OS X).
>
> How on earth however is it finding the symbols to symbolicate it? As far as I know the only place they exist is in my ~/Library/Developer/Xcode/Archives .. directory from when I archived the code before shipping it. The crashlog just has /Applications/<appname> buried in it. In this particular case I happen to have the same version of the app which crashed in /Applications, but that's often not the case, how would I have been able to relate the crash log to a given archived version of the code and dSYMs?
>
> I'd like to 'freeze dry' this crash before I lose it by keeping the crash log and the archived version of the binary + dSYMs in a directory, but next time I want to mess with it I'll need to know how to tell lldb 'use this crashlog against this binary+dSYM'.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden