Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ios中的缩略图关联?_Ios_Swift_Pdf_Cocoa_Cocoapods - Fatal编程技术网

ios中的缩略图关联?

ios中的缩略图关联?,ios,swift,pdf,cocoa,cocoapods,Ios,Swift,Pdf,Cocoa,Cocoapods,我正在尝试运行cocoapod依赖项,当我通过“文件”应用程序在手机上选择pdf时,出现以下错误: [DocumentManager] Failed to associate thumbnails for picked URL file:///private/var/mobile/Containers/Data/Application/../../Welcome.pdf with the Inbox copy file:///private/var/mobile/Containers/Data

我正在尝试运行cocoapod依赖项,当我通过“文件”应用程序在手机上选择pdf时,出现以下错误:

[DocumentManager] Failed to associate thumbnails for picked URL file:///private/var/mobile/Containers/Data/Application/../../Welcome.pdf 
with the Inbox copy file:///private/var/mobile/Containers/Data/Application/../../tmp/com../Welcome.pdf: 
Error Domain=QLThumbnailErrorDomain Code=102 "(null)" 
UserInfo={NSUnderlyingError=0x28226cf90 {Error Domain=GSLibraryErrorDomain Code=3 "Generation not found" 
UserInfo={NSDescription=Generation not found}}}
以前是否有人遇到过无法关联缩略图错误?有没有简单的解决办法?以下是它中断的代码:

extension TestPdfEpubViewController: UIDocumentPickerDelegate {
    func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) {
guard let selectedFileURL = urls.first else { return }
            //create pdf first
            let documentFileURL = Bundle.main.url(forResource: selectedFileURL.absoluteString, withExtension: "pdf")!
            let document = PDFDocument(url: documentFileURL)!
            //then display the pdf
            let readerController = PDFViewController.createNew(with: document)
            navigationController?.pushViewController(readerController, animated: true)
        }
}


你跟这个表演的人打交道运气好吗?