• 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: Info.plist preprocessing and header dependency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist preprocessing and header dependency


  • Subject: Re: Info.plist preprocessing and header dependency
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 19 Mar 2009 14:21:27 -0700


On Mar 19, 2009, at 1:47 PM, Nick Beadman wrote:

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.

Yes, this is a known bug.

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.

It's a built-in. There's not much you can do about it; if Xcode doesn't compute the dependency, it doesn't run, and you can't run it yourself.


Any idea how I can force Xcode to rebuild Info.plist when I change something in the Info.plist Preprocessor Prefix File [3]?

The simplest way is to delete the Info.plist file in your build product.

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


References: 
 >Info.plist preprocessing and header dependency (From: Nick Beadman <email@hidden>)

  • Prev by Date: XCode2.5 prepending SDKROOT to framework link path
  • Next by Date: Re: Xcode2.5 prepending SDKROOT to framework link path
  • Previous by thread: Info.plist preprocessing and header dependency
  • Next by thread: Best way to launch command-line program from C++ application
  • Index(es):
    • Date
    • Thread