UnresolvedDependencyException when using Koin with Kotlin Multiplatform for iOS
I'm migrating some code and This might be a silly question, but I'm trying to set up dependency injection in a Kotlin Multiplatform project using Koin, but I'm running into an `UnresolvedDependencyException` when trying to resolve a specific dependency for the iOS target. I'm using Koin version 3.1.2 and Kotlin 1.5.31. I've defined my modules like this: ```kotlin val appModule = module { single { MyRepository() } single { MyViewModel(get()) } } ``` In my commonMain source set, I call `startKoin { modules(appModule) }` from my shared code, but when I try to access `MyViewModel` in my iOS code like this: ```swift let viewModel = MyViewModel() ``` I get the following behavior in Xcode: ``` UnresolvedDependencyException: No declaration found for MyViewModel ``` I've confirmed that `MyViewModel` is correctly defined in the shared module. Additionally, I made sure to include Koin's iOS dependencies in my `build.gradle.kts`: ```kotlin kotlin { ios() } dependencies { implementation("io.insert-koin:koin-core:3.1.2") implementation("io.insert-koin:koin-core-ext:3.1.2") iosMainImplementation("io.insert-koin:koin-ios:3.1.2") } ``` I've tried cleaning and rebuilding the project, as well as invalidating caches in Android Studio, but the behavior continues. Is there something I'm missing in terms of configuration or Koin setup specifically for the iOS part of my Kotlin Multiplatform project? I'm working on a CLI tool that needs to handle this. I'd really appreciate any guidance on this. This issue appeared after updating to Kotlin stable. Is there a better approach?