Hi, I'm trying to use Koin in iOS. My setup is the...
# koin
a
Hi, I'm trying to use Koin in iOS. My setup is the following: I have multiple feature kmp modules that uses koin. I also created a core/koin kmp module to handle the init of Koin and in each feature module i have a function loadKoinModules to load their own corresponding modules. I converted all the kmp modules i needed in iOS into individual xcframework. In ios I'm running the following in iOS:
Copy code
Koin_iosKt.doInitKoin() // core/koin module to init koin
MyFeatureModuleKt.loadKoinModules() // load koin modules for that feature
But im getting the following error:
Copy code
KoinApplication has not been started
But Koin does init. Now the workaround that seemed to work was that if I have the koin init in the same feature it works as expected. Wondering why having a separate module for init koin wouldn't
Was wondering if maybe is because the Koin instance that was started is not shared across between xcframeworks?
a
you have perhaps a dependency property injection that required to be injected, while it's not started
look at any by inject() used around