crash demo in device
Opened this issue · 1 comments
Hi,
There's app crash when the PDFImageDemo is installed on Device.(iOS 9, iphone 5s)
Here's the crash log
Dyld Error Message:
Dyld Message: Library not loaded: @rpath/PDFImage.framework/PDFImage
Referenced from: /var/mobile/Containers/Bundle/Application/EA8C4663-B0BF-4394-A634-C9774E9E6612/PDFImageDemo.app/PDFImageDemo
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/EA8C4663-B0BF-4394-A634-C9774E9E6612/PDFImageDemo.app/Frameworks/PDFImage.framework/PDFImage: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/EA8C4663-B0BF-4394-A634-C9774E9E6612/PDFImageDemo.app/Frameworks/PDFImage.framework/PDFImage'
Dyld Version: 369.12
Binary Images:
0x100054000 - 0x100063fff PDFImageDemo arm64 /var/mobile/Containers/Bundle/Application/EA8C4663-B0BF-4394-A634-C9774E9E6612/PDFImageDemo.app/PDFImageDemo
0x120084000 - 0x1200affff dyld arm64 <1b945967d665331dbf2600249e46660a> /usr/lib/dyld
It's working fine for me using the latest commit from the master branch.
Usually the "Library not loaded" error is when the dynamic framework is linked against, but not embedded in the app's bundle.
Make sure the PDFImage.framework is listed in the "Embedded Binaries" under the General tab in the PDFImageDemo target settings.