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

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

问题描述

我想在 Android Studio 中试用 Kotlin Multiplatform Mobile (KMM).我已经安装了插件,当我尝试为 IOS 添加配置时,没有任何显示.我只有一个 IOS 选项,但是当我点击它时没有任何显示.安卓设备已经设置好了,所以我可以在安卓中运行它.

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.

推荐答案

我猜你没有在 ma​​cOS 上运行 Android Studio.你必须有 macOS 才能通过 XCode 编译并使用 Apple 模拟器.

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(和 模拟器)和 命令行工具.

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 不同的操作系统上运行 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 中添加苹果设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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