Sanju Naik
10/24/2025, 6:04 AMcommon/src/commonMain but not working for feature modules.
feature modules are added as a dependency on common module using
sourceSets {
val commonMain by getting {
dependencies {
// feature module dependencies.
}
}
}
and they are also exported while generating framework using export() .
This is the command we are running in Xcode run script ./gradlew :common:embedAndSignAppleFrameworkForXcode . Anything we are missing or any additional setup is needed to get breakpoints work for feature modules?Alexis
10/24/2025, 9:25 AMimplementation() or api() to add your modules to your projects dependencies?
On my side I've made an umbrella module just for ios, that uses export() and api() for every module that I want to use from my Swift codeSanju Naik
10/24/2025, 1:47 PMapi() and some were implementation() + api() depending on the requirement. The issue was In sourceSets & framework dependencies, we were using published libs. We are migrating an existing project to use xcode-kotlin which was integrating KMP as a cocoapods.
Since I just continued using as it was, that resulted in this error. And the dependencies were of type release binary so break-points weren't working, changed them to use project() dependencies, break points are working now. Thank you.kpgalligan
10/26/2025, 11:23 PMproject dependencies work because they point to source that is built on your machine.
Release builds presumably won't have debug info.
So, the only thing that matters is where the Kotlin is built. If local, you should be fine, if not, you won't be. The blog post you linked to is a very special case, where KMMBridge and SKIE conspire together to rewrite some metadata that allows frameworks built on a CI server to be debugged. That's a very long explanation, that would be as efficiently delivered as looking at what the code does. Kind of, anyway. I'd need to look at what the code does exactly, then try to explain it, but you know. Only so many hours in the day 😉kpgalligan
10/26/2025, 11:25 PMSanju Naik
10/27/2025, 4:55 AMlibs dependency, break points works in that case or not?