This problem is very similar to this one: Xcode 4 Preview 4 displays "Build Succeeded" but with errors
The different solutions proposed at the link doesn't work. I tried using product clean, deleteing the Derived Data, restart XCode and the Mac, but the problem still appears.
It seems that all the error are linked to the project's precompiled header : although the PCH is working fine and has no error in itself, the errors reported look like the pch is not found for this specific file. Also sometimes, while the build progresses, the errors appear and disappear randomly. Anyone have an idea on this?
The error only appear in the file(s) opened in the editor. If I close the file's in xcode but keep the project open, then no error are reported at all.
Cleaning, closing, restarting - none worked for me.
A simple touch/edit to the pch file in question resolved the issue.
Have you tried cleaning the build folder?
In XCode, open the Product menu then hold down option. Clean should change to Clean Build Folder.
Edit:
You can also press ⌘ + ⌥ + ⇧ + K
I had this same issue, and neither types of cleans helped. I also tried deleting the build folder, restarting xcode, etc and for me what finally solved the issue was to remove the files that the errors referenced and re-add them.
Additionally, I investigated the error after the fact, and the issue seems to be XCode's "Show Live Issues" feature. (This can be unchecked in the preferences, this also solved the issue but was unsatisfactory as a solution as I've grown to enjoy xcode's live code sense.)
Cleaning the product folder and restarting didn't help me. I started seeing this after I deleted the DerivedData folder. I was able to "fix" by doing :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With