Re: Xcode version specific built targets?
Re: Xcode version specific built targets?
- Subject: Re: Xcode version specific built targets?
- From: "William H. Schultz" <email@hidden>
- Date: Thu, 29 Nov 2007 11:08:13 -0800
Here's an idea:
In your Xcode 2.5 directory, create a symlink that points the 10.5 sdk
to the 10.4u directory.
You could potentially write a shell script that checks for the
existence of the 10.5 sdk and creates a symlink if it does not exist.
Think outside the box. ;)
-------------------------------
Hank Schultz
Cedrus Corporation
http://www.cedrus.com/
On Nov 29, 2007, at 8:03 AM, glenn andreas wrote:
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
_______________________________________________
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