Hi all, I use KMMBridge to consume my kotlin modul...
# touchlab-tools
a
Hi all, I use KMMBridge to consume my kotlin modules in ios code , I am currently the only developer in my team, so I don't have any pipeline setup , I. use
/.gradlew spmDevBuild
to make the framework and then archive my ios project directly through xcode , I was just wondering is there any way here to make the release version of the framework as AFAIK, this produces a debug version of the Kotlin code.
k
spmDevBuild
is, as the name would imply, for dev. You should be able to override the build type and set release in KMMBridge config, but I can't recall ever needing that. Published builds were previously release, but since we added the ability to debug from binaries, that was changed. I don't recall off-hand if you can specify release with gradle params on the command line, but that would seem like an obvious feature (so I feel like it's there, but I haven't looked in quite a while, TBH).
Ah, yes. You can. That seemed like something I remember was added: https://github.com/touchlab/KMMBridgeSPMQuickStart/blob/main/.github/workflows/Base-Publish.yml#L61
-PNATIVE_BUILD_TYPE=RELEASE
a
I have used this previously while I was working with my team but still don't know how to do it locally I actually currently don't want to publish and then consume it, as I am currently the only dev in my team , so spmDevBuild currently works perfectly for me as again I do all the thing by myself no ci/cd, But still I am not able to figure out how to do it locally for release build. It would be really helpful if you could help with me with the command to just generate the release version of xcframework *o*r else if you could suggest some another approach , that would be helpful too. My current setup is spmDevBuild -> ios project always refers to local KMM package -> go to xcode generate archive and upload