I have a shared module using the `gradle-kmp` layo...
# amper
i
I have a shared module using the
gradle-kmp
layout (using Compose Resources) and Compose enabled. It compiles fine for Android, but for iOS (
shared/src/ios/kotlin
) it complains
Unresolved reference: Composable
and
Mismatched Composable annotation between expect and actual declaration
when trying to compile, despite IntelliJ showing it as resolved. Compose is enabled on both the Android and iOS modules. Any ideas?
This might not be an Amper issue. I need to look into this warning:
Copy code
KLIB resolver: The same 'unique_name=runtime_commonMain' found in more than one library: /[REMOVED]/build/kotlinTransformedMetadataLibraries/commonMain/app.cash.sqldelight-runtime-2.0.2-commonMain-asQ-DQ.klib, /[REMOVED]/build/kotlinTransformedMetadataLibraries/commonMain/org.jetbrains.compose.runtime-runtime-1.6.10-rc01-commonMain-CVJWAg.klib
a
Hi! It indeed seems like a kotlin compilation issue
a
Ian, it would be really helpful, if you could create a sample project that reproduce this issue and file a bug report
i
Sorry for the delay. I've made a sample project now: https://gitlab.com/yttrian/sample-kmp-error-with-sqldelight
I'll file a bug report when I get a moment later.
a
Thanks Ian, appreciate your help! We’ll get back to the but report somewhere around next week