ioscocoa-touchpdftronpdfnet

Testing out PDFTron / PDFNet - Symbol not found when adding libTools.a


I am having a problem with libTools.a when following the PDFTron BLOG article, step 2: getting-started-on-ios

Step 1, works. I have a working PDF viewer, but no controls other then paging and zooming.

When I add the libTools.a library (the one that came in the SDK, or the one I built using Tools.xcodeproj, I receive the following error for every platform I try (simulator, ipad2, iphone6 - architecture name changes for each):

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_DraggableCollectionViewFlowLayout", referenced from: objc-class-ref in libTools.a(ThumbnailsViewController.o) ld: symbol(s) not found for architecture x86_64

The sample code is working fine. So it's my implementation in our application.

The rest of the project's 3rd party frameworks are managed with CocoaPods.

There has got to be something simple I am overlooking... Ideas?


Solution

  • Judging by the error message, it sounds like you may need to add /Lib/src/PDFViewCtrlTools/ThirdParty/DraggableCollectionView into your project. This is required for the ThumbnailsViewController.