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.

4

2 回答 2

4

在 AppCode 中,您可以使用Navigate | File... (Cmd+Shift+O)并检查Include non-project files- 文件应显示在列表中。

此外,您可以在编辑器中打开文件,将导航器切换到Files模式并使用Navigate | Select in... (Alt+F1) | Project View- 文件将显示在其实际位置。之后使用Manager Targets上下文菜单中的操作来查看该文件属于什么目标。

于 2013-06-19T06:50:08.023 回答
0

发生这种奇怪的情况是因为您在其中一个#import语句中导入了一个 .m 文件。如果您修复此问题,项目将不再编译,因为该文件不会自动包含在内。

于 2013-06-17T16:32:40.043 回答