Xcode cannot locate localized info.plist

ohho picture ohho · Aug 5, 2013 · Viewed 10.9k times · Source

After adding a few Localizations:

enter image description here

and localized the (AppName)-info.plist file:

enter image description here

and checked Bundle Resources (also tried to remove Go-info.plist from the Copy Resources Bundle list:

enter image description here

and the file property:

enter image description here

Xcode (4.6.3) give an error:

error: could not read data from '.../Go/Go/Go-Info.plist': The file “Go-Info.plist” couldn’t be opened because there is no such file.

It looks like Xcode ignores the localization folder in the path. It tried to find the info.plist as:

.../Go/Go/Go-Info.plist

instead of:

.../Go/Go/(Localization)/Go-Info.plist

How can I fix it?

Answer

Toploulou picture Toploulou · Aug 5, 2013

I think Info.plist can not be localized. If you want to localize your application Name, you should localize the InfoPlist.strings file and use those keys :

"CFBundleDisplayName" = "AppName";
"CFBundleName" = "AppName";