question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 11 - NSPhotoLibraryAddUsageDescription required

See original GitHub issue

Description

Just a heads up for anyone trying to use this lib on iOS11 - you need to add NSPhotoLibraryAddUsageDescription in your Info.plist (see https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)

How to repeat issue and example

The app will crash on iOS 11 if you don’t add NSPhotoLibraryAddUsageDescription with a message explaining why you need access to the photos.

Additional Information

  • React Native version: all
  • Platform: iOS 11
  • Development Operating System: MacOS
  • Dev tools: Xcode

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:22
  • Comments:13

github_iconTop GitHub Comments

10reactions
esuttoncommented, Oct 3, 2017

I added both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription and now users must respond to two prompts to allow each one. This annoys users.

There is a small bug too where it will ask for permission twice (once for read access and once for write access).

@cosmith You said this is a bug. A bug in react-native-image-picker ?

NSPhotoLibraryUsageDescription and NSPhotoLibraryUsageDescription.

screen shot 2017-10-03 at 10 29 34 am

Thanks for a great library!

6reactions
OPNinjacommented, Aug 30, 2017

I’ve added both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription but my app still isn’t asking the user for permission. Does it matter what value (i.e., what text) you add to the plist?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NSPhotoLibraryAddUsageDescri...
NSPhotoLibraryAddUsageDescription. A message that tells the user why the app is requesting add-only access to the user's photo library. iOS 11.0+ iPadOS ...
Read more >
iOS 11 - NSPhotoLibraryAddUsageDescription required #632
The app will crash on iOS 11 if you don't add NSPhotoLibraryAddUsageDescription with a message explaining why you need access to the photos....
Read more >
ios - Stack Overflow
You need to declare both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription to get it WORKS on both iOS 9, 10.3 and 11.
Read more >
[#CB-13332] iOS 11 Error When Taking Picture Missing ...
The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data ...
Read more >
Ios – the crash of “The app's Info.plist must contain ... - iTecNote
NSPhotoLibraryAddUsageDescription : This key lets you describe the reason your app seeks write-only access to the user's photo library. When the system prompts ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found