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-carthage-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 Carthage to Swift Package Manager?

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

First, remove the Nutrient URL from your Cartfile:

binary "https://my.nutrient.io/pspdfkit-ios.json"
# Other dependencies.

Then, delete your Carthage directory and run carthage update to remove Nutrient and reinstall your other dependencies.

And finally, integrate Nutrient using Swift Package Manager.