This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/ios/knowledge-base/how-do-i-migrate-from-cocoapods-to-spm.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. How do I migrate from CocoaPods to Swift Package Manager?

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

First, remove the Nutrient podspec from your Podfile:

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

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

And finally, integrate Nutrient using Swift Package Manager.