Tom Pratt
12/29/2020, 6:03 PMpod("NearbyMessages")
4. Now when I gradle sync I get the following error.
> Task :kotlin-library:cinteropNearbyMessagesIosArm64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/t7/gwvnk41x66g5kmr7s7y8thdw0000gn/T/6648793494349780018.m:1:9: fatal error: module 'NearbyMessages' not found
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:507)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:265)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:73)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:19)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:41)
Execution failed for task ':kotlin-library:cinteropNearbyMessagesIosArm64'.
> Process 'command '/Applications/Android <http://Studio.app/Contents/jre/jdk/Contents/Home/bin/java|Studio.app/Contents/jre/jdk/Contents/Home/bin/java>'' finished with non-zero exit value 1
I was able to install the cocoapod using a podfile and pod install
. With no KMM involved. I've tried all sorts of random stuff besides but these are the steps that seem like they should work.mkrussel
12/29/2020, 6:32 PMTom Pratt
12/29/2020, 6:56 PMmkrussel
12/30/2020, 12:55 PMTom Pratt
12/30/2020, 6:43 PMframework module kotlin_library {
umbrella header "placeholder.h"
export *
module * { export * }
}
mkrussel
12/30/2020, 8:19 PMkotlin_library
and not NearbyMessages
like gradle is looking for.
Seems like a strange name though. Is that the module file for the framework installed when you ran pod install
or is that an output from gradle?Tom Pratt
12/30/2020, 8:44 PMTom Pratt
12/30/2020, 8:45 PM