My notes when you need to nuke xcode
- Go to xcode -> file -> Project settings
- Click the arrow next to which appears /Users/apple/Library/Developer/Xcode/DerivedData
- Select the Derived data and move it to Trash. Terminal:
rm -rf ~/Library/Developer/Xcode/DerivedData
- Quite the xcode and reopen it.
- Clean the project and run again.
Above steps should give you a clean xcode.