• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question: using targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Newbie question: using targets
      • From: Jens Alfke <email@hidden>
References: 
 >Newbie question: using targets (From: DKJ <email@hidden>)

  • Prev by Date: Re: Newbie question: using targets
  • Next by Date: How to ensure that nested project targets get built ?
  • Previous by thread: Re: Newbie question: using targets
  • Next by thread: Re: Newbie question: using targets
  • Index(es):
    • Date
    • Thread