2

First time poster, this site is invaluable for answering my questions - so thanks to everyone who contributes!

I have an Xcode 4 project with multiple nested projects (which build as libraries for the main project). Everything is working fine but one step baffles me:

How does it know what configuration to build (and link) for the nested projects? For example my main app has a Distribution configuration. I want it to build and link against the nested projects' Release configurations. And it does!!! but how does it know that? I can't find anywhere where I would specify it.

After scouring the internet to no avail - I'm thinking it might be using magic...

Paul R
  • 208,748
  • 37
  • 389
  • 560
trapzz
  • 21
  • 1
  • I'm dying to know this too. I've stopped creating custom configurations because I don't believe in magic. – cduhn Apr 08 '11 at 07:29

1 Answers1

0

I may have a solution to your question:

If you look at the scheme settings of your included frameworks, they by default have defined Release as configuration to use when you build for Archive. Would be possible that Xcode uses this setting when you build your main project for Archive (and would actually make sense).

(For me this doesn't work, won't find the headers, maybe you have an idea?)

Community
  • 1
  • 1
Pascal
  • 16,846
  • 4
  • 60
  • 69
  • I appreciate the feedback - unfortunately that's not it either :-\ I'm not building for archive...and even so I actually have multiple nested projects, some of which have a 'Distribution' configuration which Xcode knows to use instead of 'Release'. Bizarre! btw. I'm sorry I don't have an idea for your questions - I haven't seen that error myself. – trapzz Mar 26 '11 at 03:49