Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode cannot locate localized info.plist

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?

like image 730
ohho Avatar asked Aug 05 '13 07:08

ohho


1 Answers

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";
like image 91
Toploulou Avatar answered Sep 22 '22 00:09

Toploulou