madmik3
madmik3

Reputation: 6983

Xcode incorrectly reporting missing files

I had some files that I removed from my project. They don't show up anywhere when I grep the directory for files or the text inside of the files in my source but when I build my project it reports missing files as warnings. Cleaning and restarting the Xcode does not help.

Any ideas on where to look?

Upvotes: 26

Views: 28841

Answers (4)

kalmiya
kalmiya

Reputation: 3126

Got this error in xcode 8.0 with a git repository. Wanted to split code into a different file - so duplicated the file, added it to the project and then removed most code from the original file. At this point XCode showed an 'i' (missing file) in the project navigator but compiling the project works fine. You can't commit with xcode however since it will show the "missing" file as non-existent in the commit-dialog (even though it is clearly there, selectable and editable in the project navigator).

Easy fix was to just commit all changes externally with sourcetree. The moment it was committed, everything worked fine again in xcode.

Upvotes: 0

Scott
Scott

Reputation: 17047

Check out this post for how to get this warning to go away: Missing file warnings showing up after upgrade to XCode 4

Upvotes: 2

madmik3
madmik3

Reputation: 6983

it seems like the issue was related to the files being added but not committed to my svn repository. when i removed them from being added the warning went away.

Upvotes: 53

Tatvamasi
Tatvamasi

Reputation: 2547

just check if Delete an unreferenced image from repository in Xcode can help;
try to delete the app and rebuild.

Upvotes: 1

Related Questions