简体   繁体   中英

iOS simulator not found in KMM project

I'm trying to build a KMM project using Android Studio. I can see two separate configurations as well, each for AndroidApp and iOSApp. But the iOSApp configuration doesn't have an Execution target. Neither does it show any simulators in the dropdown. I do have Xcode installed and have run other iOS apps successfully in the iPhone Simulator.

ps I'm on M1 mac

在此处输入图像描述

once you run the project you'll see a iosApp.xcodeproj file being generated.. make sure your android studio pane is in project mode.

Once a successful build is done you'll be able to open this.xcodeproj file from within xcode

I have not been able to do that as well. If there is a build failure the reason is it is not finding the common folder. To do that open the terminal and run gradlew tasks.There should be a task allowing you to ready the shared folder with xcode

First select the device in which device you want to use in simulator then find build option and then click on it, your simulator automatically will popup on the screen

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