How to generate dSYM files on macOS

Or will plug-ins built with these flags produce crash logs with symbolic names?

You can check this with:

nm  path/to/my/plugin.vst3/Contents/MacOS/plugin -s __TEXT __text

If the symbols were correctly stripped then you’ll only have a few lines, if not it will spit out tons of lines where you can see your symbols.

I had issues in the past generating and stripping symbols with projects generated with the projucer (i now do this with cmake, here’s how i had it working Stripping symbols on plugins - #6 by static-cats).
What i ended up doing is having a different script for building the release build that would run pretty much the same as what AdamVenn mentioned:

xcodebuild -project plugin.xcodeproj -configuration "Release" GCC_GENERATE_DEBUGGING_SYMBOLS=YES STRIP_INSTALLED_PRODUCT=YES DEBUG_INFORMATION_FORMAT=dwarf-with-dsym STRIP_STYLE=non-global

The xcode project was generated with the projucer with the flag “Enable Plugin Copy Step” set to disable (can’t exactly remember why but it was important).

Hope this helps.

1 Like