Xcode 8 - Missing Files warnings

Alan picture Alan · Sep 26, 2016 · Viewed 49.3k times · Source

Ever since upgrading to Xcode 8 using Swift 2.3 I have several missing files warnings. They are all related to pods that I am using.

The files that are missing are

*.xcscheme 
*.cpp
*.xcuserstate
*.swift

The pods that are showing missing files are

  • Realm (~38 of 43)
  • TextFieldEffects (~3 of 43)
  • BEMCheckBox (2 of 43)

How do I fix this issue?

Answer

matt picture matt · Sep 27, 2016

This is just an Xcode bug. If you delete or rename a file without then doing a commit, Xcode sees the discrepancy between the previous git commit and the current state of things and reports these warnings. They go away as soon as you do a git add that includes the file deletion / rename.