Localizing of info.plist
file may be very unuseful, especially if you use many languages in your apps.
The simplest way for localizing NSPhotoLibraryUsageDescription
, NSLocationWhenInUseUsageDescription
or NSCameraUsageDescription
keys is to describe it in InfoPlist.strings
file.
- Create new
*.strings
file with nameInfoPlist
; - Press
Localize...
button in file inspector and choose the default language; - Add new records in your new
InfoPlist.strings
file. For example
in English:
NSLocationWhenInUseUsageDescription = “Location usage description”;
NSPhotoLibraryUsageDescription = “Photos usage description”;
NSCameraUsageDescription = “Camera usage description”;
For more information Apple docs