xcode clean derived data command line

Shell
rm -fr ~/Library/Developer/Xcode/DerivedData/*
Source

Also in Shell: