• 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
Re: Expanding build settings in a secondary .plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding build settings in a secondary .plist


  • Subject: Re: Expanding build settings in a secondary .plist
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 22 Feb 2008 23:30:44 -0700


On Feb 22, 2008, at 2:42 PM, Rainer Brockerhoff wrote:

Howdy all.

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?

This is not easy to do. You could always set up a bogus target just for the purposes of preprocessing the Info.plist, then have a Run Script build phase copy it over, but that's a hack.


The Info.plist file is, as you realize, a build setting that is specially processed by the build system, not general-purpose files to be compiled like sources or resources. I don't know of a mechanism to access Xcode's internal plist processing stages other than through building a target's Info.plist.

Chris
_______________________________________________
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: Expanding build settings in a secondary .plist
      • From: Rainer Brockerhoff <email@hidden>
References: 
 >Expanding build settings in a secondary .plist (From: Rainer Brockerhoff <email@hidden>)

  • Prev by Date: Re: (almost totally) SOLVED: Problems updating a dependent library
  • Next by Date: Re: Expanding build settings in a secondary .plist
  • Previous by thread: Expanding build settings in a secondary .plist
  • Next by thread: Re: Expanding build settings in a secondary .plist
  • Index(es):
    • Date
    • Thread