Hello guys, I have a native KMP project and I am g...
# koin
t
Hello guys, I have a native KMP project and I am getting a crash on iOS This is the iOS Implementation
Copy code
class AppDelegate: NSObject, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
        
        doInitKoin(config: nil)
        FirebaseApp.configure()
        
        return true
    }
}
This is the common implementation
Copy code
Modules.kt

expect val platformModule: Module

val commonModule = module {
    singleOf(::RemoteFirebaseRepository).bind<FirebaseRepository>()
}
Copy code
KoinHelper.kt

// Common App Definitions
fun appModule() = listOf(commonModule, platformModule)

fun initKoin(config: KoinAppDeclaration? = null) {
    // Initialize Koin with the platform-specific module
    startKoin {
        config?.invoke(this)
        modules(appModule())
    }
}
Any help if highly appriciated