Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Copy Bundle Resources and Copy Files for Xcode build phases?

Tags:

Could someone explain the difference between the Copy Bundle Resources phase of Xcode and a Copy Files phase? When would I use "Copy Files"?

like image 348
Ben Flynn Avatar asked Jun 22 '12 19:06

Ben Flynn


People also ask

Where is copy bundle resources in Xcode?

You're in the Build Settings tab, Build Phases is next to it. It will be a list of phases that includes Copy Bundle Resources .

How do I remove copy bundle resources in Xcode?

To resolve this warning, select your Info. plist from the Copy Bundle Resource build phase as shown in Figure 1, then click the Remove (–) button to delete it from the phase.


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

like image 149
Alladinian Avatar answered Oct 14 '22 10:10

Alladinian


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

Vocablurary

like image 25
yoAlex5 Avatar answered Oct 14 '22 08:10

yoAlex5