iosobjective-ccrashios8vfr-reader

VFR-Reader Crashing in iOS8


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

Thank you


Solution

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

    From the iOS 8 Release Notes:

    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.

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

    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.

    Edit: 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