gpt4 book ai didi

ios - Kotlin Multiplatform Mobile 无法在 iOS 上运行 : Execution failed for task ':shared:compileKotlinIosX64'

转载 作者:行者123 更新时间:2023-12-03 14:37:09 24 4
gpt4 key购买 nike

我已创建 新鲜项目(Hello World) 在 KMM 之后是他们的官方网站。在 android 中,它运行流畅,但是当我尝试在 XCode 中运行时,它会因此出现错误 I am unable to build / run the xcode project .我附上了我的错误截图和日志。不知何故,我猜测的 KMM 平台中没有生成 xcode 方案。
谁能帮我理解我错过了什么?
任何帮助将被appriciated。
Screenshot of android studio build settings
Screenshot of blank iOS scheme
XCode error log 1
XCode error log 2

Following is my dev env:

Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```


XCode Logs:

> Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.

> Task :shared:compileKotlinIosX64 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
> 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 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]


最佳答案

为此,我联系了社区,并最终找到了解决方案。这是link to that issue我提出并解决了这个问题。
如果其他人遇到同样的问题,这主要是 kotlin 文件损坏的原因。
还可以尝试根据评论在 XCode 中检查您的 cmd 行工具。
希望这可以帮助某人。干杯。

关于ios - Kotlin Multiplatform Mobile 无法在 iOS 上运行 : Execution failed for task ':shared:compileKotlinIosX64' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66113448/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com