compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

iosApp run configuration not found

Open sedubois opened this issue 2 years ago • 2 comments

Describe the bug I cloned https://github.com/JetBrains/compose-multiplatform-ios-android-template/tree/dde60620de9f8e3ba4d82e08141712a467af5d86 and tried to run the demo on an iOS simulator from Android Studio as the README says. However, Android Studio does not show any iosApp run configuration and no option is available to create one.

Affected platforms

  • iOS

Versions

  • Kotlin version*: kotlin.version=1.8.20
  • Compose Multiplatform version*: compose.version=1.4.0
  • OS version(s)* (required for Desktop and iOS issues): macOS Ventura 13.3.1
  • OS architecture (x86 or arm64): Apple M2 - arm64
  • Android Studio Flamingo | 2022.2.1

To Reproduce Steps and/or the code snippet to reproduce the behavior:

  1. unzip https://github.com/JetBrains/compose-multiplatform-ios-android-template/archive/dde60620de9f8e3ba4d82e08141712a467af5d86.zip
  2. Open directory in Android Studio
  3. NB: there are warnings, see screenshot below
  4. As per the screenshots, there is no iosApp run configuration

Expected behavior It should be possible to run the iosApp in an iOS simulator from Android Studio.

Screenshots

Screenshot 2023-04-18 at 09 47 26

Screenshot 2023-04-18 at 09 50 26

Screenshot 2023-04-18 at 09 50 39

Screenshot 2023-04-18 at 09 58 04

sedubois avatar Apr 18 '23 08:04 sedubois

Do you have the latest KMM plugin installed in your Android Studio?

Screenshot 2023-04-19 at 11 22 51

eymar avatar Apr 19 '23 09:04 eymar

Thank you @eymar, sorry that I missed that item in the README. It would be nice if kdoctor could check that.

After installing the plugin "Kotlin Multiplatform Mobile" (v 4.22) I can start the app in the iPhone 14 simulator.

sedubois avatar Apr 19 '23 10:04 sedubois