Fat*_*sta 7 xcode ios kotlin kotlin-multiplatform
我在 KMM 中创建了新项目(Hello World),然后是他们的官方网站。在 android 中,它运行流畅,但是当我尝试在 XCode 中运行时,它会因为 which I am unable to build / run the xcode project
. 我附上了我的错误截图和日志。不知何故,我猜测的 KMM 平台中没有生成 xcode 方案。谁能帮我理解我错过了什么?任何帮助将被appriciated。
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]
Run Code Online (Sandbox Code Playgroud)
iPP*_*iPP -2
如果即使从 Xcode 打开项目也无法立即运行并显示缺少共享框架,那么请尝试使用终端生成 iOS 平台的共享框架。导航到项目文件夹并执行命令: ./gradlew packForXcode 现在共享框架应该有一个 xcode-frameworks 产品,您应该能够通过 Xcode 构建和运行项目。
归档时间: |
|
查看次数: |
1330 次 |
最近记录: |