Using CocoaPods


PSPDFKit is available via CocoaPods. We provide a private URL for the podspec so you can integrate PSPDFKit with minimum effort, either pinning to a specific version or always getting the latest stable release. If you're new to CocoaPods, this Getting Started Guide will help you.

Note: Please don't follow our manual integration guide if you're using CocoaPods. Using strip-framework.sh together with CocoaPods won't work.

Important: Please make sure that you have a CocoaPods version >= 1.0.0 installed. You can check your version of CocoaPods with pod --version.

Here's what you have to add to your Podfile:

Always use latest release:

Copy
1
2
3
4
5
use_frameworks!

target :YourTargetName do
  pod 'PSPDFKit', podspec: 'https://customers.pspdfkit.com/cocoapods/YOUR_COCOAPODS_KEY_GOES_HERE/latest.podspec'
end

Pinning to a specific version (e.g. 5.4.1):

Copy
1
2
3
4
5
use_frameworks!

target :YourTargetName do
  pod 'PSPDFKit', podspec: 'https://customers.pspdfkit.com/cocoapods/YOUR_COCOAPODS_KEY_GOES_HERE/5.4.1.podspec'
end

Then run pod install. See try the demo to get started on the integration.

Where do I find the Podspec URL/KEY?

If you are a customer you can find your custom URL in our customer portal by choosing the "Use CocoaPods" tab when downloading PSPDFKit. If you are a new customer you can get a demo Podspec URL by using the "Try Now" button on our website. If you like to purchase a license, please contact our sales team with your use case and the features you would like.

To manually integrate PSPDFKit, see Integrating PSPDFKit.

Use nightly test builds

If you have an active license subscription, we can optionally enable access to nightlies on CocoaPods. Once that is done, replace latest.podspec with nightly.podspec to point to the latest nightly build.

Was this page helpful? We're happy to answer any questions.