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: Fri, 6 Feb 2009 17:16:02 -0800
Hello all,
I have two completely projects (one builds a Cocoa application, the
other an InDesign plug-in) which share versioning information. 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:
INFOPLIST_EXPAND_BUILD_SETTINGS = YES
INFOPLIST_FILE = Application-Info.plist
INFOPLIST_OTHER_PREPROCESSOR_FLAGS =
INFOPLIST_OUTPUT_FORMAT = same-as-input
INFOPLIST_PREFIX_HEADER = versions.h
INFOPLIST_PREPROCESS = YES
INFOPLIST_PREPROCESSOR_DEFINITIONS =
where only the INFOPLIST_FILE is different between the projects.
The problem I am having is that Xcode doesn't seem to rebuild the used
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 looks
something like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string>1.0fc4, © 2008-2009 Xinet Inc.</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.xinet.webnative.browser</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0fc4</string>
<key>CFBundleSignature</key>
<string>WN-B</string>
<key>CFBundleVersion</key>
<string>1.0fc4</string>
...
</dict>
</plist>
which looks like it has been been pre-processed but has not had the
build settings expanded yet.
Any idea how I can force Xcode to rebuild Info.plist when I change
something in the INFOPLIST_PREFIX_HEADER?
Thanks,
Nick
--
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