Skip to content

Instantly share code, notes, and snippets.

@mikaelbartlett
Created April 4, 2012 05:31
Show Gist options
  • Save mikaelbartlett/2298036 to your computer and use it in GitHub Desktop.
Save mikaelbartlett/2298036 to your computer and use it in GitHub Desktop.
Panacea for slow Xcode
#!/bin/sh
for f in $(ls -p ~/Library/Application\ Support/iPhone\ Simulator/| grep '/') ; do
if [ "$f" != 'User/' ]; then
echo "$f"
rm -r ~/Library/Application\ Support/iPhone\ Simulator/$f
mkdir ~/Library/Application\ Support/iPhone\ Simulator/$f
fi
done
rm -r ~/Library/Developer/Xcode/DerivedData
mkdir ~/Library/Developer/Xcode/DerivedData
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment