Strip symbols and reducing size (OSX)

While doing my tests under OSX I noticed that all my crash report in Logic showed the full names of my plug-in functions. I did a bit of research and I read that I should use the strip command with terminal.

I tried both strip -x and strip -x -S passing PlugIn.component/Contents/MacOS/PlugIn but nothing, I still can see them. What's the correct way of doing that? I'm using XCode 5

Also, while looking for the strip symbols stuff, I noticed a few threads about the size of mac plug-ins. What should I put (and where) in order to reduce the size of my plug-ins (for example, unused modules)?

Thanks in advance.

if [ "${CONFIGURATION}" = "Release" ] || [ "${CONFIGURATION}" = "Release_64" ] || [ "${CONFIGURATION}" = "Release_Combo" ]; then

copyAU=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'AudioUnit' | wc -l`

copyVST=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'VSTPlugin' | wc -l`

copyRTAS=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'CProcess' | wc -l`

copyAAX=`nm -g "$CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH" | grep -i 'GetEffectDescriptions' | wc -l`


if [ $copyAU -gt 0 ]; then

AU=~/Library/Audio/Plug-Ins/Components/$PRODUCT_NAME.component/Contents/MacOS/$PRODUCT_NAME

echo "Stripping symbols for:" "$AU"

strip -x "$AU"

fi


if [ $copyVST -gt 0 ]; then

VST=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.vst/Contents/MacOS/$PRODUCT_NAME

echo "Stripping symbols for:" "$VST"

strip -x "$VST"

fi


if [ $copyRTAS -gt 0 ]; then

RTAS=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.dpm/Contents/MacOS/$PRODUCT_NAME

echo "Stripping symbols for:" "$RTAS"

strip -x "$RTAS"

fi


if [ $copyAAX -gt 0 ]; then

AAX=~/Library/Audio/Plug-Ins/VST/$PRODUCT_NAME.aaxplugin/Contents/MacOS/$PRODUCT_NAME

echo "Stripping symbols for:" "$AAX"

strip -x "$AAX"

fi

fi

Thanks, I added this to the post-build shell script but didn't change anything in terms of size and symbols are there everywhere.

Are you sure? Check your ~/Library/Audio/Plug-Ins/VST and /Components, those are the versions stripped

It doesn't copy the AU to the Components folder, so probably that's the problem. What should I do?