UIImagePickerController crashes app | Swift3, Xcode8 UIImagePickerController crashes app | Swift3, Xcode8 ios ios

UIImagePickerController crashes app | Swift3, Xcode8

Add this key to your info.plist,

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] 

That's it, Clean & Run the project.

enter image description here

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.

enter image description here

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>