• 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: proprocessing info.plist files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: proprocessing info.plist files


  • Subject: Re: proprocessing info.plist files
  • From: Steve Mills <email@hidden>
  • Date: Fri, 2 Dec 2005 09:23:48 -0600

I figured out what was wrong with part of the Info.plist preprocessing. Because using $PRODUCT_NAME in my Info.plist doesn't get substituted during preprocessing like it's supposed to, I defined a customer variable in the target's Info.plist Preprocessor Definitions as:

MY_PRODUCT_NAME $(PRODUCT_NAME)

PRODUCT_NAME is set to "MultiAd Creator Pro DB" in this target. Now what I see in the build transcript is this:

/usr/bin/gcc -E -P -x c -Wno-trigraphs -DMY_PRODUCT_NAME\ MultiAd - DCreator -DPro -DDB -DBETA_OR_DEBUG_BUILD <snip>

Something is not correctly escaping the value of PRODUCT_NAME. So MY_PRODUCT_NAME is defined as "MultiAd", then 3 extra definitions named "Creator", "Pro", and "DB" (which end up being defined as "1", so every other place in my Info.plist where the string "Creator" appears I instead see a "1"). Is this a bug or am I doing it wrong?

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Prev by Date: Re: XCode SCM and Passwords
  • Next by Date: Find results in new window, possible?
  • Previous by thread: Re: proprocessing info.plist files
  • Next by thread: Data Formatters in 2.2
  • Index(es):
    • Date
    • Thread