Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task linkDebugFrameworkIosX64 Failed #8

Open
juanlao opened this issue Jan 3, 2022 · 0 comments
Open

Task linkDebugFrameworkIosX64 Failed #8

juanlao opened this issue Jan 3, 2022 · 0 comments

Comments

@juanlao
Copy link

juanlao commented Jan 3, 2022

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.

  • What went wrong:
    Execution failed for task ':shared:linkDebugFrameworkIosX64'.

Compilation finished with errors

  • 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 14s
2 actionable tasks: 2 executed

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

juanlao added a commit to juanlao/kmm-integration-sample that referenced this issue Jan 4, 2022
Fix for failing XCode build Kotlin#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant