Closed dargoz closed 3 years ago
How did you create this issue?
"New issue" button on the kotlin-native issues page on GitHub website opens the following page for me: https://github.com/JetBrains/kotlin-native/issues/new/choose. It doesn't seem to have an option to create new issue on GitHub on my side.
So did you use a custom GitHub client or whatever?
unfortunately, when I create this issue that page didn't show up.. When I try it again when you say it, it's already appear.. I don't use custom GitHub, I don't know why that happen
I see. Thank you for the explanation.
Regarding your problem: you probably have to compile Hello.m
and link it to your binary to fix it.
I just tried using native interop feature since I need native code written in Objective-C to be used in my library. So first I'm trying to test using simple hello to interop an Objective-C code
gradle :
my .def configuration :
this is the project structure look like
my Hello.h
Hello.m
after run cinterop task from gradle, the klib generated from that hello class and of course now I can import it to my kotlin project. for example in my iOS module:
Then I'm trying to call it in my unit test to check if I can get the result or I aslo try to build it to framework but I got an error :
Anyone know how to resolve this issue or maybe is it impossible to interop in that way? I just needed so it can be used in my iOS app later after I successfully build it to .framework