Mario
08/16/2025, 11:02 AMMario
08/16/2025, 11:09 AMFrançois
08/16/2025, 12:48 PMTaush Sampley
08/16/2025, 2:37 PMFrançois
08/16/2025, 3:10 PMRick Clephas
08/17/2025, 1:37 PMbut I’ve seen that there are several caveats with both approachesTo what caveats are you referring?
and they’re unofficial.Correct, both libraries make it easier to integrate native crash reporting tools into a KMP application. You already mentioned the official libraries by Sentry and Bugsnag. I can’t really speak on their current state, but in the end a first party library would indeed be preferable.
would really appreciate a 2025 update on crash reportingIt hasn’t changed too much. The short version is that Kotlin provides the required hooks and information, but most native crash reporting tools can’t handle Kotlin crashes out-of-the-box. First party libraries such as those from Sentry and Bugsnag should solve that (Crashlytics currently doesn’t have any). In the meantime projects like NSExceptionKt and CrashKiOS make it easier to integrate the existing native libraries. Some notes about the scope of these projects: • NSExceptionKt only focuses on the Kotlin crash reporting through native libraries • CrashKiOS also exposes additional API’s to Kotlin that allow you to log additional info • Official libraries, like those from Sentry and Bugsnag, are much bigger in scope and aim to provide the full native library APIs in common Kotlin code
Rick Clephas
08/17/2025, 1:44 PMKotlin’s typical Not-Enough-iOS-Devs problem…IMO this isn’t a Kotlin/JetBrains problem. They are doing a great job at creating the Kotlin language including the native interop. The whole idea of the language is to be interoperable, not to provide us with a full (mobile) multiplatform framework. It’s up to us as a community to provide different solutions and ways to further integrate the Kotlin language in our projects and tools. If you are looking to solve any of these problems you can create your own library or contribute to an official one to further improve the ecosystem.
kpgalligan
08/17/2025, 11:06 PMGiancarlo Buenaflor
08/18/2025, 10:15 AMCocoaPods is only used for linking and the Kotlin compilerfwiw we've added the Sentry KMP Gradle Plugin a while ago that sets up the linker with the Sentry SPM dep without cocoapods
François
08/18/2025, 11:51 AMTaush Sampley
08/18/2025, 12:12 PMIMO this isn’t a Kotlin/JetBrains problem.Oh, absolutely not. It’s definitely a Kotlin/Community problem. Which I am trying to resolve independently, but it sure would be nice to get paid after being laid off :|
kpgalligan
08/18/2025, 12:56 PMfwiw we've added the Sentry KMP Gradle Plugin a while ago that sets up the linker with the Sentry SPM dep without cocoapodsInteresting! I've been out of the loop on Sentry's library I guess. Curious to see how it works. On the overall problem, though, SPM dependency support is something that's desperately needed to happen for some time. However it arrives.
François
08/18/2025, 1:05 PM