CFBundleLocalizations info.plist - How to post multiple languages

I can not find the answer to this question anywhere. I am new to Xcode. I have developed two multilingual iPhone apps and cannot download them to iTunes Connect because I get the well-known error "value for info.plist cfbundlelocalizations key is not a required type for this key." Everyone says that this is because I need to add an array of values ​​there, but I don’t know how to do it. If I need, for example, English and French, what should I put there? Something like this (0 = en, 1 = fr)?

+4
source share
1 answer

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

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

so your plist will look like this:

 ... <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleLocalizations</key> <array> <string>English</string> <string>French</string> </array> ... 
+14
source

Source: https://habr.com/ru/post/978279/


All Articles