How Do I Migrate from CocoaPods to Swift Package Manager?

You can migrate your PSPDFKit integration from CocoaPods to Swift Package Manager by following the steps below.

First, remove the PSPDFKit podspec from your Podfile:

use_frameworks!

target :YourTargetName do
- pod 'PSPDFKit', podspec: 'https://my.pspdfkit.com/pspdfkit-ios/latest.podspec'
  # Other Pods.
end

Then, run pod install to remove PSPDFKit, while keeping your other pods.

And finally, integrate PSPDFKit using Swift Package Manager.