pererikbergman
10/09/2021, 2:25 PMCommand PhaseScriptExecution failed with a nonzero exit code
Seem to work from Android Studio, even the iOS build… 🤔
If I dig down a little bit into the logs in XCode I find this:
> Task :shared:linkDebugFrameworkIos 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.
I am totally lost, anyone have any idea or where to start looking?russhwolf
10/09/2021, 2:30 PMPlease 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
pererikbergman
10/09/2021, 2:35 PMrusshwolf
10/09/2021, 2:36 PMrusshwolf
10/09/2021, 2:37 PMpererikbergman
10/09/2021, 2:40 PMpererikbergman
10/10/2021, 3:54 AMwbertan
10/11/2021, 7:56 AMwbertan
10/11/2021, 7:57 AMpererikbergman
10/11/2021, 8:02 AMMejdi
10/12/2021, 8:16 PM