My app crashes with this error when something like this is invoked from swift code
libraryManager.observeDownloadErrors()
.
What is also funny here, is that usually when I try to navigate to a kotlin method in xcode, it takes me to the shared.h file which is barely legible obj-c gibberish. But when I navigate from this particular method which crashes, it takes me to some Swift file (but is still definitely what I have defined in kotlin):
Copy code
public class LibraryManager : KotlinBase {
open func observeDownloadErrors() -> KoruFlowWrapper<SomeKotlinException>
...
}
Michal Klimczak
08/24/2021, 2:45 PM
Oh, apparently you can't do this 🤷
Copy code
extension SomeKotlinException {
open override var message: String {
Michal Klimczak
08/25/2021, 10:43 AM
if anyone knows why it doesn't work, please let me know 🙂