Hey all, I'm unable to get a successful build in ...
# compose-ios
a
Hey all, I'm unable to get a successful build in a KMM project using
Compose Multiplatform v1.5.0-rc04
and
compose.material3.
The build fails with the following error:
Copy code
> Task :shared:compileKotlinIosArm64 FAILED
e: Could not find "org.jetbrains.compose.material:material" in [/Users/.konan/klib, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.0/klib/common, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.0/klib/platform/ios_arm64]
However, using
compose.material
works just fine. Am I missing something or
compose multiplatform
does not support M3? Most of the sample projects I've come across still use M2.
p
I haven't had any issues using it. I have 1.5.0-rc02 but it shouldn't matter. It seems to me that you have a compilation error because wrong import name. Does it compile for Android?
a
Yes @Pablichjenkov. It compiles successfully for Android.
p
Then it probably haven't pulled the material3 binaries for iOS. Do a cleanup, invalidate caches, reopen the IDE. Did you see the m3 library binary under ~/.konan as the message indicates?
a
I've done that and the m3 library still isn't there. But combing through the project dependencies, I can see that M3 dependency is present and resolved.
p
Humm, I go back to my point 1. The import seems from material not material3. My guess is the Android source still keeps the material dependency and that's why it compiles ok. But I am far from my Mac to check, sorry
a
That's alright. I'll keep tweaking until I find a solution. Thanks.
👍 1
d
Can you please create a minimal reproducible sample project and share it on GitHUb?
b
Was a solution/fix found for this?
if i include both m2 and m3 dependencies (while still using m3) it at least compiles, installs, and runs
d
Take a look at import section
b
Imports are only m3 fwiw
a
@brandonmcansh at the time, using both m2 and m3 dependencies was the only way I got it working.
👍 1
d
even I am facing this issue after including materialIconsExtended
395 Views