PSPDFKit - The Leading Mobile PDF Framework for iOS and Android.
- Checkout the project:
git clone https://github.com/PSPDFKit/Appcelerator-iOS.git
- Make sure you have Titanium 5.3.0 GA or later installed: http://www.appcelerator.com
- Download the binary build of PSPDFKit from your customer portal: https://customers.pspdfkit.com
- Open the downloaded .dmg and copy
PSPDFKit.framework
into the checked out folder. - Call
./build.py
in theAppcelerator-iOS
folder. - Copy the created .zip into the Titanium folder:
cp com.pspdfkit.source-iphone-5.x.x.zip ~/Library/Application\ Support/Titanium
- Unzip it (and optionally remove the .zip afterwards):
unzip ~/Library/Application\ Support/Titanium/com.pspdfkit.source-iphone-5.x.x.zip
- Copy
PSPDFKit.framework
into your project'sResources/iphone
. - Copy
ti.dynamiclib
fromAppcelerator-iOS
into theplugins
directory of your project's root folder. If theplugins
directory doesn't exist you have to create it first. - Modify your project's
tiapp.xml
to contain the following entries:
<ti:app xmlns:ti="http://ti.appcelerator.org">
<ios>
<min-ios-ver>8.0</min-ios-ver>
</ios>
<plugins>
<plugin version="1.0">ti.dynamiclib</plugin>
</plugins>
</ti:app>
We have to set a minimum iOS version, because dynamic frameworks are only supported since iOS 8.
The ti.dynamiclib
plugin embeds PSPDFKit.framework
into your app. You can find more info about it here.
If PSPDFKit.h
can't be found you need to add the directory that contains PSPDFKit.h
to the "Header Search Paths" build setting in the Xcode project (pspdfkit-titanium.xcodeproj
). The correct directory is $(SRCROOT)/PSPDFKit.framework/Headers
(recursive).
This project can be used for evaluation or if you have a valid PSPDFKit license.
All items and source code Copyright © 2010-2016 PSPDFKit GmbH.
See LICENSE for details.