Skip to content

docs: SPM Migration Docs #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

docs: SPM Migration Docs #411

wants to merge 2 commits into from

Conversation

markemer
Copy link
Member

@markemer markemer commented Apr 14, 2025

Copy link

vercel bot commented Apr 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
capacitor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2025 5:20pm

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few comments.
Also in the Troubleshooting section or in a new "Caveats" section, we should mention the current SPM limitations like DEBUG/CapacitorBridge.isDevEnvironment or WebView inspection not working

@@ -59,7 +59,45 @@ Then let's sync the web app. This will add the App plugin SPM to the iOS project

You can now use the App plugin normally.

<em>More details coming soon</em>
## Using SPM in an existing Capacitor Project

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a first section could mention the possibility of removing ios folder and adding it back with npx cap add ios --packagemanager SPM in case the user didn't do any custom changes to the project, since that's the "easiest" migration and requires no manual steps.


When you are done, you should see a screen like this. At this point you're done and can build and work as normal:

![Migrate Step 6](../../../static/img/spm/xcode-step-6.png)

### Converting existing plugins to SPM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ticket also mentioned

Converting existing plugins to SPM- this section says "more coming soon"; it should probably be filled out

But this section is unchanged, should be updated too

Co-authored-by: jcesarmobile <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Update Capacitor docs to describe how to update existing projects to SPM
2 participants