In Xcode you will need to remove the intermediate build information at some point. If you are having build issues, removing derived data works like magic.
Keyboard shortcut in Xcode:
Shift+Alt+Command+K
Command line:
rm -rf ~/Library/Developer/Xcode/DerivedData