Created
May 15, 2014 14:26
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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