Info.plist preprocessing and header dependency
Info.plist preprocessing and header dependency
- Subject: Info.plist preprocessing and header dependency
- From: Nick Beadman <email@hidden>
- Date: Thu, 19 Mar 2009 13:47:29 -0700
Hello all,
I have two completely different projects (one builds a Cocoa
application, the other an InDesign plug-in) which share versioning
information and are in the same folder. I have a single header file
"versions.h" that I share between the two projects and is included in
both projects but in no targets in either.
I set up the following settings in both of the projects:
Expand Build Settings in Info.plist File [1] = YES
Info.plist File [2] = Application-Info.plist
Info.plist Preprocessor Prefix File [3] = versions.h
Preprocess Info.plist File [4] = YES
where only the actual Info.plist file is different between the projects.
The problem I am having is that Xcode doesn't seem to rebuild the
final Info.plist when I make a change in versions.h. I notice that in
the build folder there is a Preprocessed-Info.plist file which
contains all of the expansions from versions.h but is still awaiting
build settings expansion.
From this I am concluding that Xcode is not tracking the dependency
between the prefix file and Info.plist file. It is just building the
Info.plist from the Preprocessed-Info.plist file without checking to
see if that file needs to be rebuilt. From looking at the Rules tab of
the target settings plist files are handled by "CopyPlistFile" which I
am wondering if I could customize to fix this issue? Unfortunately, I
can't find the original to determine whether it is a shell script or
executable.
Any idea how I can force Xcode to rebuild Info.plist when I change
something in the Info.plist Preprocessor Prefix File [3]?
Thanks,
Nick
[1] Expand Build Settings in Info.plist File =
INFOPLIST_EXPAND_BUILD_SETTINGS
[2] Info.plist File = INFOPLIST_FILE
[3] Info.plist Preprocessor Prefix File = INFOPLIST_PREFIX_HEADER
[4] Preprocess Info.plist File = INFOPLIST_PREPROCESS
--
Nick Beadman
email@hidden
(sent from my mailing list account, 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