I’m having some trouble when adding methods and cl...
# kotlin-native
a
I’m having some trouble when adding methods and classes to a Swift library I’m calling from K/N. The new classes and methods won’t show up but the old ones work. Is there any way to force refresh the cinterop bindings or similar? (I build a new .framework and replace the old one and new Swift methods and classes are not accessible from K/N)
k
i assume there's a bridging header. is it updated as well?
a
No bridging header no. Or do you mean the auto generated one that Xcode makes?
k
wherever it comes from. K/N doesn't support swift, so that's not what it's generating it's bindings from
it has to have a (C/Obj-C) header file
a
I guess you mean the auto generated one then. Yes it’s updated and I can see all the new classes and methods in it but I can’t call them from K/N.
k
well, there are c-interop gradle tasks if you want to try to run one of them manually
a
I did. Nothing. It says “UP-TO-DATE”.
k
next steps I would try a clean, and then I would try a gradle sync
a
Maybe I should delete the klib. That would probably force it to do something.
How do you clean in InteliJ? Haven’t found that yet. More of an Xcode person.
k
gradle. the answer is always gradle 🙂
if you haven't found the Gradle tool window yet, now would be a good time to hunt
a
Will try thanks!