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)
So it seems the only way to fix this issue is to uninstall Xcode and download it again. This fixed my problem.