Skip to content

update: SPM import alpha guide#640

Draft
zamulla wants to merge 13 commits intomasterfrom
zamulla/spm-import
Draft

update: SPM import alpha guide#640
zamulla wants to merge 13 commits intomasterfrom
zamulla/spm-import

Conversation

@zamulla
Copy link
Contributor

@zamulla zamulla commented Feb 25, 2026

No description provided.

@danil-pavlov danil-pavlov self-requested a review March 5, 2026 12:29
Kotlin Gradle plugin automatically provisions the necessary machine code from SwiftPM dependencies.
So, for example, you don't need to do any additional configuration when running Kotlin/Native tests or linking a framework.

You cannot, however, [export](multiplatform-spm-export.md) the KMP module that uses SwiftPM import as a Swift package itself.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's mention https://youtrack.jetbrains.com/issue/KT-84420 here, since we're aware of this limitation and plan to address it. I think we can elaborate that you will be able to produce an XCFramework, but you should expect linkage difficulties in the iOS application.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd say the elaboration should stay on the YouTrack side, at least for now? If this doesn't work, I'd care only for the fact that it doesn't work, but probably will. When there's a specific implementation available, we'll talk about its specific difficulties explicitly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we please add information from this section from the Google doc. I added it last week, so @zamulla most likely didn't see it. Unfortunately, it's necessary to mention these limitations, as these can still arise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danil-pavlov pls add!

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.

2 participants