Could someone explain the difference between the Copy Bundle Resources
phase of Xcode and a Copy Files
phase? When would I use "Copy Files"?
2 Answers
Copy Bundle Resources
phase copies files that you want to be available in your bundle (.app). On the other hand Copy Files
phase copies files to other (standard) locations accessible from your application (for example to /Library/Fonts) giving you also the option to copy them only when installing. You can also see relevant documentation here

- 34,483
- 6
- 89
- 91
-
1Thanks. Is this not relevant to iOS products then? Seems like with iOS everything would have to go in the bundle. – Ben Flynn Jun 22 '12 at 21:05
-
1No it is not ios specific and yes the most common scenario I can think of for ios would be to copy files into the bundle. – Alladinian Jun 22 '12 at 21:13
-
1@AndrewKoster Thanks for that. I have updated the link – Alladinian Mar 19 '19 at 21:45
Xcode Copy Files vs Copy Bundle Resources
Copy Files
- Copies files from a project to an external specified location.
It is useful, for example, when you are creating an Objective-C Static Library
where you should expose .modulemap
[About] or/and umbrella.h
[About] files
Copy Bundle Resources
- Copies files that support your source code into internal structure. If you want to make sure the files you added will get copied to the application bundle
It is useful, when you are creating an app
where you can add images and other resources

- 29,217
- 8
- 193
- 205