I had a file which I deleted and replaced with another file, somewhere else, of the same name.
Despite cleaning, and trying this multiple times, I keep getting this
I use quite a few cocoa pods and have just had this happen to me. A quick "pods update" sorted things out for me. -phil