Sunny
12/21/2022, 9:51 AMerror: use of '@import' when modules are disabled
Trying to integrate an analytics library Snowplow. added the relevant pod
cocoapods {
pod("SnowplowTracker")
}
Log
Task :cinteropSnowplowTrackerIosArm64
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?Sunny
12/21/2022, 11:50 AM