获取“选定方案“iosApp”不支持“iphone模拟器”” Kotlin 多平台错误
我正在尝试运行 由 Android Studio 中的 Kotlin 多平台移动插件生成的初始示例应用。我按照这些步骤进行环境设置。 Android模拟器运行正常,但iPhone模拟器无法运行。运行配置出现以下错误:
Error: Selected scheme "iosApp" does not support "iphonesimulator"
当我运行配置(忽略错误)时,iPhone 模拟器确实会打开并且似乎会加载 iOS,但它永远不会加载 Android Studio 中的“Hello,iOS”应用程序。
什么会导致这种情况呢?
版本信息:
- macOS 12.2.1
- Android Studio 2021.1.1 补丁 2
- Xcode 13.3
I am trying to run the initial example apps generated by the Kotlin Multi Platform Mobile plugin in Android Studio. I followed these steps for my environment setup. The Android Simulator runs correctly, but the iPhone Simulator does not. The Run Configuration has the following error:
Error: Selected scheme "iosApp" does not support "iphonesimulator"
When I run the configuration (ignoring the error), the iPhone simulator does open and appears to load iOS, but it never loads the "Hello, iOS" application that is in Android Studio.
What would cause this?
Version Information:
- macOS 12.2.1
- Android Studio 2021.1.1 Patch 2
- Xcode 13.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我用以下方法修复了它。
com.jetbrains.appcode.bridgeservice.plist
那里。I fixed it with the following method.
com.jetbrains.AppCode.BridgeService.plist
there.从我的测试来看,我们收到此错误的原因似乎有多种:
而不是
From my tests, it seems that there may be multiple reasons for which we receive this error:
instead of
我通过在Android Studio上进入
编辑配置
,并再次选择我的Xcode Project文件的位置来解决此问题。我相信这是Android Studio中KMM插件的错误,尚未修复。I managed to fix this by going into
Edit Configurations
on Android Studio and choosing the location of my XCode project file again. I believe this is an error of the KMM plugin in Android Studio and has yet to be fixed.更新 Android Studio 和 KMM 插件对我有用。
Updating Android Studio and KMM plugin worked for me.