Skip to content

Instantly share code, notes, and snippets.

@nroberson
Created May 15, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nroberson/95e0a549a812e0dddb79 to your computer and use it in GitHub Desktop.
Save nroberson/95e0a549a812e0dddb79 to your computer and use it in GitHub Desktop.
Xcode run script that allows an app that also includes static libraries to be archived properly.
#!/bin/sh
echo "Removing by-products (that prevent proper archiving)"
echo "$INSTALL_ROOT/Headers"
echo "$INSTALL_ROOT/PrivateHeaders"
rm -fr "$INSTALL_ROOT/usr";
if [ "$INSTALL_ROOT/Headers" != "/Headers" ]; then
rm -fr "$INSTALL_ROOT/Headers";
fi
if [ "$INSTALL_ROOT/PrivateHeaders" != "/PrivateHeaders" ]; then
rm -fr "$INSTALL_ROOT/PrivateHeaders";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment