Maybe this helps someone. It’s a post build script that works with the new xcode projects created with projucer. Any input and improvements are welcome!
TARGET=`echo $TARGET_NAME | sed 's/^.*(\(.*\)).*$/\1/g'`
if [ $TARGET = App -o $TARGET = All ]; then
if [ -d "/Library/Application Support/Avid/Audio/Plug-Ins" ]; then
AAXORIG="/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin"
AAXCOPY="/Library/Application Support/Avid/Audio/Plug-Ins/$PRODUCT_NAME.aaxplugin2"
cp -r "$AAXORIG" "$AAXCOPY"
if [ -d "$AAXORIG" ]; then
rm -r "$AAXORIG"
fi
// add your wrap code here
rm -r "$AAXCOPY"
fi
fi