crash when access UIImagePickerController with photoLibrary sourceType ; privacy was added to info.plist
let myPickerController = UIImagePickerController()
myPickerController.delegate = self
myPickerController.sourceType = .photoLibrary
self.present(myPickerController, animated: true, completion: nil)'
error :
unrecognized selector sent to instance 0x28184fb40 2019-09-09 12:45:52.126598+0300 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType encodeWithCoder:]: unrecognized selector sent to instance 0x28184fb40'