Hauke Radtki
08/20/2024, 3:40 PMclass Foo {
fun canCallThis(param: String) {}
fun canNotCallThis(param: SomeLibraryClass) {}
fun canActuallyCallThis(param: Any) {
param as SomeLibraryClass
// param is usable here
}
}
Having any builtin, or class declared in the project, or even iOS foundation classes as parameters works without a problem. As soon as I have some thirdparty library type as a parameter, XCode can not see the declaration (it shows up correctly in the generated header). I'm sure that all the libraries are correclty declared and included, because the third function actually works. Just declaring the type as Any makes the function visible and callable in XCode again, and after casting I can use the object as expected.Andrei Salavei
08/21/2024, 1:55 PMfun SomeLibraryClass.foo() {}
somewhere in iosMain.Hauke Radtki
08/21/2024, 4:35 PMSomeLibraryClass
is from a cocoapod dependency. All types from such dependencies seem to not be usable in the ios <--> kotlin interop interface. Any clues?