Santiago Avila
11/15/2020, 9:49 PMbuild.gradle.kts
file looks:
kotlin {
android()
ios()
cocoapods {
summary = "Some description for a Kotlin/Native module"
homepage = "Link to a Kotlin/Native module homepage"
frameworkName = "SnailCore"
ios.deploymentTarget = "13.0"
pod("AFNetworking")
}
}
When I try to run the iOS app from Xcode I get this error:
> Task :SnailCore:cinteropAFNetworkingIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/kq/ztt_vhm14dq4hkd2py7xb_5m0000gn/T/tmp8310314041899312327.m:1:9: fatal error: module 'AFNetworking' 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:67)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:13)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:499)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:264)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:72)
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:37)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':SnailCore:cinteropAFNetworkingIosX64'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 3s
2 actionable tasks: 1 executed, 1 up-to-date
Command PhaseScriptExecution failed with a nonzero exit code
I tried deleting pods cache, cleaning build folders and always got the same error
Also what does it mean to re-import the project?Derek Ellis
11/16/2020, 1:27 AMAFNetworking
?Santiago Avila
11/16/2020, 3:06 AMimport cocoapods.AFNetworking
the compiler marks AFNetworking as an unresolved reference, what am I missing?Yaroslav Chernyshev [JB]
11/16/2020, 6:03 PMSantiago Avila
11/16/2020, 6:03 PMYaroslav Chernyshev [JB]
11/16/2020, 6:10 PMSantiago Avila
11/16/2020, 6:10 PMYaroslav Chernyshev [JB]
11/16/2020, 7:27 PMSantiago Avila
11/17/2020, 12:52 AM