我在 iOS8 上测试了一个当前使用 VFR-Reader-Core 的应用程序,当我尝试从它打开 PDF 时,我完全崩溃了。我是唯一遇到这个问题的人吗?知道我可以在哪里搜索来纠正这个问题吗? Here is the crash report
谢谢
最佳答案
在 iOS 8 中,应用程序容器的文件系统布局发生了变化。应用程序及其内容不再存储在一个根目录中。
来自 iOS 8 发行说明:
The file system layout of app containers has changed on disk. Rather than relying on hard-coded directory structure, use the
NSSearchPathForDirectoriesInDomains
function or theURLForDirectory:inDomain:appropriateForURL:create:error:
method of theNSFileManager
class. See Accessing Files and Directories in File System Programming Guide.
我对这个问题进行了简要调查,发现 VFRReader 没有遵循 Apple 的上述建议。
我打算在 Github 页面上提出一个问题,但问题跟踪似乎已被禁用。如果我今天有一些额外的时间,我会考虑解决这个问题并提出拉取请求。
编辑:查看我的 fork 以获取适用于 iOS8 的版本:https://github.com/liamnichols/Reader
我还提交了关于原始仓库的拉取请求:https://github.com/vfr/Reader/pull/54
关于ios - VFR-Reader 在 iOS8 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25372149/