So I accidentally modified a header (CBCentralManager.h) and caused the above error to show when I build. I searched stack overflow for the solution, and found
CBCentralManager.h)
You can also try these, clean and then build again
find /var/folders 2>&1 | grep -v 'Permission denied' | grep '\.pcm' | xargs rm find ~/Library/Developer/Xcode/DerivedData 2>&1 | grep -v 'Permission denied' | grep '\.pcm' | xargs rm