Android Studio KMM iOS run will not start in iPhone Simulator

Viewed 1920

I am following the "Create your first multiplatform application" tutorial from KotlinLang.org and everything worked fine until I try to run the example on an iOS machine. The device simulator opens after a long time but the app is not run on it. I tried starting the simulator first and then making the test with the same results. I tried iPhone 11 and iPhone 8 simulators all with the same result. Everything compiles and builds successfully but no application shows up on the screen in the simulator.

Stimulator run iPhone 8

I can run the iOS test and the result is successful as you can see with the iPhone 11 test but still the app will not show in the simulator. I also tried the KMM-Sample-Master from Github with the same results.

iPhone 11 test

Can anyone help with this? If you need more information then please request it?

Thanks

2 Answers

I have the same issue. I cannot run the iosApp from Android Studio while the Android App runs correctly. What I did is building the iosApp via Android Studio. So in the list of run configurations, select iosApp and then click Run. Once the build is finished open Xcode, select the iosApp, and run the project from there. Every time there are changes in the code, build it in Android Studio and run it from Xcode.

As of Android Studio 4.1.2 This issue has been corrected. Build stamp follows:

Android Studio 4.1.2
Build #AI-201.8743.12.41.7042882, built on December 19, 2020
Runtime version: 1.8.0_242-release-1644-b3-6915495 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 1246M
Cores: 4
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
Non-Bundled Plugins: com.thoughtworks.gauge, org.intellij.plugins.markdown, com.intellij.marketplace, org.jetbrains.kotlin, com.squareup.sqldelight, org.moe.community, com.jetbrains.kmm
Related