https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Andrii Yanechko

03/01/2024, 9:15 PM
Failed to cinterop
GoogleSignIn
pod for
iosArm64
🧵
1
Nothing has changed in project setup and recently I keep getting:
Copy code
> Task :code:client:common:account:sso:account-sso-google:cinteropGoogleSignInIosArm64 FAILED
8 actionable tasks: 3 executed, 5 up-to-date
Exception in thread "main" java.lang.Error: /var/folders/v9/ryy_0lsn3rncb85ff8c5zkl40000gp/T/3884304850351612030.m:1:9: fatal error: module 'GoogleSignIn' not found
	at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:275)
	at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:83)
	at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:15)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:564)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:307)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe(main.kt:243)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.access$processCLibSafe(main.kt:1)
	at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
	at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:47)
	at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:23)
	at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:45)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':code:client:common:account:sso:account-sso-google:cinteropGoogleSignInIosArm64'.
> Process 'command '/Users/andriiyanechko/Library/Java/JavaVirtualMachines/corretto-17.0.7/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 2s
Copy code
cocoapods {
        pod("GoogleSignIn") {
            version = '7.0.0'
        }
        ios.deploymentTarget = iosLibs.versions.deployment.target.get()
    }
Turns out the issue was in updating Xcode to
15.2
after downgrading it to
15.0
and re-installing the iOS 17 dev component - everything started working again 🤷‍♂️
17 Views