This error can occur when you rename files outside of XCode.
To solve it you can just remove the files from your project (Right Click – Delete and “Remove Reference”).
Then after you can re-import the files in your project and everything will be OK.