Two years ago, Brent Simmons introduced ded: a handy little alias to deal with Xcode quirks
alias ded='rm -rf ~/Library/Developer/Xcode/DerivedData'
It has been useful, but since recently it was not enough. Sometimes, Xcode will complain about not being able to use the simulator, even if it’s not running.
Or things will just fail randomly and often, leading to frustration and anger.
Eventually, ded was not enough, so here’s my replacement:
alias fuckxcode="pkill -9 -i 'ios simulator|xcode' && rm -rf ~/Library/Developer/Xcode/DerivedData && open http://www.calm.com/breathe"
And I’ll quote Brent again on Bugs:
In the old days, programmers spent hours and days and weeks working very hard, and sometimes brilliantly, on difficult things that no one had ever done before.
These days, programmers spend hours and days and weeks working very hard, and usually unsatisfactorily, on getting around bugs in their platform.