Hi :wave: Is there a way to make the output from s...
# swift-export
a
Hi 👋 Is there a way to make the output from swift export into an SPM package? We have a separate ios project that we would like it to use the kmp library as SPM
g
a
Thanks Guilherme, I actually noticed that using SwiftExport does provide a SPM package based from the generated files in build:
👍🏼 1
but I'm running into some issues using it
g
What problems are you facing? I do not have experience in this use case (I use direct linking), unfortunately I not much of a help, but I'm curious.
a
Long story short: no, currently there is no straightforward way to wrap Swift-Export into SPM package that will be valid for the consumption and distribution.
SwiftExport does provide a SPM package
I will not say
provide
, rather use them under the hood 🙂 There is a possibility to write a custom build script, that will produce such a package. Sadly, I do not have all the required steps for that currently at hand. But I would be curious to see your experiments! Good luck!
👍 1
w
anyone had any success trying to do this? 👀
a
Due to deadline constraints on my end I instead went with making the kmp library into a framework and then creating a spm package separately and adding the framework in it
w
thanks! that's my current approach