• 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: Philip Aker <email@hidden>
  • Date: Sat, 23 Feb 2008 03:48:15 -0800

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:
This email sent to email@hidden


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

  • Prev by Date: Re: Expanding build settings in a secondary .plist
  • Next by Date: Xcode has no rule to process .xib files in one of my projects
  • Previous by thread: Re: Expanding build settings in a secondary .plist
  • Next by thread: Re: Expanding build settings in a secondary .plist
  • Index(es):
    • Date
    • Thread