Hi, I'm trying to configure compose on Multiplatfo...
# compose-ios
a
Hi, I'm trying to configure compose on Multiplatform, (project link) facing Issue Only with iOS part. Android is working fine.
c
Pleas paste code snippets inside the thread and not the main question. Also use code formatting for better readability.
a
One of the issues is following when rebuild the project.
@Chrimaeon Please check now.
c
This is a screenshot where the most important line is cut off.😅 You can use tripple back-Ticks to start a code block.
a
Copy code
java.lang.IllegalStateException: e: Could not find "/Users/ahmadhassan/Work/AndroidProjects/MyProjects/KMM/MyTest/shared/build/kotlinTransformedMetadataLibraries/commonMain/org.jetbrains.kotlinx-atomicfu-0.17.3-nativeInterop-8G5yng.klib" in [/Users/ahmadhassan/Library/Application Support/kotlin/daemon]
at org.jetbrains.kotlin.library.SingleFileResolveKt$resolveSingleFileKlib$1.fatal(SingleFileResolve.kt:21)
at org.jetbrains.kotlin.library.KotlinLibrarySearchPathResolver.resolve(SearchPathResolver.kt:175)
at org.jetbrains.kotlin.library.KotlinLibrarySearchPathResolver.resolve(SearchPathResolver.kt:181)
at org.jetbrains.kotlin.library.CompilerSingleFileKlibResolveStrategy.resolve(SearchPathResolver.kt:303)
at org.jetbrains.kotlin.library.SingleFileResolveKt.resolveSingleFileKlib(SingleFileResolve.kt:24)
at org.jetbrains.kotlin.library.SingleFileResolveKt.resolveSingleFileKlib$default(SingleFileResolve.kt:15)
at org.jetbrains.kotlin.cli.metadata.KlibMetadataDependencyContainer.\<init\>(K2MetadataKlibSerializer.kt:122)
a
You can use the compose-multiplatform-template to setup your project
If you prefer you can compare the setup with your project setup to see what is wrong
l
Try adding kotlin.native.cachekind=none to gradle.properties if not already there
Looks like it's already there in Github. Maybe try an explicit dependency on atomicfu?