Kotlin / kmp-integration-sample

Apache License 2.0
100 stars 50 forks source link

Task linkDebugFrameworkIosX64 Failed #8

Open juanlao opened 2 years ago

juanlao commented 2 years ago

Following the documentation from here I am getting an error on linkDebugFramewokrIosX64 task. The log is:


Task :shared:linkDebugFrameworkIosX64 FAILED e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:

kotlin.native.cacheKind.iosX64=none

Also, consider filing an issue with full Gradle log here: https://kotl.in/issue The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1. output: ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/lib/darwin//libclang_rt.ios.a, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/lib/darwin//libclang_rt.ios.a (4 slices) Undefined symbols for architecture x86_64: "___cpu_model", referenced from: polyHash_x86(int, unsigned short const*) in libstdlib-cache.a(result.o) ld: symbol(s) not found for architecture x86_64

FAILURE: Build failed with an exception.

BUILD FAILED in 14s 2 actionable tasks: 2 executed

It happens with code from "final" branch too. Any help would be appreciated