Since XCode 9, I've been seeing build errors hang around after they're fixed. It's very annoying because they obscure actual build errors.
For example, a cocoapod was not in the right place, so the import statement was flagged. I fixed the dependency, ran the app, it ran fine, but the build error persisted for several more runs until I ran in a different simulator.
Cleaning the build folder (even with OPTION key)did not help.
Is there some other way to clear build errors?