UIImagePickerController crashes on iOS10 UIImagePickerController crashes on iOS10 swift swift

UIImagePickerController crashes on iOS10


You may need to put the NSCameraUsageDescription (if your app uses the Camera) and NSPhotoLibraryUsageDescription (if your app uses the Photo Library) in your plist. Like below,

<key>NSCameraUsageDescription</key><string>$(PRODUCT_NAME) needs access to use your camera</string><key>NSPhotoLibraryUsageDescription</key><string>$(PRODUCT_NAME) needs access to use your photo library</string>


Rahul's answer is perfect. If you prefer to add it straight into your plist rather than via the plist's source code then just do the following.plist additions


I solved the crash by updating to the latest Xcode version.The problem has been discussed here as well: https://github.com/Leanplum/Leanplum-iOS-SDK/issues/12