I did create a command line tool for my iOS project. I would like the binary to be copied to ~/bin folder, just after a successful compilation and linking. What I did so far is:
cp "${TARGET_BUILD_DIR}/${PRODUCT_NAME}" ~/bin/
entered as a pre-action run script in XCode scheme. I am almost happy with that, only except that I unnecessarily need to run the toole to have it copied. I would prefer to enter the above command as a post-action build script, but only if compilation and linking have both been successful.
Is there a way to put a condition into post-action build script?