如何编译源从一个目标复制并粘贴到另一个文件? [英] How to copy and paste files in Compile Sources from one target to another?
问题描述
我已经有某些文件的主要目标包括它的目标下 - >构建阶段 - >编译源。我开始一个单元测试,并希望单元测试,包括相同的文件为主要目标。有没有一种方法来复制并包含在一个目标的文件粘贴到另一个目标?
I have a main target that have certain files included under its target -> Build Phases -> Compile Sources. I'm starting a unit test and would like the unit test to include the same files as the main target. Is there a way to copy and paste the files included in one target to another target?
推荐答案
您可以编辑你的.pbxproj文件PBXSourcesBuildPhase部分。
你C和通过查找到您的.X codeproj文件的文件(右键单击该项目文件+显示包内容)。
你以后找到文件寻找PBXSourcesBuildPhase。你发现后,你可以只复制集合/粘贴源文件从一个目标到人。
You can edit the PBXSourcesBuildPhase section in your ".pbxproj" file. You cand find the file by looking into your ".xcodeproj" file ( right click the project file + show package contents ). After you find the file look for "PBXSourcesBuildPhase". After you find the collection you can just copy/paste source files from one target to the others.
这篇关于如何编译源从一个目标复制并粘贴到另一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!