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.