Unable to add apple device in Android studio

a 夏天 提交于 2020-11-29 09:51:04

问题


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.


回答1:


I guess you are not running Android Studio on macOS. You must have macOS to compile through XCode and use Apple 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.

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.



来源:https://stackoverflow.com/questions/64112907/unable-to-add-apple-device-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!