问题描述
试图将文件添加到项目中!
Trying to add file to the project!
右键单击子文件夹,然后选择将文件添加到projectName.我将所需的文件添加到我的项目中[未选中目标和选定的文件夹,为任何添加的文件夹创建组,然后选择添加到Targerts projectNameTest],然后关闭xcode并重新打开!没有出现添加到项目中的文件.然后再次右键单击从工作区"选择的项目中添加文件,然后将其添加到项目中(重复相同的场景),然后关闭xcode静止文件从我的工作区中消失.
Right click on the subfolder and selected add file to projectName. I added file which are required into my project[Destination unChecked and selected folders Create groups for any added folders and selected Add to Targerts projectNameTest], and close the xcode and reopen! the file which are added to the project is not appear's. Then again right clicked on the project selected add file's from 'workspace' and add to project [repeated same scenario] And close the xcode still files are disappearing from my workspace.
每次我都需要从工作空间中一次又一次地添加文件.当我关闭Xcode时. 我需要为这个问题做些什么,因此当我打开Xcode时,文件需要显示在我的工作区中
each time i need to add the file again and again from the work space. When I close the Xcode. what i need to do for this issue so When i Open Xcode the files need to be appears into my workspace
推荐答案
当我需要向项目中添加额外的源文件时,通常要做的是:
What i do generally when I need to add extra source files to my project is :
1.将文件从源拖到我的项目中.
2.我在将项目复制到目标组的文件夹(如果需要)"选项中添加了刻度线.
3.现在,我可以将添加的文件播种到我的项目中了.
希望!!这会有所帮助.
Hope!! this helps.
这篇关于将文件添加到Xcode项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!