小编Man*_*ath的帖子

Android Studio KMM 应用程序项目 - 为 ios 平台构建失败

我是第一次使用 KMM,刚刚在 Macbook M1 Pro 上创建了一个新的 KMM 应用程序项目。没有代码更改,这只是 hello world 应用程序。我已经能够成功构建Android平台的项目,并且它在Android模拟器上运行良好。但是,当我尝试为 iOS 平台构建它时,它失败并显示以下错误消息:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':shared'.
> The project must have a target for at least one of the following platforms: ios_simulator_arm64.

* 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 …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods kotlin-multiplatform

5
推荐指数
1
解决办法
2349
查看次数

标签 统计

cocoapods ×1

ios ×1

kotlin-multiplatform ×1