简体   繁体   中英

Unable to add apple device in Android studio

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.

在此处输入图片说明

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.

Had the same issue. What fixed it it for me was installing Xcode command line tools with xcode-select --install . If that doesn't work, generally check the integrity of your Xcode setup.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM