icerockdev / moko-kswift

Swift-friendly api generator for Kotlin/Native frameworks
https://moko.icerock.dev
Apache License 2.0
351 stars 21 forks source link

Generated Swift file should use `KotlinThrowable` instead of `Throwable` #25

Closed kittinunf closed 2 years ago

kittinunf commented 2 years ago

Hey, first of all, thanks for this library and the others useful libraries. As a KMM passionated developer, I am very happy to see that you and your team at icerockdev are pushing KMM to the limit 😄 👍

While I am working on the Swift bridging with moko-kswift, I found out that the generated file use "regular" Throwable instead of KotlinThrowable which result in compiling error at the Client side.

Screen Shot 2021-09-24 at 13 38 03

This is the generated .h content from the Kotlin Native side.

This looks like a bug to me, or I was wondering whether I am missing anything here?

Alex009 commented 2 years ago

will be available in 0.4.0