icerockdev / moko-kswift

Swift-friendly api generator for Kotlin/Native frameworks
https://moko.icerock.dev
Apache License 2.0
351 stars 22 forks source link

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

Open ln-12 opened 2 years ago

ln-12 commented 2 years ago

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?

Alex009 commented 2 years ago

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

ln-12 commented 2 years ago

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.