Hi! I'm trying to use Kodein for a kotlin/native (android/ios) project. For Android it works fine, but for iOS I get this error:
Copy code
/Users/ola/Library/Developer/Xcode/DerivedData/iosApp-cppstrddainbemakpnqdkhrhuxzo/Build/Products/Debug-iphonesimulator/app.framework/Headers/app.h:792:25: Cannot find protocol declaration for 'AppKodein_di_coreDKodein'; did you mean 'AppKodein_di_coreKodein'?
This is my Kodein definitino in the common module:
Copy code
internal val kodein = Kodein {
bind<String>("baseUrl") with provider { "<https://reqres.in/api/>" }
bind<API>() with singleton {
val baseUrl by kodein.instance<String>("baseUrl")
KtorAPI(baseUrl)
}
}
internal class KodeinProxy {
internal fun getKodein(): Kodein {
return kodein
}
}