- Launch Simulator
- Device → Erase All Content and Settings...
Delete content of: ~/Library/Developer/Xcode/DerivedData/
In the terminal:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
You can create an alias, if you have ZSH w/ OhMyZsh you can type on your terminal:
echo "alias cleanXcode='rm -rf ~/Library/Developer/Xcode/DerivedData/*'" >> ~/.zshrc
Then delete the content of DeriveData folder by typing on the terminal :
cleanXcode