Develop on React Native.
To access
the list of photos using
CameraRoll in
info.plist add:
<key>NSPhotoLibraryAddUsageDescription</key>
<string>We need access to your photo library so that we can write photos</string>
For my entry:
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) camera use</string>
You need to take a picture and send it to the server.
When you try to take a picture in XCode throws the error:
libsystem_kernel.dylib`__abort_with_payload
Solves the problem:
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Write Photo</string>
But then can't read from the directory with the photo - gives an error (no permissions to read).
If set at the same time NSCameraUsageDescription and NSPhotoLibraryAddUsageDescription the app crashes when you first try to take a picture and send. In subsequent runs it works.
Who faced, prompt please.