Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding build settings in a secondary .plist



On 2008-02-22, at 13:42:04, Rainer Brockerhoff wrote:

I have a somewhat complex project where I include a secondary .plist file (meaning, it's not any target's primary info.plist. Currently I copy this into its proper place in a custom build script phase.

It's becoming a hassle to keep this file synchronized with settings and I'd like to expand these settings automagically like happens for the main info.plist when INFOPLIST_EXPAND_BUILD_SETTINGS is on.

Now, this seems to happen by calling an internal pseudo-tool which appears in the build log as <com.apple.tools.info-plist-utility>. This appears to be implemented inside the private DevToolsCore framework and I couldn't find out how to call it from my build script.

I had hopes of just being able to put an extra line into my script, like:
/path/to/info-plist-utility "$SOURCE_ROOT/Special.plist" - expandbuildsettings -o "$UNLOCALIZED_RESOURCES_FOLDER_PATH/ Special.plist"
but since there's no real tool, I don't know what to do.

Is this possible with the current Xcode 3.0 or should I file an enhancement request? Any workaround?

I think you could use the 'defaults' tool to write the values to the secondary plist after it is copied to the proper location. This would be in the same build script phase. When accessing a property list file using a full path for use with 'defaults', don't include the .plist extension.



Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Expanding build settings in a secondary .plist (From: Rainer Brockerhoff <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.