After upgrading to Big Sur, the cinterop task for ...
# kotlin-native
c
After upgrading to Big Sur, the cinterop task for cocoapod dependencies is failing. Anyone have any idea what might be going on? System OS: macOS Big Sur version 11.6 Android Studio: Arctic Fox 2020.3.1 Patch 3 I tried creating a new KMM Application project using CocoaPods for the iOS framework distribution step. After creating the project a gradle sync works fine. Then I add
pod("AFNetworking")
to the
cocoapods
section of the build.gradle.kts. When I try to do a gradle sync after that the following error appears:
Copy code
Execution failed for task ':shared:cinteropAFNetworkingIos'.
> Process 'command '/Users/me/Library/Java/JavaVirtualMachines/corretto-16.0.2/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':shared:cinteropAFNetworkingIos'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
    <36 internal calls>
Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/me/Library/Java/JavaVirtualMachines/corretto-16.0.2/Contents/Home/bin/java'' finished with non-zero exit value 1
	at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:414)
	at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:52)
	at org.gradle.process.internal.DefaultExecActionFactory.javaexec(DefaultExecActionFactory.java:198)
	at org.gradle.api.internal.project.DefaultProject.javaexec(DefaultProject.java:1145)
	at org.jetbrains.kotlin.compilerRunner.KotlinToolRunner.runViaExec(KotlinToolRunner.kt:102)
	at org.jetbrains.kotlin.compilerRunner.KotlinToolRunner.run(KotlinToolRunner.kt:77)
	at org.jetbrains.kotlin.gradle.tasks.CInteropProcess.processInterop(KotlinNativeTasks.kt:1017)
    <122 internal calls>
v
What Xcode version do you use? If it is Xcode13 then there is a known issue fixed in Kotlin 1.6. So either use Xcode 12.5 till Kotlin 1.6 release or try 1.6-RC
💯 1
c
Ah! I am on Xcode 13 after the update. Thanks @Viacheslav Kormushkin.