I am trying to create Appcelerator Module with FastPDFKit. I have tested this module with demo code in XCode and it’s working. So, I started implementing module for it.
I have done all steps as shown required in document to integrate the SDK:
- Created Titanium Module. And opened XCode Project created for this
module. - Copied
FastPdfKit.embeddedframeworkinto theOthe sources
directory. - Put code from
FastPdfKit.embeddedframework\Resources\Snippets.txtinto
particular.hand.mfiles. - Set configurations and select
FastPdfKitFrameworkfrom theinfotab of the project.
But when I try to build the module I get an error on #import "ReaderViewController.h" showing ReaderViewController.h file not found. I don’t know why this error occured only with module development and why it not occured within XCode source of the demo project. Is there any other settings? Please let me know if anything can help me of this anyhow or just give me suggestions about how to integrate custom libraries for Appcelerator modules.
I have followed Tutorial 2 @ this Tutorials. I have added that
FPKReaderLibin Target Dependencies file and.bundlein Extra resources folder. But this time, when I try to importFastPdfKit.h, I receive error regardingFile not found. So, additionally, I added path inUser Header Search Pathin Module target as well as Project, build settings.As soon as I add these path, I receive lots of errors like,
Expected Identifier or ')', missing context for method declaration, expected method body, etc.And these all errors are being displayed in Library files. Please anyone let me know how to solve them. Event it shows errors onfloatvariable types.