341008
341008

Reputation: 10222

debug symbols lost during linking...?

I am developing for iOS with XCode 3.2. I compiled my code in debug mode with the -g option into a static library. I then linked this library with a bigger static library which has the main to create the final executable. This library was built in release mode without any of the debugging support. Now when debugging crashes, I don't see the symbols for my code. Where did they go? Were they stripped by the linker? How can I make the linker retain the debugging information for my library? I have no control over the other library so I won't be able to do anything there.

Upvotes: 1

Views: 797

Answers (1)

Flavien Volken
Flavien Volken

Reputation: 21239

If you can build your library, in the Build Settings

  • Use the same Debug Information Format for both the library and your code. mixing for example "DWARF with dSYM File " with "DWARF" will not display the symbols
  • Build it with any flag related "strip" to NO (or deployment Postprocessing NO)

Upvotes: 1

Related Questions