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 isfunc 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
Nstextfield Non-System-Font Content Clipped When Usessinglelinemode Is True
How to Handle Error with Realm During Writing
Conversion Between Cgfloat and Nsnumber Without Unnecessary Promotion to Double
Produce Sounds of Different Frequencies in Swift
What Does an Underscore "_" Mean in Swift
Test Enum for Equality in for ... Where Clause
What Is Swift Enum Byte Representation
How to Create a Smooth Colour Change Animation Using Swiftui? (Example in Question)
Audiokit - Temporary File Size Is Too Big
Remove from Array of Anycancellable When Publisher Finishes
Count Number of Instances of a Class Swift
Viewwilllayoutsubviews in Swift
How to Assign a Generic Function to a Variable
How to Use Swipe to Dismiss While Presenting a Fullscreen Modal in iOS 13