PSPDFKit iOS 8 PSPDGloballock文档提供程序文档:第页:

PSPDFKit iOS 8 PSPDGloballock文档提供程序文档:第页:,ios,objective-c,pdf,pspdfkit,Ios,Objective C,Pdf,Pspdfkit,我有一个在/Library/Caches/中下载PDF的杂志应用程序。。。它在iOS7上运行得很好,但是在iOS8中,文件系统目录发生了变化,我无法打开下载的PDF!从PSPDFKit日志错误中,我看到: 文件下载路径: PSPDFkit从路径设置文档错误: 注意:我用xxxx替换了一些单词 我使用的是PSPDFKit的旧版本,我不知道确切的版本,我找不到版本参数 我以这种方式获取缓存文件夹,在我的代码中称为[Utility documents]: 下载路径PDF代码: 阅读iOS 8的PDF代

我有一个在/Library/Caches/中下载PDF的杂志应用程序。。。它在iOS7上运行得很好,但是在iOS8中,文件系统目录发生了变化,我无法打开下载的PDF!从PSPDFKit日志错误中,我看到:

文件下载路径:

PSPDFkit从路径设置文档错误:

注意:我用xxxx替换了一些单词

我使用的是PSPDFKit的旧版本,我不知道确切的版本,我找不到版本参数

我以这种方式获取缓存文件夹,在我的代码中称为[Utility documents]:

下载路径PDF代码:

阅读iOS 8的PDF代码:

我还看到下载路径是/data/Containers/data,读取路径是/data/Containers/Bundle,我无法更改它


有人能帮我吗??谢谢大家!

所以你确认这是PSPDFKit库的问题,而不是我的代码?我无法确认-我们没有针对iOS 8测试v1或v2。好的,谢谢,但使用我当前的代码e新库,我的应用程序将正常工作,或者我必须更改一些代码以支持v4?上周五我写信给“销售部”,但当有人回复我时,你们能通知你们的员工吗?有急事!我需要立即升级!我已确保加快这一进程。
/Users/steven/Library/Developer/CoreSimulator/Devices/xxxxx/data/Containers/Data/Application/xxxxx/Library/Caches/doc1.pdf
Error: -[PSPDFGlobalLock documentProviderForDocument:page:]/248 Cannot get document reference, there is no file at /Users/steven/Library/Developer/CoreSimulator/Devices/xxxxx/data/Containers/Bundle/Application/xxxxx/[NAMEAPP]/Users/steven/Library/Developer/CoreSimulator/Devices/xxxxx/data/Containers/Data/Application/xxxx/Library/Caches/doc1.pdf!
NSArray *paths = [[NSArray alloc] initWithArray:NSSearchPathForDirectoriesInDomains( NSCachesDirectory, NSUserDomainMask, YES )];

return [paths objectAtIndex:0];
NSString *destPath = [[Utility documents] stringByAppendingPathComponent:[[highlightedMagazine objectForKey:@"url"] lastPathComponent]];
NSString *destPath = [[Utility documents] stringByAppendingPathComponent:[[highlightedMagazine objectForKey:@"url"] lastPathComponent]];

pdfController.document = (PSPDFDocument *)[[Utility documents] stringByAppendingPathComponent:[[highlightedMagazine objectForKey:@"url"] lastPathComponent]];