Xcode Various resources for different purposes

I am developing an application for the iPhone, and will be complete, as well as the Lite version of this application. To get both packages from the same source code and xcode project, I added one more target to the xcode project.

Now I want the Lite target to copy only a subset of the resource files into the package. But xcode will not just let me delete individual files from the “Copy files to package” build phase, since I imported all my resources as folder links. I need this to maintain a directory structure in a resource directory.

How to solve this problem? Any suggestions or ideas are welcome!

Flo

+6
reference resources xcode target
source share
2 answers

In the left pane of Xcode, right-click in the Groups and Files pane at the top. Check out Target Membership.

You will now see a checkmark against each file that should be included in your current build target. Drop those that you do not need, switch to another target and repeat.

+7
source share

Instead of manipulating the “Copy Stock Resources” step of your target, you can right-click files or resource groups (folders), select “Get Information” and selectively leave the material from your Lite assembly under the “Goals” tabs and the information window for the selected you files. Doing this in a group (folder) repeats the changes, so using resource groups (folders) is an easy way to create separate resource collections for individual assemblies.

+4
source share

All Articles