Stripping symbols on plugins

For the macOS release build, I have it working with the following flags in my cmake project:

set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g")
set (CMAKE_XCODE_ATTRIBUTE_GCC_GENERATE_DEBUGGING_SYMBOLS[variant=Release] "YES")
set (CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT[variant=Release] "dwarf-with-dsym")
set (CMAKE_XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=Release] "YES")

and strip the symbols as a post build action with strip -x ${PRODUCT_NAME}.${artifact_extension}/Contents/MacOS/${PRODUCT_NAME}.

Can’t remember why but also had to disable the copy plugin after build option for the release build so it does not interfere with the symbols stuff.

3 Likes