• 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 version specific built targets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode version specific built targets?


  • Subject: Xcode version specific built targets?
  • From: glenn andreas <email@hidden>
  • Date: Thu, 29 Nov 2007 10:03:59 -0600

Is it possible to make a target or build object that is dependent on the version of Xcode running?

Basically, I've got a project that has all the 10.5 specific code in a loadable bundle - everything except that target uses the 10.4u SDK, but obviously that target needs the 10.5 SDK. I'd like to be able to build the project on both Xcode 3.0 and 2.5 (running either on 10.5 or 10.4), but because of that one target, 2.5 can't compile it (since the 10.5 SDK isn't part of 2.5, and even when running on 10.5 and pointing explicitly at /Developer/SDKs/10.5 doesn't work due to the whole "#include_next" problems).

At this point, every time I need to build/debug/test on my 10.4 machine I have to manually remove the 10.5 specific bundle target, but then I need to remember to never check the project back in.

What I was thinking was maybe something along the lines of:
1) Make sure that nothing has dependancies on the "105Features.bundle" target
2) Create a new target "105SafeBuilder" that uses a shell script to test which version it is running, and then maybe use xcodebuild to build the "105Features.bundle" target explicitly, make a dummy (empty folder) bundle if it isn't. Since the fake bundle is only for testing on 10.4 (which wouldn't load that bundle anyway), it won't matter that this folder is empty


Would using xcodebuild command line tool on a currently open (and building) project cause problems? What would be the safest way to test if it should try to build the 10.5 target or not? (I'm thinking of testing for the existence of $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk)


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next generation of fractal art




_______________________________________________
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: Xcode version specific built targets?
      • From: "William H. Schultz" <email@hidden>
  • Prev by Date: Re: Building for 10.2.8 with xcode 2.5 on leopard
  • Next by Date: Re: Argghh include quirks
  • Previous by thread: Re: Problem Xcode3.0 build ANT
  • Next by thread: Re: Xcode version specific built targets?
  • Index(es):
    • Date
    • Thread