• 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
Xcode 101 (Was: try/catch/throw/finally example?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 101 (Was: try/catch/throw/finally example?)


  • Subject: Xcode 101 (Was: try/catch/throw/finally example?)
  • From: j o a r <email@hidden>
  • Date: Sun, 27 Aug 2006 15:06:53 +0200


On 27 aug 2006, at 14.21, Roland Silver wrote:

I haven't a clue as to how to set things up to have a single target, "UObject", and use the Debug and Release configurations, rather than having multiple targets that generate the same thing.

In fact, I don't even understand the significance of what you're suggesting.

Is there some "Xcode 101" that I missed attending? :-)

A quick conceptual overview:

[*] An Xcode Project is a container for "Targets".

[*] A Target creates a single product (with the exception of some special type of targets that you can ignore for now). A Target contains references to files (source files, resource files, etc.) and "does it's work" using a set of "Build Phases", for example it will typically compile source files and assemble them to create an application bundle. In the "Groups & Files" pane in the Xcode Project window you can expand a target to show it's build phases.

[*] When you compile source files, Xcode passes "Build Settings" to the compiler + linker. Typically you have a number of distinct ways you would like to tweak your builds, for example Release builds and Debug builds. To cater to this, Xcode allows you to create sets of Build Settings, called "Build Configurations". When you create a new Xcode Project you get a "Release" Build Configuration and a "Debug" Build Configuration set up automatically. These are basically just named containers for Build settings, you can create more of them, or rename them, as you see fit.

So, back to your question: If you want to create two different products (For example: A framework and an application), you create two different Targets. If you on the other hand have one product that you want to tweak in a number of different ways (For example: Release and Debug builds), you create a single Target and the appropriate Build Configurations.

Some additional information:

[*] As an alternative to creating a Target per product, you can also create a full Project for each product, and then chain the Projects together using "Project References" -> Check the Xcode documentation for more info.

[*] You can assign Build Settings to Targets, or to all targets by setting them on the Project level. Build Settings actually form a hierarchy -> Again, check the docs. for more info.
Besides using the Build Settings hierarchy to control your Build Settings, you can also share Build Settings between Targets / Projects using "xcconfig" files -> docs. more. info.


The Xcode documentation is pretty good, give it a try!
The Xcode-Users mailing list is probably better for these questions.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >try/catch/throw/finally example? (From: Roland Silver <email@hidden>)
 >Re: try/catch/throw/finally example? (From: Todd Yandell <email@hidden>)
 >Re: try/catch/throw/finally example? (From: Roland Silver <email@hidden>)
 >Re: try/catch/throw/finally example? (From: Chris Hanson <email@hidden>)
 >Re: try/catch/throw/finally example? (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: Re: NSData dataWithContentsOfMappedFile with huge files?
  • Next by Date: Re: how to display a window from separate nibs?
  • Previous by thread: Re: try/catch/throw/finally example?
  • Next by thread: Re: try/catch/throw/finally example?
  • Index(es):
    • Date
    • Thread