无法在Android Studio中添加Apple设备 [英] Unable to add apple device in Android studio

查看:231
本文介绍了无法在Android Studio中添加Apple设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android Studio中试用Kotlin Multiplatform Mobile(KMM).我已经安装了插件,并且当我尝试为IOS添加配置时,什么都没有显示.我只有一个IOS选项,但是单击它时没有任何显示. android设备已经设置好,因此我能够在Android中运行它.

I want to try out the Kotlin Multiplatform Mobile (KMM) in Android studio. I have installed the Plugin and when I try to add configuration for IOS, nothing shows up. I just have an IOS option but nothing shows up when I click on it. The android device is already set up, so I was able to run it in Android.

推荐答案

我猜您不是在 macOS 上运行Android Studio.您必须具有macOS才能通过 XCode 进行编译,并使用Apple Simulators .

I guess you are not running Android Studio on macOS. You must have macOS to compile through XCode and use Apple Simulators.

如果您在macOS上运行AS,并且使用KMM插件创建了项目,那么很奇怪,您尚未设置iOS的运行配置,但是您可以尝试单击上方的+按钮-左上角.请记住,您必须在计算机上安装 XCode (和 Simulators )和命令行工具.

If you are running AS on macOS and you created the project with KMM plugin it's weird that you don't have the run configuration for iOS already set up, but you can try to click on the + button on the upper-left corner. Remember that you must have XCode (and Simulators) and command line tools installed on your machine.

如果您在不同于macOS的OS上运行AS,则只能编译该库的非本机(不是macOS或iOS)部分.

If you are running AS on an OS different from macOS you can only compile the non native (not macOS or iOS) part of the library.

这篇关于无法在Android Studio中添加Apple设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆