Environment variable in xcconfig won't expand in Settings.bundle/Root.plist

Posted by AO on Stack Overflow See other posts from Stack Overflow or by AO
Published on 2010-04-14T13:19:56Z Indexed on 2010/04/14 13:23 UTC
Read the original article Hit count: 487

I have defined my own environment variable in a .xcconfig file and based my configurations on that as described at http://www.silverchairsolutions.com/blog/2008/03/automating-cocoa-deployments-with-sparkle-and-xcode. My environment variable is indeed expanded in Info.plist but not in my Settings.bundle/Root.plist. Why won't it expand there?

Root.plist looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Title</key>
<string>${PRODUCT_NAME}</string>
<key>PreferenceSpecifiers</key>
<array>
    <dict>
        <key>DefaultValue</key>
        <string>${PRODUCT_NAME}</string>
        <key>Key</key>
        <string>version</string>
        <key>Title</key>
        <string>Version</string>
        <key>Type</key>
        <string>PSTitleValueSpecifier</string>
    </dict>
    <dict>
        <key>DefaultValue</key>
        <string></string>
        <key>Key</key>
        <string>atc</string>
        <key>Title</key>
        <string>ATC</string>
        <key>Type</key>
        <string>PSTitleValueSpecifier</string>
    </dict>
</array>

© Stack Overflow or respective owner

Related posts about iphone

Related posts about plist