Search code examples
xcodetargets

What are "targets" in Xcode?


I have seen a lot of things about 'targets' while working with xcode. when i click on the project icon (blue, in xcode 4.2) i see 'Targets' in the middle pane with my file name under it.

What does that mean? and can I add more 'targets' to my project? If yes, what would that mean?

I have this: http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Targets.html

but i didn't understand a thing


Solution

  • A target basically defines what it is you are building and how you are building it. You can add more targets if you would like to build more than one thing. This usually makes sense if you need to build several related things from the same project.

    For instance, you might want one target for a full, paid version of an application, and another target for a reduced, free version of an application. Both targets would include much of the same code and resources, but some of the settings would be different and you might have different files included with each.