【发布时间】:2020-09-02 20:53:08
【问题描述】:
我正在尝试遵循示例 here 在 Kotlin 中构建本机跨平台移动应用程序。 (我已经链接到我遇到问题的步骤,但我正在使用链接仓库的主分支,它应该包含准备构建的代码)
Android 版本构建良好,我能够模拟它,但在 Xcode 上构建 iOS 应用程序时遇到问题。当我尝试构建项目时,出现以下错误:
/Users/myusername/Library/Developer/Xcode/DerivedData/KotlinIOS-ektaeprzdqunqygjxzrkmpdfyoyx/Build/Intermediates.noindex/KotlinIOS.build/Debug-iphonesimulator/KotlinIOS.build/Script-47729E7122F480EB00B9B36B.sh: line 4: cd: /Users/myusername/AndroidStudioProjects/mpp-ios-android/native/KotlinIOS/../../SharedCode/build/xcode-frameworks: No such file or directory
/Users/myusername/Library/Developer/Xcode/DerivedData/KotlinIOS-ektaeprzdqunqygjxzrkmpdfyoyx/Build/Intermediates.noindex/KotlinIOS.build/Debug-iphonesimulator/KotlinIOS.build/Script-47729E7122F480EB00B9B36B.sh: line 5: ./gradlew: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
作为 Kotlin 和应用程序开发的新手,我不知道如何调试或如何继续。 gradlew 似乎是我安装的 gradle 的包装器(因为我能够构建 Android 应用程序),但也许我做错了其他事情。
我正在使用 XCode 12.0 beta 6。
【问题讨论】:
标签: ios xcode kotlin gradle kotlin-multiplatform