Hello, we just tried your pdf reader on iOS, and after adding MessageUI.framework it compiles.
But at runtime, when calling PDFReader.OpenDocInMenu(Application.streamingAssetsPath + "/"+ fileName, false );
version : pdfreader 1.32, Unity 5.2.2f1, iOS 10.3.1, Xcode 8.3.1
it crashes with the following error (ofc the pdf is present in streaming assets and it reads ok on Android) :
2017-04-19 04:55:00.861351-0700 cruise[369:22551] *** Assertion failure in -[UIDocumentInteractionController setURL:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.7.47/UIDocumentInteractionController.m:1012
2017-04-19 04:55:00.969775-0700 cruise[369:22551] Uncaught exception: NSInternalInconsistencyException: UIDocumentInteractionController: invalid scheme (null). Only the file scheme is supported.
(
0 CoreFoundation 0x00000001823e2ff0 <redacted> + 148
1 libobjc.A.dylib 0x0000000180e44538 objc_exception_throw + 56
2 CoreFoundation 0x00000001823e2eac <redacted> + 0
3 Foundation 0x0000000182e7a710 <redacted> + 112
4 UIKit 0x0000000188c1fba8 <redacted> + 248
5 UIKit 0x0000000188c1f5b4 <redacted> + 84
6 UIKit 0x0000000188c1f540 <redacted> + 68
7 cruise 0x0000000100fb7624 OpenDocumentInMenu + 1344
8 cruise 0x00000001000a8498 PDFReader_OpenDocumentInMenu_m7 + 148
9 cruise 0x00000001000a8bcc PDFReader_OpenDocInMenu_m14 + 92
(... cut rest of stack for shortness)
)
2017-04-19 04:55:00.980163-0700 cruise[369:22551] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIDocumentInteractionController: invalid scheme (null). Only the file scheme is supported.'
*** First throw call stack:
(0x1823e2fd8 0x180e44538 0x1823e2eac 0x182e7a710 0x188c1fba8 0x188c1f5b4 0x188c1f540 0x100fb7624 0x1000a8498 0x1000a8bcc 0x1000bcf74 0x1000bc9c0 0x1000c29bc 0x1000ae04c 0x1000c4694 0x1003fea04 0x1003fe928 0x100400e20 0x100400d60 0x100401f84 0x100402450 0x1003140c8 0x100314138 0x1003014a0 0x100301980 0x10015932c 0x100710344 0x10030ff58 0x10030f204 0x10030ed10 0x1000bca28 0x1002ff6f0 0x1007dbde0 0x100fadeb8 0x10098b624 0x10098b5b8 0x100983b84 0x1008b2c04 0x100937698 0x100b165e4 0x100087d84 0x100087d00 0x100087be0 0x1022e1a50 0x1022e1a10 0x1022e6b78 0x1823910c0 0x18238ecdc 0x1822bed94 0x183d28074 0x188577130 0x10007d880 0x1812cd59c)
libc++abi.dylib: terminating with uncaught exception of type NSException
Any idea how to correct this?