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.