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

    Umberto Pompei

    09/12/2025, 8:45 AM
    Hi! I am looking for a compression library available for KMM. Do you have anything to suggest?
    👀 1
  • e

    ehsan

    09/12/2025, 8:58 AM
    Hi everyone, I am trying to upgrade our KMP project from Kotlin 1.9.25 to Kotlin 2(2.0.21 to be specific). I have updated my Android Studio to Narwhal 3 Feature Drop | 2025.1.3 and set up the gradle to use kotlin 2.0 as follows:
    Copy code
    kotlin_language_version = 2.0
    sourceSets.configureEach {
        languageSettings {
            apiVersion = kotlin_language_version
            languageVersion = kotlin_language_version
        }
    }
    The I have updated almost all my dependencies to their latest and the gradle sync successfully but when I build/run the project I get the error below:
    > Task :common:kspStagingMyAppDebugKotlinAndroid FAILED
    e: -api-version (2.0) cannot be greater than -language-version (1.9)
    I can add the stack trace if needed!
  • s

    Slackbot

    09/12/2025, 9:28 AM
    This message was deleted.
    h
    h
    • 3
    • 5
  • m

    MarkRS

    09/12/2025, 6:42 PM
    Fails to build after moving to 2.2.20 from 2.2.10. https://issuetracker.google.com/issues/444595002 My YouTrack account appears not to work any more so I can't report it there.
  • s

    Sagar Khurana

    09/12/2025, 8:10 PM
    Bug Report
    iOS Compilation Failure with ModalBottomSheet Components IR lowering fails during iOS compilation with "Collection contains more than one matching element" error when using ModalBottomSheet components with complex nested composables. Android compilation works without issues.
    ✅ 1
    • 1
    • 3
  • m

    Matti Zaaremba

    09/12/2025, 8:54 PM
    I hava running project for Android and iOS but durinch archive IPA file i am getting issue when ia call gradlew buil a got error framework not found FirebaseCore any ideas why ?
  • v

    v79

    09/13/2025, 7:17 AM
    When starting a new compose multiplatform project (Android & Desktop, maybe iOS), what's the recommendation for handling navigation? I've tried to use
    Copy code
    org.jetbrains.androidx.navigation:navigation-compose:2.9.0-beta05
    without any luck. Gemini agent went with Voyager, but the code it wrote wouldn't even compile. And I am reading that there's a new alpha Navigation 3 from Google?
    c
    j
    • 3
    • 2
  • j

    Jimmy Nelle

    09/13/2025, 9:02 AM
    Getting crashes when using DatePicker component on iOS with kotlinx datetime. I'm using Kotlin 2.2.20, CMP 1.9.0-rc02 and kotlinx.datetime 0.7.1.
    Copy code
    Uncaught Kotlin exception: kotlin.native.internal.IrLinkageError: Can not get instance of singleton 'System': No class found for symbol 'kotlinx.datetime/Clock.System|null[0]'
    More in 🧵
    c
    • 2
    • 4
  • j

    John Safwat

    09/14/2025, 1:20 PM
    i have issue in this card that i want the both blue cards get the same heigh as tallest one . have you u any idea of how to do it
    t
    • 2
    • 3
  • a

    Adam Hill

    09/14/2025, 7:46 PM
    Are there any best practices for structuring a CMP project that will have a CMP tool window (a sidecar to Xcode) as the main focus and a few helper apps in pure Swift / SwiftUI it will have to interoperate with? My specific case is using XcodeKit, which needs a Service Extension, an Editor Extension and a small CommunitcationsBridge piece to communicate across a security boundary because Xcode, practically, has no Extension API. Mainily just Accessibility API's. I have two really good examples Swift projects that already do this as templates for the Swift structure, I just dont know if I can have some kind of shared project (or some hybrid) I can use for both. RIP App Code 🫗 Any suggestions or pointers to other projects that have both sides in one repo, would be appreciated.
  • m

    Matti Zaaremba

    09/15/2025, 6:41 AM
    Hi, Has anyone used any library to embed YouTube in compose myltiplatform ?
    c
    s
    • 3
    • 2
  • b

    Bao Le Duc

    09/15/2025, 8:06 AM
    Hi, I have a file config.json in library/commonMain/resources folder, How can I read it from iOS? I already try but it doesn’t work
    Copy code
    NSBundle.allBundles.filterIsInstance<NSBundle>().forEach { bundle ->
    
        val path = bundle.pathForResource("config", "json")
    
        if (path != null) {
            return NSString.stringWithContentsOfFile(
    			path = path,
    			encoding = NSUTF8StringEncoding,
    			error = null
            ) as String? ?: throw IllegalStateException("Failed to read file")
        }
    }
    It seems that the file wasn’t copied into iOS bundle. I’m not using https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-resources.html because I don’t use Compose Multiplatform in the app Please help
    f
    t
    • 3
    • 7
  • g

    GeorgeS-Litesoft

    09/15/2025, 9:13 PM
    Hi, I'm trying to use io.mockative.Mockable and it is supplying the @Mockable annotation. However, in my tests, I can't get these to be found:
    Copy code
    import io.mockative.mock
    import io.mockative.of
    I have tried everything that ChatGPT suggests... My build.gradle.kts:
    Copy code
    plugins {
        kotlin("jvm") version "2.2.0"
        id("com.google.devtools.ksp") version "2.2.0-2.0.2" // KSP for Kotlin 2.2.0
        id("io.mockative") version "3.0.1"
    }
    
    group = "io.isgi"
    version = "1.0-SNAPSHOT"
    
    dependencies {
        implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
        implementation("io.mockative:mockative:3.0.1")
        kspTest("io.mockative:mockative-processor:3.0.1")
    
        testImplementation(kotlin("test"))          // kotlin.test API
        testImplementation(kotlin("test-junit5"))   // engine binding
    }
    
    tasks.test { useJUnitPlatform() }
    kotlin { jvmToolchain(21) }
    My gradle.properties:
    Copy code
    kotlin.code.style=official
    
    #KSP
    ksp.useKSP2=true
    My setting.gradle.kts:
    Copy code
    rootProject.name = "kotlinNativeUtilsLib"
    
    pluginManagement {
        repositories {
            gradlePluginPortal()
            google()        // <-- needed so Gradle can find AGP for the Mockative plugin
            mavenCentral()
        }
    }
    
    plugins {
        id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
    }
    
    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
        }
    }
    Anybody see the problem or can share a repo? Thx, George
    🧵 3
  • a

    Albilaga

    09/16/2025, 2:57 AM
    Anybody tried mac os 26 with KMP? Is it working fine for all the tooling? want to upgrade but not sure if the tooling will be fine as well
    h
    p
    • 3
    • 5
  • f

    ferdialif02

    09/16/2025, 4:20 AM
    Hi, i am trying to use dropShadow in compose multiplatform. But the Shadow is inaccessible from commonMain, says it is private. Do i need to use specific cmp version ? Thanks
    j
    • 2
    • 3
  • g

    Grigory

    09/16/2025, 1:20 PM
    Hi. Created the compose multiplatform project in Android Studio Narwhal 3 Feature Drop | 2025.1.3. The created project runs on Android and JVM, on iOS build ends with error "No such module 'ComposeApp'". Intel macOS 15.5, xCode 16.4 What could have gone wrong? Logs from xCode in a file
    Build iosApp_2025-09-16T15-49-17.txt
    👀 1
  • r

    Ravi

    09/16/2025, 2:06 PM
    Hello Everyone, My name is Ravi Sinha.. I recently migrated my product to cmp with kmp. i am seeing one issue in firebase crashes for ios.. Not able to get readable crash logs.. does anyone hlep me get logs property like Android using cmp/kmp
  • m

    MarkRS

    09/16/2025, 2:28 PM
    I can't access the StoreKit2 API in the shared module. "import platform.StoreKit" in iosMain only offers me the original StoreKit objects. I've cleaned caches very aggressively and got the latest versions of everything. It does seem to work in the ios module (outside shared), Can they be accessible in shared/iosMain?
  • a

    alexandre mommers

    09/16/2025, 10:07 PM
    is there a doc to show what we can do and the limit of the new "web" target from the 2.2.20 ?
    👀 1
    t
    m
    +3
    • 6
    • 37
  • m

    Mario

    09/16/2025, 10:37 PM
    Hi! Anyone has some suggestions on Kottie vs. Compottie? I like that Kottie keeps it simple by not having its own rendering engine, but it has less stars on GitHub (so maybe fewer users?) and less activity recently. Thank you 🙂
    👀 1
    m
    • 2
    • 3
  • r

    Ravi

    09/17/2025, 3:34 AM
    Hello Everyone's does anyone face any issue with ios firebase crash logs using multi platform
    f
    s
    • 3
    • 7
  • g

    Gautam Shorewala

    09/17/2025, 5:46 AM
    Hi everyone, I have a KMM project with two modules:
    shared
    and
    payment
    . I want to publish only the
    shared
    module as a Maven artifact and have the
    payments
    module included inside it so that when my consumer adds the
    shared
    dependency,
    payments
    is available too. Currently,
    shared
    depends on
    payments
    via
    implementation(project(":shared:payments"))
    in
    commonMain
    . When I publish just
    shared
    and use it in my consumer app, I get errors like:
    Copy code
    Could not find ProjectName.shared:payments:unspecified.
    is there a way to package
    payments
    inside
    shared
    , so only one artifact needs to be published?
    h
    • 2
    • 2
  • s

    Sagar Khurana

    09/17/2025, 12:57 PM
    Hi there, facing the issue below with the XCode 26 Error Summary Environment: - Kotlin: 2.2.0 - CMP: 1.10.0-alpha01 - Xcode: 26.0 (Build 17A324) - iOS SDK: iPhoneOS26.0.sdk Main Error:
    Copy code
    Exception in thread "main" java.lang.Error:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/usr/in
      clude/DarwinFoundation1.modulemap:288:8:
      error: module '_c_standard_library_obsolete' requires feature
      'found_incompatible_headers__check_search_paths'
    Cascade Failures:
    Copy code
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System
      /Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:23:10:
      fatal error: could not build module '_Builtin_float'
    
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System
      /Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10:
      fatal error: could not build module 'CoreFoundation'
    Stack Location:
    Copy code
    at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:80)
      at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:567)
      at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
    This appears to be a Kotlin Native incompatibility with the beta iOS SDK 26.0, Any guidance will be appreciated!
    g
    c
    +2
    • 5
    • 10
  • r

    Roger Kreienbühl

    09/17/2025, 2:21 PM
    Hi everyone I am trying to use Crashlytics for iOS in a multiplatform project. I added the dependency via SPM and added the gitlive-firebase-sdk. This works fine when building the app via Xcode, but when trying to run tests, it fails to link the framework. I tried to use the workaround described in the readme of the gitlive-firebase-sdk that suggests using cocoapods for this, but this is a pain and the setup leads to countless other issues. Is there an easy way of fixing this? I tried using spm4kmp plugin, but linking for tests doesn‘t work.
    f
    • 2
    • 8
  • m

    Max

    09/17/2025, 3:02 PM
    My opinion: With iOS 26 and Liquid Glass 💧 , Apple has helped KMP a lot. Why? How i see it, Compose Multiplatform is good for many use cases, B2B, etc. But if you want a truly native UI, you need SwiftUI from now on, since no custom shader, Flutter effect or Compose modifier can bring Liquid Glass UX as Apple native has it. It’s just too good. So for Consumer apps KMP + Swift UI will be the way to go (consume VM from Swift). Flutter is not setup for this. React Native has the bridge inefficiencies Only KMP offers native performance and the ability to use Swift Ui easily. Future looking bright here 💪🏽
    👍 3
    👀 1
    s
    a
    • 3
    • 12
  • g

    Ghasem Shirdel

    09/17/2025, 5:41 PM
    Hello 👋, I’ve recently been exploring the new Swift Export feature and created a small sample module with a foo class and a bar function. While reviewing the generated Swift Export code, I noticed that it seems to be essentially the Objective-C output wrapped with Swift code. Could you clarify if that’s actually the case, or if Kotlin code is being directly converted into Swift syntax? I also have a couple of related questions: 1. Do you have an estimated timeline for when this feature will become stable? At the moment, configuration feels quite complex, and from what I’ve read, each opt module needs to be exported separately. 2. In my sample, the module contains Compose code, and I encountered errors regarding mismatched input names (along with a few other related issues). Thanks in advance for your clarification and guidance!
  • s

    Soumen pal

    09/18/2025, 6:12 AM
    Hello I was looking for multi module approach and I have a doubt that as there as a plugin called androidlibrary which also created the module and now we have multiplatform.library this too creates a module can you clarify once please? are there any tradeoff or are they just a new convention.
  • a

    Achal Vishnoi

    09/18/2025, 7:09 AM
    👋 Hello, team!
  • l

    Leonhard Solbach

    09/18/2025, 1:52 PM
    I've seen a lot of improvements on the Kotlin-Swift interop recently. What would be the easiest way to call the Koog Agentic Framework from a Swift/Linux (so basically Swift on server) based application?
  • p

    Paulo Cereda

    09/18/2025, 5:37 PM
    Hey friends! This is a silly question, so apologies in advance. 😅 I have some tests in
    commonTest
    . Recently, I noticed that I inadvertedly used JVM-specific code in one of those tests (namely,
    File
    and
    readText()
    . Although the tests run without any issues, I think I should move them to
    jvmTest
    instead because it uses non-common code. Is this the correct way to go, or should I keep this scenario as-is? Thanks!
    ✔️ 1
    j
    • 2
    • 2