Hi, I am running into `error: use of '@import' wh...
# multiplatform
s
Hi, I am running into
error: use of '@import' when modules are disabled
Trying to integrate an analytics library Snowplow. added the relevant pod
Copy code
cocoapods {
        pod("SnowplowTracker")
    }
Log Task :cinteropSnowplowTrackerIosArm64
Copy code
Exception in thread "main" java.lang.Error: ../build/cocoapods/synthetic/IOS/build/Release-iphoneos/SnowplowTracker/SnowplowTracker.framework/Headers/SPSnowplow.h:31:1: error: use of '@import' when modules are disabled
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:274)
        at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:1196)
        at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:1185)
        at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:1181)
        at org.jetbrains.kotlin.native.interop.gen.jvm.DefaultPlugin.buildNativeIndex(Plugins.kt:33)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:289)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:214)
        at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:80)
        at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
        at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:40)
        at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:62)
Any workarounds for this?