我本地化了Info.plist:
我收到了这个构建错误:
error: could not read data from '/Users/cherif/Apps/Wesh/Info.plist':
The file “Info.plist” couldn’t be opened because there is no such file.
实际上现在有两个Info.plist文件:
fr.lproj/Info.plist
Base.lproj/Info.plist
如何本地化Info.plist路径?
答案 0 :(得分:23)
回滚这些更改,将InfoPlist.strings文件添加到项目中,对其进行本地化,然后将所需的密钥添加到项目中。例如:
"CFBundleDisplayName" = "App display name";
"CFBundleName" = "App bundle name";
答案 1 :(得分:1)
到本地化的Info.plist:
“ NSLocationAlwaysAndWhenInUseUsageDescription” =“ blabla”;
“ NSLocationAlwaysUsageDescription” =“ blabla2”;
就可以了,您已经本地化了info.plist文件!