JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.15k stars 1.17k forks source link

Cannot run Compose Multiplatform App on IOS Emulator #4415

Closed juanka-cybergod closed 7 months ago

juanka-cybergod commented 7 months ago

Describe the bug The application compiles but cannot run on the IOS Emulator running on a VMWare x86 virtual machine. throws the following error: kotlin.IllegalStateException: Metal is not supported on this system

Affected platforms

Versions

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

  1. Go to Run 'IOs App'
  2. Click on 'Run Log'
  3. Scroll down to 'Top'
  4. See error: kotlin.IllegalStateException: Metal is not supported on this system

Expected behavior Build and Run

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

MatkovIvan commented 7 months ago

Software renderer is not supported for iOS target, duplicate of #3443

kocheick commented 4 months ago

What does this mean ? Just yesterday, my code (multiplatform project) was running fine on iOS and after updating Android Studio and other stuff today it has been throwing this error about Metal not being supported on the system.

elijah-semyonov commented 4 months ago

What other stuff? Did you try to reboot?

kocheick commented 4 months ago

What other stuff? Did you try to reboot?

I'm not sure what the culprit was but after updating and rebooting system all is back to normal.

Thanks !!

okushnikov commented 3 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

TzvetomirBG commented 2 months ago

In my case kotlin multiplatform project with native UI (SwiftUI) from the Kotlin Multiplatform Wizard is perfectly running on my VMWare macOS system but the kotlin multiplatform project with compose UI framework is giving the error: kotlin.IllegalStateException: Metal is not supported on this system. So i guess that the problem is not in the Software renderer but in the difference of the the UI Implementation.