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?
ttg
August 15, 2017, 8:55am
2
From what I remember,
Crash reports could be symbolicated if it (crash reporter) finds the dSYMs in expected path.
My problem is that I can’t seem to:
And
…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 ?
use command line strip in post build script ?
ttg
August 16, 2017, 12:17pm
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 to see which one you’re missing.
Thanks. I’d love to check it out.
jimc
April 9, 2018, 7:13am
7
What was the solution here?
ttg
April 9, 2018, 4:56pm
8
Almost a year later… but here it is.
(still hunted by running Windows using Parallels on my 2015 MacBook 12 Retina… slooowww)
Since this is a very common question I’ve made a sample project to help getting started with symbol-less Release builds (while still keeping symbols to allow symbolicating user’s crashes later).
Hope it’ll be helpful. The README.md contains pretty much everything needed to get you up and running for macOS and Windows.
So here is the repo on github:
2 Likes