https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

Christian Hausmann

10/13/2023, 4:15 PM
Does someone know how getOriginalKotlinClass / getTypeInfoForClass works under the hood for kotlin native, when this method is being exposed from Kotlin to Swift? It works fine with the original ipa (created from XCode), but once the file is being obfuscated with tools that modify the Mach-O Binary, the calls to getOriginalKotlinClass crash the application with EXC_BAD_ACCESS. I'm wondering how getOriginalKotlinClass works internally (reflection?), so I could figure out which part of the Mach-O file is modified incorrectly / broken.
2 Views