I have a question about KT-52344 <https://youtrack...
# multiplatform
s
I have a question about KT-52344 https://youtrack.jetbrains.com/issue/KT-52344 I’m trying out compose-multiplatform and I want to make a UI library, (part of a bigger piece of work across my team). When I do
./gradlew publishToMavenLocal
I’m getting the error
Copy code
bash
Task :generateMetadataFileForIosArm64Publication FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateMetadataFileForIosArm64Publication'.
So I have no .kt files in iosMain or androidMain so I understand the error…. but where would I place this work around? in the root level build.gradle.kts (where I am defining all the publishing stuff) ?
k
Not entirely sure but based on the ticket I would guess it would be in your library modules
build.gradle
file, as that's where the KMP targets are defined
s
Thanks will have a play around this morning.
Didn’t get this to build, but The official documentation said that publishing block should be in the “shared” build.gradle. Once I switch that I didn’t get the error.. https://kotlinlang.org/docs/multiplatform-publish-lib.html#structure-of-publications