Hello everyone!
I have a small but annoying bug in Android Studio and generally every JetBrains IDE. I have a KMP app (shared logic, native UI). When I open any .swift file in Android Studio from the iosApp, I get no syntax highlighting and the message "Generating Objective-C bridging for Kotlin:" appears in the top-right corner and it never finishes.
Sometimes it works on the first try, but most of the time it just hangs indefinitely and I have to cancel it manually.
My setup:
- Android Studio Narwhal (AI-253.x)
- Kotlin Multiplatform plugin (latest, 0.9.x)
- K2 mode enabled
- macOS, Apple Silicon
- KMP project with native Swift UI (no Compose on iOS)
I've already tried:
- Adding kotlin.native.cacheKind=static and related flags to gradle.properties
- Increasing JVM heap
- Reinstalling the KMP plugin
- Clearing Gradle and IDE caches
Is this a known issue? Is there a workaround? I found YouTrack issue KMT-2057 which seems related, but it's been open since January 2026 with no fix yet.
Any help appreciated!