moko-kswift icon indicating copy to clipboard operation
moko-kswift copied to clipboard

`No extensions handle the extension type: kotlinx.metadata.klib.KlibModuleFragmentExtensionVisitor`

Open ln-12 opened this issue 3 years ago • 2 comments

I tried to integrate this plugin by adding id("dev.icerock.moko.kswift") version "0.6.0" to my plugins{} section and kswift { install(dev.icerock.moko.kswift.plugin.feature.SealedToSwiftEnumFeature) } as config. Unfortunately, the following error shows up when I try to build my KMM project using ./gradlew shared:build:

> Task :shared:linkDebugFrameworkIosArm64 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:linkDebugFrameworkIosArm64'.
> No extensions handle the extension type: kotlinx.metadata.klib.KlibModuleFragmentExtensionVisitor

I am using Kotlin 1.7.10.

Do you have any idea how to solve this?

ln-12 avatar Aug 22 '22 13:08 ln-12

i set kotlin 1.7.10 here but no error. can you add something in this sample to reproduce problem?

Alex009 avatar Aug 22 '22 14:08 Alex009

I could find out that the problem is caused by the combination of atomicfu and using this library via DSL. The build for this commit fails for me, when I run ./gradlew shared:clean && ./gradlew shared:build.

ln-12 avatar Aug 22 '22 15:08 ln-12