Errors Encountered While Discovering Extensions: Error Domain=Pluginkit Code=13 "Query Cancelled"

errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 query cancelled

This message is harmless. The message comes from the OS and is related to the OS keeping an eye out for any newly discovered extensions related to whatever your app is doing. I see it often on macOS when displaying an open file dialog. While browsing around for a file, the OS is checking to see if there are any file-related extensions it needs to load in order to show you something. When the user presses "OK" or "Cancel" it stops searching for the extensions and spits that message to the console. I gather iOS may be doing something similar, perhaps related to share or other user-file-related activities. The message does not indicate an error in your application.

Swift 4 errors encountered while discovering extensions - photo will not load on UI

Two issues:

  • The signature of didFinishPickingMediaWithInfo is wrong. In Swift 3+ it is

    func imagePickerController(_ picker: UIImagePickerController, 
    didFinishPickingMediaWithInfo info: [String : Any])
  • The delegate method must be on the top level of the class (not in another method)

    @IBAction func edit_click(_ sender: Any) {

    //select ava
    let picker = UIImagePickerController()
    picker.delegate = self
    picker.sourceType = .photoLibrary
    picker.allowsEditing = true
    self.present(picker, animated: true, completion: nil)
    }

    func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {

    //selected image
    let image = info[UIImagePickerControllerEditedImage] as? UIImage
    avaImg.image = image
    self.dismiss(animated: true, completion: nil)
    }

Photopicker & FB GrapSharer issues in iOS 11

Okay, this is about asking permissions which I already asked at the beginning of my app. Still I need to ask again, I dont know why, but it worked.

PHPhotoLibrary.requestAuthorization({ (status: PHAuthorizationStatus) -> Void in
()

if PHPhotoLibrary.authorizationStatus() == PHAuthorizationStatus.authorized {
print("creating 2")
// Impelement UiImagepicker method
}

})


Related Topics



Leave a reply



Submit