Re: Info.plist Preprocessing still doesn't work for Tools
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