james
12/16/2019, 3:36 AM> Task :xxx:cinteropXXXSDKIos
Exception in thread "main" java.lang.Error: /Users/jamesarmstrong/Library/Developer/Xcode/DerivedData/xxx-drgbtxpztxcjlagjpokdugnyhprg/Build/Products/Debug-iphonesimulator/XXXSDK/XXXSDK.framework/Headers/XXXFile.h:9:1: error: use of '@import' when modules are disabled
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:146)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:966)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:955)
at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:91)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:221)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:39)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:71)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:18)
Using Kotlin 1.3.61 with the multiplatform and cocoapods plugins, when its running the cinterop task over one of my cocoapod dependencies (an objective-c lib that uses @import in a few places) I get the above error. In the XCode project, modules appear to be enabled. Any idea what I'm missing?
Edit: Worked around it by manually replacing use of these module imports for now