iOS8 中的 VFR 阅读器崩溃 [英] VFR-Reader Crashing in iOS8

查看:23
本文介绍了iOS8 中的 VFR 阅读器崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试了一个当前在 iOS8 上使用 VFR-Reader-Core 的应用程序,当我尝试从中打开 PDF 时完全崩溃.我是唯一一个有这个问题的人吗?知道我可以在哪里搜索以纠正这个问题吗?这里是崩溃报告

I tested an app that is currently working with the VFR-Reader-Core on iOS8 and I get a complete crash when I try to open a PDF from it. Am I the only one with this problem? any idea of where I can search to correct this? Here is the crash report

谢谢

推荐答案

在 iOS 8 中,应用容器的 Te 文件系统布局发生了变化.应用程序及其内容不再存储在一个根目录中.

In iOS 8, Te file system layout of app containers has changed. Applications and their content are no longer stored in one root directory.

来自 iOS 8 发行说明:

From the iOS 8 Release Notes:

应用容器的文件系统布局在磁盘上发生了变化.相当与依赖硬编码的目录结构相比,使用NSSearchPathForDirectoriesInDomains 函数或URLForDirectory:inDomain:appropriateForURL:create:error: 方法NSFileManager 类.请参阅 访问文件和目录apple_ref/doc/uid/TP40010672" rel="noreferrer">文件系统编程指南.

The file system layout of app containers has changed on disk. Rather than relying on hard-coded directory structure, use the NSSearchPathForDirectoriesInDomains function or the URLForDirectory:inDomain:appropriateForURL:create:error: method of the NSFileManager class. See Accessing Files and Directories in File System Programming Guide.

我已对该问题进行了简要研究,我发现 VFRReader 没有遵循 Apple 的上述建议.

I've had a brief look into the issue and i can see that VFRReader does not follow the above recommendations from Apple.

我打算在 Github 页面上提出一个问题,但问题跟踪似乎已被禁用.如果我今天有额外的时间,我会考虑解决这个问题并提出拉取请求.

I was going to rase an issue on the Github page however issue tracking seems to have been disabled. If i get some extra time today, I will look into resolving this and raising a pull request.

查看我的 fork 以了解适用于 iOS8 的版本:https://github.com/liamnichols/Reader
我还在原始仓库提交了一个拉取请求:https://github.com/vfr/阅读器/拉/54

Check out my fork for a version that works on iOS8: https://github.com/liamnichols/Reader
I've also submitted a pull request on the original repo: https://github.com/vfr/Reader/pull/54

这篇关于iOS8 中的 VFR 阅读器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆