Generating OSX dSyms and still stripping symbols?


#1

I’d like to generate a dSym file when building my Release build, but I’d also like to Strip Local Symbols to prevent nosy eyes. Is it possible to do both? Or are they mutually exclusive?

In my Release Build, I’ve got Strip Local Symbols CHECKED, and I’m using this in Custom Xcode flags:

GCC_GENERATE_DEBUGGING_SYMBOLS=YES, 
GCC_DEBUGGING_SYMBOLS = full,  
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym,  
COPY_PHASE_STRIP=YES,  
DWARF_DSYM_FILE_NAME = "$(TARGET_NAME).dSYM",  
DWARF_DSYM_FOLDER_PATH = "$(CONFIGURATION_BUILD_DIR)/dSyms"

My dSym is created, but when in the crash log I see my function names which I don’t want.

Any ideas?


#2

From what I remember,
Crash reports could be symbolicated if it (crash reporter) finds the dSYMs in expected path.


#3

My problem is that I can’t seem to:

  • Strip symbols

And

  • generate a dSym file

…at the same time.

Projucer should definitely have a Generate dSym file and dSym file Location option.

I’ve read every forum post on this subject and tried every option given but I can’t get this working. This seems to be voodoo. @jules ?


#4

use command line strip in post build script ?


#5

Would you like me to upload a simple jucer project with dsym working example?
usually you just need to look on A LOT of settings in Xcode :wink: to see which one you’re missing.


#6

Thanks. I’d love to check it out.


#7

What was the solution here?


#8

Almost a year later… but here it is.
(still hunted by running Windows using Parallels on my 2015 MacBook 12 Retina… slooowww)