Closed pkliang closed 1 week ago
Hi @pkliang, which version of SKIE and Kotlin are you using?
Hi, not the OP, but we also ran into this issue with our project the versions used are:
kmmbridge = "0.5.5"
skie = "0.8.2"
After a little further detective work, it worked with SKIE 0.6.4
, but breaks with 0.7.0
.
Since SKIE 0.7.0 we don't enable library evolution by default to reduce compilation time. It does get automatically enabled when building XCFrameworks, but it's possible KMMBridge breaks that. We'll look into it.
In the meantime, you can use SKIE 0.8.2 and enable library evolution explicitly:
skie {
build {
enableSwiftLibraryEvolution.set(true)
}
}
Since SKIE 0.7.0 we don't enable library evolution by default to reduce compilation time. It does get automatically enabled when building XCFrameworks, but it's possible KMMBridge breaks that. We'll look into it.
In the meantime, you can use SKIE 0.8.2 and enable library evolution explicitly:
skie { build { enableSwiftLibraryEvolution.set(true) } }
Thanks, this fixes the issue.
Summary
I am integrating KMMBridge version 0.5.5 and Skie into a KMP project, but it always fails with the following gradle task in GitHub action and my local machine.
Without kmmbridge plugin, everything works fine. swiftinterface files are generated as expected and the assembleReleaseXCFramework task is executed succefully.
Details
Here is my kts file