unable to localize NSLocationAlwaysAndWhenInUseUsageDescription key

Hello everybody!


My application uses location services. I added all nesessary keys into Info.plist


<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>

<string>This application requires access to GPS</string>

<key>NSLocationAlwaysUsageDescription</key

<string>This application requires access to GPS</string>

<key>NSLocationUsageDescription</key>

<string>This application requires access to GPS</string>

<key>NSLocationWhenInUseUsageDescription</key>

<string>This application requires access to GPS</string>


However, when I do "export for localization", only 3 of them appears in en.xliff, key NSLocationAlwaysAndWhenInUseUsageDescription is missing

I tryed adding it manually info *.xiff or/and InfoPlist.strings, but it doesnt help.

Also i tryed to delete NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription, but NSLocationAlwaysAndWhenInUseUsageDescription

still missing


My application should work on iOS 9, 10 & 11


Please help ...

Replies

Same issue.



`NSLocationAlwaysandWhenInUseUsageDescription` cannot be localised in InfoPlist.strings



Xcode version 9.1



In simulator with iOS 10.2, `NSLocationAlwaysUsageDescription` works.

In simulator with iOS 11.1, `NSLocationAlwaysandWhenInUseUsageDescription` does not work.

This will not solve directly your problem but may give you some hints :

h ttps://stackoverflow.com/questions/44424092/location-services-not-working-in-ios-11