Skip to content

Instantly share code, notes, and snippets.

@marknorgren
Created April 18, 2012 19:39
Show Gist options
  • Save marknorgren/2416015 to your computer and use it in GitHub Desktop.
Save marknorgren/2416015 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