Question

I cannot find the answer for this question anywhere. I'm new to Xcode. I have developed two multilanguage iPhone apps and cannot upload them to iTunes Connect because I'm getting the famous error "the value for the info.plist key cfbundlelocalizations is not of the required type for that key". Everybody says that it's because I need to put there an array of values, but I don't know how to do it. If I need for example, English and French, what should I to put there? Something like this (0=en, 1=fr)?

Was it helpful?

Solution

The plist editor in Xcode seems to insist that it should be a string... if you want an array, try opening the plist file in a text editor, and adding this after a value:

    <key>CFBundleLocalizations</key>
    <array>
        <string>English</string>
        <string>French</string>
    </array>

so your plist would look like this:

...
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>     
    <key>CFBundleLocalizations</key>
    <array>
        <string>English</string>
        <string>French</string>
    </array>
...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top