Xcode 4.2如何自动编译拖到项目中的源文件?

时间:2023-01-13 20:14:26

A quick question,

一个小问题,

Up to date, all of my Xcode 4.2 projects automatically compiled everything that I dragged into the list of sources on the left. But recently this stopped happening. The files that I drag into the project just sit there, and I have to manually add them to the project>build phases > compile sources.

到目前为止,我的所有Xcode 4.2项目都自动编译了我拖到左边的源代码列表中的所有内容。但最近这种情况不再发生了。我拖到项目中的文件就放在那里,我必须手动将它们添加到项目>构建阶段>编译源代码中。

How can I restore the Xcode's ability to automatically compile everything that I drag and copy into the project?

如何恢复Xcode自动编译我拖放到项目中的所有内容的能力?

Thank you!

谢谢你!

1 个解决方案

#1


4  

Whe you drag files into the Project Navigator, you get a confirmation window where you can select the targets to which to add the files. Make sure the check box is checked.

将文件拖到项目导航器中,您将获得一个确认窗口,您可以在其中选择要添加文件的目标。确保选中复选框。

Xcode 4.2如何自动编译拖到项目中的源文件?

#1


4  

Whe you drag files into the Project Navigator, you get a confirmation window where you can select the targets to which to add the files. Make sure the check box is checked.

将文件拖到项目导航器中,您将获得一个确认窗口,您可以在其中选择要添加文件的目标。确保选中复选框。

Xcode 4.2如何自动编译拖到项目中的源文件?