Skip to content

Instantly share code, notes, and snippets.

@wooster
Created March 30, 2011 18:34
Show Gist options
  • Save wooster/894962 to your computer and use it in GitHub Desktop.
Save wooster/894962 to your computer and use it in GitHub Desktop.
Build phase for copying a bundle into an app
#!/bin/sh
if [ -d "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME/foo.bundle" ]; then
rm -rf "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME/foo.bundle"
fi
if [ -d "$BUILT_PRODUCTS_DIR/foo.bundle" ]; then
mv "$BUILT_PRODUCTS_DIR/foo.bundle" "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME/"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment