How do I Migrate from CocoaPods to Swift Package Manager?

Q: How do I Migrate from CocoaPods to Swift Package Manager?

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

1. Remove PSPDFKit from your CocoaPods Integration

First, remove the PSPDFKit podspec from your Podfile.

Copy
1
2
3
4
5
6
use_frameworks!

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

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

2. Integrate PSPDFKit via Swift Package Manager

And finally, integrate PSPDFKit using Swift Package Manager.