Amitesh
01/30/2024, 1:44 PMTask :shared:cinteropGoogleMapsIosSimulatorArm64
Exception in thread "main" org.jetbrains.kotlin.native.interop.gen.CInteropPrettyException: It seems that library is using clang modules. Try adding `-compiler-option -fmodules` to cinterop.
For example, in case of cocoapods plugin:
pod("PodName") {
// Add these lines
extraOpts += listOf("-compiler-option", "-fmodules")
}
at org.jetbrains.kotlin.native.interop.gen.ClangModulesDisabledPrettifier.prettify(ExceptionPrettifiers.kt:36)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:713)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:243)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.access$processCLibSafe(main.kt:1)
at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:47)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:23)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:45)
> Task :shared:cinteropGoogleMapsIosSimulatorArm64 FAILED
error: Process 'command '/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:cinteropGoogleMapsIosSimulatorArm64'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Showing this error while installation of iOSApp