The normal Xcode clearing works for me:
-
Clean build folder (SHIFT + COMMAND + K)
-
Quit Xcode completely
-
Delete the project’s contents in,
DerivedData/{Project Name}_some_hash
The default location is
~/Library/Developer/Xcode/DerivedData
, but if it’s nowhere to be found, check the Derived Data property under, Xcode → Preferences → Locations -
Try again (run Xcode & build)