sudo chmod 1777 /Volumes/Macintosh\ HD/private/tmp
sudo chown root:admin /tmp; sudo chmod 1777 /tmp
sudo chown root:wheel /private/tmp; sudo chmod 1777 /private/tmp
xcrun simctl shutdown all
Go to Xcode -> Preferences -> Locations -> Derived Data (Click the little arrow) -> Delete the folder for your project.