• 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: Can I pass some value to a sub-project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I pass some value to a sub-project?


  • Subject: Re: Can I pass some value to a sub-project?
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 28 Feb 2011 17:11:11 +0100

On 24.02.2011, at 16:54, David Hoerl wrote:
> I have an Xcode project that includes a subproject (which builds a static library for the iPhone).
>
> I would dearly love the ability to pass a compile time flag (ie -D"FOO") but have had no luck. User-defined settings don't get passed along nor do the C Flags.
>
> Is there a way to do this?

 Do you really need to pass a flag? IIRC if you have build configurations with the same name, and one project builds the other as a dependency, it will choose to build with that build configuration. So you might be able to make it work by choosing a different build configuration name that both of them share, instead of "Debug" or "Release".

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com



 _______________________________________________
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

References: 
 >Can I pass some value to a sub-project? (From: David Hoerl <email@hidden>)

  • Prev by Date: How do I keep added folders current in my Xcode project?
  • Next by Date: Memory Allocation Question
  • Previous by thread: Re: Can I pass some value to a sub-project?
  • Next by thread: 4.2 compiler problems
  • Index(es):
    • Date
    • Thread