UIImagePickerController crashes app | Swift3, Xcode8
Add this key to your
Key : Privacy - Photo Library Usage Description [ NSPhotoLibraryUsageDescription ]String Value : We need access to your camera roll and photo library, so that we can do operations on it. [ Customise it in your own way]
Clean & Run the project.
In xcode 8 new key is added Privacy For -
Media,Location,Photo Library,Reminders,Motion,Calender,Bluetooth,HomeKit,Camera,Contacts etc.. and value is Description for the privacy you will access for.For ex. "We need access to use photo library to make functionality work" or ANY_YOUR_APP_RELATED_DESCRIPTION.
Noticed a camera key and value needed for camera usage as well.
Keys required for both the camera and photo library that need to be in the info.plist:
<key>NSCameraUsageDescription</key><string>Access needed to use your camera.</string><key>NSPhotoLibraryUsageDescription</key><string>Access needed to photo gallery.</string>