NSPhotoLibraryUsageDescription in Xcode8

Localizing of info.plist file may be very unuseful, especially if you use many languages in your apps.
The simplest way for localizing NSPhotoLibraryUsageDescription, NSLocationWhenInUseUsageDescriptionor NSCameraUsageDescription keys is to describe it in InfoPlist.strings file.

  • Create new *.strings file with name InfoPlist;
  • 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

Leave a Comment