Hey all, am I correct in assuming that my Kotlin N...
# kotlin-native
a
Hey all, am I correct in assuming that my Kotlin Native library on iOS needs to be static in order for dSYM file to work properly for crash logs? The documentation on this is pretty vague and confusing. And if so why? I’ve noticed that when I am using a static lib my SwiftUI previews don’t work, but work when I’m using a dynamic library. If my above assertion is true, how can I configure my project to be dynamic when creating debug builds and static when making production builds?
s
No, the default dynamic libraries work fine. I upload my dSYM to Sentry and it works.
You may be right about the SwiftUI previews. Those never worked correctly for me and they are super slow - so I don’t actually use them. But somehow I doubt it has something todo with dynamic vs static.
a
Awesome @Stefan Oltmann thanks for clearing that up. I got it working finally with a dynamic library. I was very confused by that. The docs make it a bit unclear
s
Glad to hear that. Yes, Apple docs are bad, but at least they are way better than 8 years ago. As I started with iOS development there wasn’t anything I would call „documentation“ - the official docs was just marketing material talking about how advanced and great the APIs are, but not how they work. Absolutely no match to how well Google documented Android.
a
Hahaha! That’s honestly wild! Especially considering that most of apples API’s are closed source. I feel fortunate then that I did not start writing iOS code until around 3 years ago