I am trying to use a framework that requires me to add a 'Copy Files build phase' to my target. Does anyone know what this means and how to do it?
Asked
Active
Viewed 3.0k times
4 Answers
94
In Xcode 5, you have to click on your target, then on Editor (menu bar) --> Add build phase --> Add Copy Files Build Phase:

barrast
- 1,791
- 1
- 16
- 27
-
I never would have thought to look in the Editor menu. When I try this, though, the options are greyed out. I guess I'm missing the first item, "click on your target". Where is the target? – Victor Engel Oct 04 '13 at 16:57
-
2Ah. I found it. I had to click on the tiny triangle next to my project name to display the column listing the targets. – Victor Engel Oct 04 '13 at 17:29
-
43There's a bug with Xcode where if the Build Phases tab loses focus all the options will be grayed out. You need to do the following: Click Target Name > Build Phases > Click on whitespace below phases > Editor > Add Build Phase – Paul Solt Oct 08 '13 at 18:51
-
2In my case, clicking "Validate Settings..." helped enable the "Add Copy Files Build Phase" option – grim Dec 04 '13 at 19:16
-
1This is totally out of place. Even more so if you consider that the little "x" to remove a phase is next to each phase. – insys Dec 31 '13 at 19:58
-
jesus, apple.. would never look there! thanks a lot for the solution :) – Alex Kremer Jan 17 '14 at 21:52
-
In Xcode 7.3.1, the menu remains grayed out, regardless of where I click to change the focus. Anyone have any suggestions? – houtanb May 23 '16 at 14:28
24
Right-Click on your target in XCode, select add "new build phase" and then "new copy files build phase".
-
1I'm using xcode 4.6. "New build phase" doesn't seem to be an option when I right-click. Any idea how to do this for xcode 4.6? – Adam May 05 '13 at 00:56
-
18
A "DIY" answer: Go to Xcode --> Help --> type your query, e.g., "add copy". And Xcode helpfully points you in the right direction.

Vivek
- 564
- 4
- 13
7
In Xcode 4, the option is in Editor->Add Build Phase.
The Copy Files build phase then appears in the Project Navigator and you can add things to it by clicking the plus.

Adam
- 959
- 10
- 23