Re: DWARF with or without dSYM?
Re: DWARF with or without dSYM?
- Subject: Re: DWARF with or without dSYM?
- From: Jim Ingham <email@hidden>
- Date: Mon, 14 Mar 2016 13:58:42 -0700
You can build a dSYM for any linked image. The only thing you can't build it for is object and archive files. Whether to do it or not is just a tradeoff between build time & preserving debug information long term.
Jim
(*) Technical note. "ld" has an obscure option "ld -r" which makes another "partially linked" .o file out of a collection of .o files (or a .a file.) These are also NOT linked images, so you cannot make a dSYM for them. However, the linker also doesn't copy the debug info from .o files to the ld -r file, it writes a partial debug map pointing back to the original .o or .a file. So if you have a target that makes an "ld -r" output object file, you will need to keep it AND the source .o files around till you end up fully linking the "ld -r" file, then you can make a dSYM out of that.
Jim
> On Mar 14, 2016, at 1:48 PM, Jens Alfke <email@hidden> wrote:
>
>
>> On Mar 14, 2016, at 1:34 PM, Quincey Morris <email@hidden> wrote:
>>
>> Looking at a recently created project (so that the settings are what Apple currently recommends, we might presume), it has DWARF for the debug configuration and DWARF with dSYM for the release configuration. That sounds right, I think.
>
> What sort of target did you use? Again, our project has all sorts of different targets, not just apps.
>
> —Jens
> _______________________________________________
> 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