Siggi Gunnarss
09/03/2025, 11:33 AMembedSwiftExportForXcode to use Swift export for the foreseeable future?
https://kotlinlang.slack.com/archives/C073GUW6WN9/p1750342126794569
https://youtrack.jetbrains.com/issue/KT-78747/Swift-export-for-SPMGuilherme Delgado
09/03/2025, 11:36 AMproject.pbxproj shellScript to use embedSwiftExportForXcodeGuilherme Delgado
09/03/2025, 11:37 AMGuilherme Delgado
09/03/2025, 11:38 AMSiggi Gunnarss
09/03/2025, 11:40 AMembendAndsignForXcode.
Is this library publishing approach not possible with swift export?Guilherme Delgado
09/03/2025, 11:47 AMembedAndSignAppleFrameworkForXcode and embendAndsignForXcode are not compatible. Thus, in theory, if you switch to embendAndsignForXcode the SPM export and import will be automatic (assuming you import via direct linking setup).
Be aware that depending on your code you may have situations where Swift Export is not yet supported (ex: coroutines). Also, any lib that you depend on, must also embendAndsignForXcode (ex: SKIE will not work since it’s create for objc/swift-interop)Guilherme Delgado
09/03/2025, 11:50 AMembendAndsignForXcode those that for you.Siggi Gunnarss
09/03/2025, 11:52 AMembendAndsignForXcode today. We do not use direct linking. Does swift export require direct linking?Artem Olkov
09/03/2025, 11:53 AMtoday we compile an XCFramework within the KMP projectThat is currently an unsupported case. Swift Export at an experimental stage of a technology and currently it supports only direct source based integration.
there are architectural issues with Swift export and distributing compiled Swift packagesWould you mind elaborating? What architectural issues do you foresee?
Artem Olkov
09/03/2025, 11:54 AMArtem Olkov
09/03/2025, 12:10 PMxcframework and not use it as source-based dependency on iOS side? Have you considered the move to the source based dependency?Siggi Gunnarss
09/03/2025, 1:21 PMArtem Olkov
09/03/2025, 1:47 PMIf Swift export not planned for Remote integration projectsWe do not have specific plans for this right now. There are lot's of problems to solve with this approach. Currently the team is focused on the actual Swift Export as a technology, not the integration with different build tooling.
for it to never be possibleIt is possible to do it, in theory, but we do not have this project on our roadmap for the nearest future.
that source based dependencies are the preferred way from Jetbrains for example?Our documentation does not highlight any approach as preferred, all of them have their pros and cons and serve well in different teams and setups.
Artem Olkov
09/03/2025, 2:02 PMOur documentation does not highlight any approach as preferredThat said, with source based setup one would get 1. Swift Export 2. KMP plugin for IDEA 3. Ease of experimenting, as our project wizard would produce a project with the same setup 😉
Marco Righini
09/03/2025, 3:55 PMArtem Olkov
09/03/2025, 4:00 PM