Reputation: 476
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.
Upvotes: 6
Views: 3648
Reputation: 131
I encountered this error after I had updated my macOS to the latest version (Sequoia 15.0.1 (24A348) as of this date)
What worked for me:
Hope this helps someone
Upvotes: 1
Reputation: 139
You need following to run your KMP app from android studio on ios device
After all these steps do the rest as follow
As you can see for 1st field you need to choose iosApp.xcodeproj and you will find it under your created project directory open it there you will find iosApp folder inside it you can find iosApp.xcodeproj file choose it in the 1st field and for rest of field select as show in screenshot. Apply -> OK
There you go you will have iosApp configuration.
Upvotes: 1
Reputation: 19
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.
Upvotes: 1
Reputation: 15012
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.
Upvotes: 4