简体   繁体   中英

Missing Info.plist key

[1]:https://i.stack.imgur.com/nGCzV.jpg

在此处输入图片说明

I need to internationalize those tips, but i got this!Any idea?

I also face this type of error. I think you can describe the message like this. 在此处输入图片说明

I think it's help for you.

You should use InfoPlist.strings file to localize values of Info.plist . To do this, go to File->New->File , choose Strings File under Resource tab of iOS, name it InfoPlist , and create. Open and insert the Info.plist values you want to localize like:

"NSLocationWhenInUseUsageDescription" = "Description of this";

EDIT:

select the localization options, or enable localization if needed,

在此处输入图片说明

you should be able to see the file also on the left side editor.

在此处输入图片说明

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 确定您的位置。";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM