https://kotlinlang.org logo
Join Slack
Powered by
# multiplatform
  • j

    James Bowler

    11/10/2025, 6:00 PM
    anyone else see a constant "generating xcode files" build happening in kmp projects in android studio, or idea? any ideas why I'm seeing this?
    h
    • 2
    • 1
  • o

    Oscar Rodriguez Co

    11/11/2025, 12:14 AM
    Hi everyone. our company is adopting Kotlin Multiplatform (KMP) to rewrite the business logic for our iOS and Android applications. We’re debating between using Room (via the KMP wrapper/multiplatform libraries) and SQLDelight for our shared data persistence layer. Which one would you recommend for a medium-to-large scale KMP project, and why? Specifically, we are looking for insights on: 1. Ease of integration with KMP (setup and platform-specific dependencies). 2. Performance and suitability for complex queries. 3. Development speed and maintenance overhead.
    d
    i
    h
    • 4
    • 3
  • h

    Horatio Thomas

    11/11/2025, 3:44 AM
    I have expect success set to true when initializing this client, but still getting this error. What can be causing this? I suspect it has to do with the timeout duration so I increased that. Also what are the best practices with handling errors using ktor-client in multiplatform?
    j
    • 2
    • 10
  • k

    Kumar Abhishek

    11/11/2025, 12:21 PM
    Quick KMP question: Anyone know how to get code coverage for
    iosMain
    Kotlin code? iOS tests run fine (
    iosSimulatorArm64Test
    ) but no coverage data generated. JaCoCo only works for JVM/Android targets. Is there a solution for Kotlin/Native coverage or are we stuck with "tests run but no metrics"? #C9JM6Q2UX #CDLD3845Q #C0NBD4UF8
    f
    • 2
    • 1
  • m

    Moe

    11/11/2025, 4:45 PM
    Hello guys anyone knows if ffmpeg-kt supports iOS as well ?
    m
    • 2
    • 1
  • d

    Dumitru Preguza

    11/11/2025, 8:01 PM
    IDEA does not want to run the app on physical device, only from XCode works, found this error message:
    f
    f
    • 3
    • 16
  • a

    Anudeep Ananth

    11/12/2025, 8:04 AM
    I built an KMP + CMP app targeting Android and iOS. Here is my experience, I hope it helps anyone who decides to go on this path:
    🧵 13
    🐕 6
    K 4
    • 1
    • 1
  • p

    purezen

    11/12/2025, 9:11 AM
    How is KMP / CMP compared to Electron for desktop apps ?
    j
    h
    • 3
    • 26
  • n

    Nikola Hadzic

    11/12/2025, 2:29 PM
    Hello, 👉 Our new version of the Gradle plugin for easy Compose Multiplatform localization now supports string templates, plurals, and arrays across all platforms (web, desktop, iOS, and Android). 🚀 Feel free to check it out and contribute. Happy coding! 🎉 K https://github.com/hyperether/compose-multiplatform-localize
    K 4
    ❤️ 1
    z
    h
    t
    • 4
    • 6
  • j

    Justin Tullgren

    11/12/2025, 10:06 PM
    Hi, does anyone know if the Kotlin Mulitplatform IDE Plugin works for previewing WASM compose UI? I am importing
    import org.jetbrains.compose.ui.tooling.preview.Preview
    and there is no preview panel in the editor. The project and builds fine.
    • 1
    • 1
  • j

    Justin Tullgren

    11/12/2025, 10:48 PM
    Hi, similar question. Can you preview commonMain Compose UI? The starter app comes with the tooling Preview Annotation but it does not render anything. I have to put it into a preview in the jvmMain with a different annotation to get it to work.
    👌 3
    p
    k
    • 3
    • 4
  • l

    Luca Fioravanti

    11/13/2025, 1:33 PM
    I'm using "`StringResource`" from
    androidx.compose.runtime
    but this type is not Parcelable. Any ways on how to workaround that?
  • b

    Bryan

    11/13/2025, 2:08 PM
    Hey does anyone know how to implement firebase cloud messaging in Multiplatform project I am getting stuck on iOS side
    f
    • 2
    • 2
  • p

    Phodal

    11/14/2025, 1:30 AM
    Hi, I'm using KMP to build the new version of https://github.com/unit-mesh/auto-dev . Now I had a question about use WASM in Kotlin. I try to use @JSModule but no working: JsException: Exception was thrown while running JavaScript code I don't know how to debug so changes to @JSFun
    Copy code
    /**
     * Not working
     */
    @JsModule("web-tree-sitter")
    external object ParserModule : JsAny {
        fun init(): Promise<JsAny>
    }
    
    /**
     * Final version
     */
    @JsFun("async () => { const ts = await import('web-tree-sitter'); await ts.default.init(); return ts.default; }")
    external fun initTreeSitter(): Promise<TreeSitterModule>
    I want to now for Web version, is its will cause performance issue to use JSFun? Or maybe have better way?
    t
    b
    • 3
    • 4
  • o

    Ohiorenua Aigboje

    11/14/2025, 8:52 PM
    I wanted to ask, is there a way to add inapp purchases and subscriptions in my CMP project. The KMP revenuecat library I saw on klibs.io has been achieved
    f
    • 2
    • 2
  • p

    Paul Klauser

    11/16/2025, 12:14 AM
    Anyone else seeing issues building iOS with Kotlin 2.2.21 and a directly integrated project? Project works fine on 2.2.20. Getting the following error:
    Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
    I see here, that may be indicative of not supporting the version of Xcode I’m using, 16.4, so I tried on 26, which does build, however the app crashes on launch on an iOS 18.5 device, citing a missing dynamic lib. It runs on an iOS 26 simulator just fine. I’m not able to reproduce with an empty project, so I don’t feel I have enough info to open a YouTrack issue, but hoping someone else has seen something and maybe we can make a solid repro case.
  • p

    Paul Klauser

    11/16/2025, 1:01 AM
    Also, to anyone using direct-integration with SPM and banging their head against the wall as to why their Compose resources aren’t working on an archived build: https://youtrack.jetbrains.com/issue/CMP-9284/Documentation-Issue-Compose-Local-SPM-Archive-MissingResourceException-Due-to-Missing-Pre-action
  • r

    Ravi

    11/16/2025, 5:40 PM
    Is there any library for code coverage in kmm
    f
    c
    • 3
    • 2
  • v

    Vishal Sheoran

    11/17/2025, 7:06 AM
    Hii Everyone, I am using Ktorfit for my KMM project. Now I am working on a task where I am only running android task (no ios task) for android build and not even adding ios sourcesets based on a flag. But when I am running it I am getting compile time errors saying Ktrofit classes/methods not found. Seems like Ktrofit is using KSP to generate classes for both android and ios but since iOS sourceset is not there it is not able to create all files are having some issue.
    Copy code
    with("de.jensklingenberg.ktorfit:ktorfit-ksp:2.0.0") {
            add("kspCommonMainMetadata", this)
            add("kspAndroid", this)
            add("kspAndroidTest", this)
    //        add("kspIosX64", this)
    //        add("kspIosX64Test", this)
    //        add("kspIosArm64", this)
    //        add("kspIosArm64Test", this)
    //        add("kspIosSimulatorArm64", this)
    //        add("kspIosSimulatorArm64Test", this)
        }
    This what I am trying. Has anyone tried this before. @Foso Can you help out here.
    ➕ 1
    c
    f
    s
    • 4
    • 3
  • p

    Prakash Irom

    11/17/2025, 10:43 AM
    Guys any good file picker library for kmp(android and ios)?
    s
    p
    • 3
    • 3
  • s

    Soumen pal

    11/17/2025, 10:49 AM
    Hi how do we get Charsets.US_ASCII in comminMain?? like we used to do in android
    Copy code
    val deviceNameArray = deviceName.toByteArray(Charsets.US_ASCII).copyOf(20)
    in common main if we try to import charsets we encounter the ktor charset which is different i guess
    j
    • 2
    • 5
  • s

    Slackbot

    11/17/2025, 2:04 PM
    This message was deleted.
    kodee happy 1
    l
    • 2
    • 1
  • a

    Adam

    11/17/2025, 4:16 PM
    Hi everyone, is anyone else having problems with Chrome Android 142 (142.0.7444.158) and Compose Multiplatform WasmJS not handling IME padding correctly? I've got an app which hasn't launched on Android yet so users are using the web version. Over the last few days I've had reports that text entry fields are covered by the android keyboard. I suspect a recent change in Chrome. It was fine last week. It's fine on Firefox. I'm curious if anyone else has as WasmJS app and has seen this happen?
  • f

    Fernando

    11/17/2025, 5:26 PM
    Does anybody knows if Jitpack supports publishing KMP libraries ?🤔 - I'm seeing this issue, but not sure if that is still the case. In case it doesn't would MavenCentral be the other option?
    p
    t
    • 3
    • 3
  • m

    markturnip

    11/18/2025, 4:15 AM
    Is there a Kotlin Multiplatform–friendly abstraction for Android’s
    Context
    that can be used in
    commonMain
    rather than directly referencing
    android.content.Context
    ?
    w
    e
    +2
    • 5
    • 15
  • m

    M.WAQAS

    11/18/2025, 12:49 PM
    Hi everyone, I'm planning a project using Kotlin Multiplatform (KMP). My machine is an HP ProBook with 16GB RAM and Windows 11. Is this setup okay for KMP (Android, IOS, Desktop, Web targets)? Also, how can I test or run the iOS part of the KMP project without a Mac? I need guidance or workarounds for running and debugging iOS on Windows. Thanks for the help!
    j
    l
    f
    • 4
    • 5
  • o

    Ohiorenua Aigboje

    11/18/2025, 1:56 PM
    Hello I am using library that only supports android and ios. I also want to implement my own implementation for desktop and wasm. How do I expect and actual this (🤔 pun intended) for only desktop and wasm
    t
    • 2
    • 1
  • m

    MiguelDecimal128

    11/18/2025, 4:43 PM
    I have stumbled on a performance anomaly while testing KMP arbitrary precision integer HugeInt. With my config, macosX64 is 100x slower than jvm, 50x slower than js & wasm at calculating HugeInt.factorial(10k), both in IntellJ and from the command line ./gradlew It isn't garbage collection, because the IntArray is mutated in-place. Maybe its' me ... I'm stumped. Ping me if this is something you want to pursue.
  • p

    Piotr Krzemiński

    11/18/2025, 8:17 PM
    can I ask someone with a Windows machine to try reproducing the issue from Wasm tests on Windows sometimes cannot find kotlin-test-karma-runner?
  • j

    Jeremie D

    11/18/2025, 10:26 PM
    ps: migrating from retrofit to ktor looked like this for me: 😩
    👀 2
    s
    • 2
    • 1