Reputation: 663
I've found that I get duplicate files in the Xcode manager. They appear to point the same file in finder. My first thought is that this was created when one of my colleges was, incorrectly, fixing a conflict in the source control. I'm not sure how to fix the problem. When I try simply deleting a duplicate Xcode crashes. I've filed this buy with apple. However I would like to remedy this problem in the meantime.
Thank You.
Upvotes: 3
Views: 2290
Reputation: 846
I had the same problem. That helped me: I moved all duplicated files in some other folder in Finder -> all files in project were red. Then I simply deleted the files from project, copied the files in the project folder and added them to project again.
Upvotes: 0
Reputation: 22948
Select one of the CMPortfolio.h
files and one of the CMPortfolio.m
files (one of the references, rather) and press the delete key. When asked whether you want to remove the references or actually move the files to the Trash, choose Remove References
. This should remove the duplicate references while not touching the actual files on disk (which allows the remaining reference to each file to be valid).
Upvotes: 1
Reputation: 2762
I don't see any duplicates in your list. Every class comes with a .h and a .m file (there are exceptions). Long story short, there's not a problem with the image you posted.
Upvotes: 1