缺少 Info.plist 键
Missing Info.plist key
我需要将这些提示国际化,但我明白了!有什么想法吗?
我也遇到这种错误。
我想你可以这样描述消息。
我认为这对你有帮助。
您应该使用 InfoPlist.strings
文件来本地化 Info.plist
的值。为此,转到 File->New->File
,在 iOS 的资源选项卡下选择字符串文件,将其命名为 InfoPlist
,然后创建。打开并插入要本地化的 Info.plist
值,例如:
"NSLocationWhenInUseUsageDescription" = "Description of this";
编辑:
select 本地化选项,或根据需要启用本地化,
您应该也能在左侧编辑器中看到该文件。
If you want to internationalize tips here is the good Stack overflow answer
in short after adding info.plist string file for respective language, you can localize just like this.Add your respective permisstion key with appropriate description.
NSLocationAlwaysUsageDescription = "请打开【定位服务】允许 Your App 确定您的位置。";
我需要将这些提示国际化,但我明白了!有什么想法吗?
我也遇到这种错误。
我想你可以这样描述消息。
我认为这对你有帮助。
您应该使用 InfoPlist.strings
文件来本地化 Info.plist
的值。为此,转到 File->New->File
,在 iOS 的资源选项卡下选择字符串文件,将其命名为 InfoPlist
,然后创建。打开并插入要本地化的 Info.plist
值,例如:
"NSLocationWhenInUseUsageDescription" = "Description of this";
编辑:
select 本地化选项,或根据需要启用本地化,
您应该也能在左侧编辑器中看到该文件。
If you want to internationalize tips here is the good Stack overflow answer
in short after adding info.plist string file for respective language, you can localize just like this.Add your respective permisstion key with appropriate description.
NSLocationAlwaysUsageDescription = "请打开【定位服务】允许 Your App 确定您的位置。";