Skip to content

Instantly share code, notes, and snippets.

@saltwat5r
Last active January 25, 2016 16:16
Show Gist options
  • Select an option

  • Save saltwat5r/3de13e76ff57ae496f3a to your computer and use it in GitHub Desktop.

Select an option

Save saltwat5r/3de13e76ff57ae496f3a to your computer and use it in GitHub Desktop.
Xcode projects Run Script for copying files from Build Products dir to Projects parent dir.
if [ ! -d "${PWD%/*}/Build" ]; then
mkdir "${PWD%/*}/Build"
else
rm -rf "${PWD%/*}/Build/Products/$CONFIGURATION$EFFECTIVE_PLATFORM_NAME"
fi
cp -avR "$BUILD_DIR/" "${PWD%/*}/Build/Products"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment