0

I have a file that shows up in "Open Quickly" on Xcode and shows up no place in the project if I do "Reveal in Project Navigator". It does compile correctly into several targets.

If I add the file to the project, the project cannot compile because the file is already included. How can I find this inclusion?

Note: The file does NOT show up in "Open Quickly" on App Code, but I can navigate to it via Command-B.

Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421

2 Answers2

4

In AppCode you can use Navigate | File... (Cmd+Shift+O) and check Include non-project files - the file should be shown in the list.

Also, you can open the file in editor, switch navigator to Files mode and use Navigate | Select in... (Alt+F1) | Project View - the file will be shown in its actual location. After that use Manager Targets action from context menu to see what targets this file belong to.

Anton Makeev
  • 1,084
  • 9
  • 6
0

This bizarre situation happens because you are importing a .m file in one of your #import statements. If you fix this, the project will no longer compile, because the file will not be automatically included.

Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421