When I access my Photo Library with an UIImagePicker to choose a photo, the app shows me sometimes a black screen and sometimes a screen that says that I have to give permis
This issue appear in iOS 9 when your application Info.plist file contains a key: "CFBundleDisplayName" with empty string value.
You can enter your app name there and it should work.