Hello everyone, I’ve created an app that runs on a...
# koin
c
Hello everyone, I’ve created an app that runs on android, ios and desktop targets, when I run the android app it runs fine, but when I run the ios app I get the following error;
Copy code
org.koin.core.error.InstanceCreationException: Could not create instance for '[Singleton:'ui.viewmodels.TestViewModel']
What could be the reason please? In the iosApp I already call my initKoin function
Copy code
@main
struct iOSApp: App {
    
    init() {
        AppModuleKt.doInitKoin()
    }

	...
}
1
I found the reason why this was happening. It was failing to instantiate the viewmodel because I was calling a function that was jvm only when creating my Supabase client
👍 1