Integrating PSPDFKit Using Swift Package Manager

PSPDFKit is available as a Swift package. We provide a URL to the public package repository that you can add in Xcode:

https://github.com/PSPDFKit/PSPDFKit-SP

Quick Start

  1. Select your project’s Swift Packages tab: xcode-project-swift-packages

  2. Add the PSPDFKit Swift package repository URL: add-package-url

  3. Choose the package options version rule (outlined below).

Always Use the Latest Release:

up-to-next-major-version

💡 Tip: You can point to the master branch to always use the latest version.

Pinning to a Specific Version (e.g. 10.0.0):

exact-version

Nightly Builds

Nightly builds are not supported via Swift Package Manager. If you wish to use our nightlies, you can:

  1. Log in to your customer portal at customers.pspdfkit.com and download the latest version of PSPDFKit, and then use the manual integration.

  2. Integrate PSPDFKit using CocoaPods.