The selected answer did not work for me, it made my assembly crash (Xcode 4.6.3) when trying to run on the simulator.
Based on Yano's answer and on this link in the Pre-action script instead of writing
rm -rf ${BUILT_PRODUCTS_DIR}
I wrote
touch ${BUILT_PRODUCTS_DIR}
This should have the same effect, and it doesn't crash my build
keisar
source share