errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}

I got this error when i try to choose photo from Library on real device only , i added privacy in info.plist
i use this code:
@objc func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])
  {
    if let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage {
      self.profileImage.image = image
    }else{
      debugPrint("Something went wrong")
    }
    dismiss(animated: true, completion: nil)
  }
and it never set the image to the imageView
Not sure that is anymore needed, but when I converted a project to Swift 4.2, converter added 2 Helper functions

Code Block
// Helper function inserted by Swift 4.2 migrator.
fileprivate func convertFromUIImagePickerControllerInfoKeyDictionary(_ input: [UIImagePickerController.InfoKey: Any]) -> [String: Any] {
return Dictionary(uniqueKeysWithValues: input.map {key, value in (key.rawValue, value)})
}
// Helper function inserted by Swift 4.2 migrator.
fileprivate func convertFromUIImagePickerControllerInfoKey(_ input: UIImagePickerController.InfoKey) -> String {
return input.rawValue
}

And changed my call as follows
from
Code Block
  if let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage {

to
Code Block
if let image = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey.originalImage)] as? UIImage {

errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
 
 
Q