Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

choose info.plist file

I have localized my Info.plist file, because I have to have different names for the app in different languages.

Since I did that, the project window shows this button: choose info.plist file.

enter image description here

If I click this button a window pops up with no choices. And worst than that, the project will not compile, giving an error error: could not read data from '/Users/user/Documents/myApp/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.

In fact the message is correct, because Xcode removed it from that location and added a copy of Info.plist to every localized directory (en.lproj, PT.lproj, etc.).

So... how do I fix this?

like image 920
Duck Avatar asked Feb 05 '13 21:02

Duck


People also ask

How do I change info plist on Mac?

plist file. If you need to edit these items, Control-click (or right-click) Info. plist in the sidebar and select Edit Manually. This allows you to add or edit items in raw XML format.

What is the info plist file?

plist file. When you use Dynatrace, the Info. plist file stores your app identification and configuration keys.

What kind of settings would you store in your info plist file?

Suggested approach: The Info. plist file stores settings that must be available even when the app isn't running. You could talk about custom URLs, privacy permission messages, custom fonts, whether the app disables background running, and so on.


1 Answers

After fighting with Xcode, the only solution that works is this: http://useyourloaf.com/blog/2010/12/15/localize-iphone-application-name.html

You cannot localize Info.plist as I did. you have to create a strings file and localize that. Some magic links the the strings file to the info.plist.

like image 116
Duck Avatar answered Oct 16 '22 02:10

Duck