In my case, Xcode recovered the files so there were two file references.
In project navigator (CMD+1), search the file name appearing in the build error.