Wrote a quick and dirty script for clearing “nonsense” files with a click.

Copy the contents of this script to a file on your Mac.
Save it to a file named, say, cleanup.sh, preferably in your home directory (or the directory where your terminal opens up by default)
Set execute permissions to it by typing,
chmod +x cleanup.sh

You are done.

Whenever Xcode “misbehaves”, just execute this script. It cleans up your Simulator and derived data directory for you.
Updates welcome.


Follow me on Twitter