Post not yet marked as solved
Post marked as unsolved with 0 replies, 342 views
I quickly and repeatedly clicked the undownloaded file from the GoogleDrive or OneDrive in UIDocumentPickerViewController, then opened UIDocumentPickerViewController again, and found that the file could not be selected, the console did not print any informations, and did not call the delegate method. Only restart the device to select the file normally.
let doc = UIDocumentPickerViewController(documentTypes: allowedDocumentTypes, in: .import)
doc.allowsMultipleSelection = false
doc.delegate = self
present(doc, animated: true, completion: nil)