Skip to content

Instantly share code, notes, and snippets.

@zhigang1992
Created July 11, 2016 12:54
Show Gist options
  • Save zhigang1992/0954d304217d3f91ae56b0a2ea619796 to your computer and use it in GitHub Desktop.
Save zhigang1992/0954d304217d3f91ae56b0a2ea619796 to your computer and use it in GitHub Desktop.
#!/bin/sh
dest="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/"
installed="$dest/installed"
echo $1
if [ "$1" == "--reset" ]; then
pushd "$dest"
for F in $(cat ./installed) ; do
echo $F
rm -r $F
done
echo "Cleared all custom frameworks"
rm ./installed
exit 0
fi
cp -r "$1" $dest
echo "$(basename $1)" >> "$installed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment