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
I was facing this issue. Deleting moduleCache and restarting Xcode & Mac did not help me to resolve the issue.
Solution that worked for me: I copied the path "/private/var/folders/5s/1q3qz48j6zxc028txvdyqhwr000btt/C/org.llvm.clang/ModuleCache" in Finder->Go to folder, deleted all the folders from that ModuleCache.
Now I am able to build successfully.