Re: Newbie question: using targets
Re: Newbie question: using targets
- Subject: Re: Newbie question: using targets
- From: Ken Thomases <email@hidden>
- Date: Fri, 2 Oct 2009 00:04:13 -0500
On Oct 1, 2009, at 11:42 PM, DKJ wrote:
I've never coded a multi-target application before. But now I want
to build different versions of the same application for different
customers. So each version would e.g. have a different nib for the
initial interface, download different data files from the internet,
and so on. But most of the classes would be the same.
Should I be defining different targets to implement these
application versions? Or should I have a different project for each
version?
Using targets is probably easier than different projects. For some
purposes, you may be able to get away with just different
configurations for the same target.
A configuration is a set of build settings. If the differences can be
expressed just with build settings -- a particularly powerful one is
Preprocessor Macros -- then you don't have to create a new target.
A target is a set of input files and the steps applied to them to
produce an output product. Since you need at least some of your
versions to differ by which nibs are included, you would create
different targets for this.
Unfortunately, Xcode doesn't really have good support for maintaining
several similar targets which are based on some common "prototype"
target. Once you duplicate a target, the two targets are
independent. If you later find that you need to make a change that's
common to all of the targets which descended from your original, you
have to apply it individually to each.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden