• 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 still doesn't work for Tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist Preprocessing still doesn't work for Tools


  • Subject: Re: Info.plist Preprocessing still doesn't work for Tools
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 17 Oct 2013 09:18:36 -0700

Since no one corrected me, I've filed another bug on this.

Please feel free to copy and paste from my Bug 15251525 when piling on :)

STEPS TO REPRO

1.  In Xcode, create a Cocoa Command-Line Tool target.
2.  In Build Settings, switch on "Info.plist Preprocessing" and "Expand Build Settings in Info.plist File"
3.  In Build Settings, add several User-Defined Build Settings, for example:
       DOCUMENT_DISPLAY_NAME = "My Document"
3.  In the target's Info.plist, use some of these user-defined build settings as values, for example,
       ${DOCUMENT_DISPLAY_NAME}
4.  Build the product.
5.  Extract the embedded Info.plist from the file by using otool, and then xxd to convert it to ASCII.  Example command:
       otool -s __TEXT __info_plist /Users/jk/Library/Developer/Xcode/DerivedData/MyProject-erjwkdhjpeurpyadfanfvztysloib/Build/Products/Debug/MyHelper | xxd -r

EXPECTED:

In the extracted Info.plist, macros like ${DOCUMENT_DISPLAY_NAME} should be replaced with their values from Build Settings.

ACTUAL:

Macros like ${DOCUMENT_DISPLAY_NAME} appear in the extracted Info.plist with no replacement.

VERSION:

Xcode Version 5.0 (5A1413)



 _______________________________________________
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 still doesn't work for Tools? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: iOS7 Control Center Documentation ?
  • Next by Date: Programmatically take a heap shot in Instruments?
  • Previous by thread: Info.plist Preprocessing still doesn't work for Tools?
  • Next by thread: iPad app running in 2X mode
  • Index(es):
    • Date
    • Thread