• hfhbd

    hfhbd

    1 year ago
    Hey, does the KMM plugin only support iOS simulator and no real iOS device?
    hfhbd
    Viktor Petrovski
    +1
    5 replies
    Copy to Clipboard
  • spierce7

    spierce7

    1 year ago
    Does anyone know how to get rid of this error when working with cocoapod?
    [!] Automatically assigning platform `iOS` with version `13.5` on target `App-iOS` because no platform was specified. Please specify a platform for this target in your Podfile. See `<https://guides.cocoapods.org/syntax/podfile.html#platform>`.
    I can’t figure out how to specify the platform in gradle.
    spierce7
    russhwolf
    7 replies
    Copy to Clipboard
  • Jan

    Jan

    1 year ago
    IntelliJ just reloaded my project and removed all modules ? Now no class etc. gets recognized. How can I fix that?
    Jan
    b
    +2
    14 replies
    Copy to Clipboard
  • xiaobailong24

    xiaobailong24

    1 year ago
    Hello, I have a Java base library and a same objective-C base library. And there is a
    abstract class JavaAbsClass
    in java library, and a
    class ObjcAbsClass
    in objc library. So
    except abstract class CommonAbsClass
    is defined in kmm commonMain module, and
    actual typealias CommonAbsClass = JavaAbsClass
    that's not a problem in kmm jvmMain module. But in kmm iosMain module, not only
    actual typealias CommonAbsClass = ObjcAbsClass`
    is unsupported, but also
    actual typealias CommonAbsClass = ObjcAbsClassWrapper
    abstract class ObjcAbsClassWrapper:ObjcAbsClass()
    will get a compiler error with
    Non-final Kotlin subclasses of Objective-C classes are not yet supported
    . So how should I do to interop abstract class with both jvm and objc library? Thanks very much!
    xiaobailong24
    Big Chungus
    27 replies
    Copy to Clipboard
  • Andre Servidoni

    Andre Servidoni

    1 year ago
    Hello all, I need help, I’m trying to build my iOS app on xcode, did all the configurations from https://blog.jetbrains.com/kotlin/2021/07/multiplatform-gradle-plugin-improved-for-connecting-kmm-modules/ but always receiving this error:
    Task 'embedAndSignAppleFrameworkForXcode' not found in project ':mobile_shared'.
    what I need to do? I followed all the steps.
    Andre Servidoni
    John O'Reilly
    +2
    7 replies
    Copy to Clipboard
  • a

    Alfred Lopez

    1 year ago
    Hello All, I have a project that I’m working on behind a corporate firewall, so I only have access to our Artifactory instance. This project targets nodejs(), and our build machines already have node and yarn installed. I tried the following to prevent the build from trying to download/install node/yarn, but it doesn’t seem to have any effect:
    rootProject.plugins.withType(NodeJsRootPlugin::class) {
        var nodeJsRootExt = rootProject.the<NodeJsRootExtension>()
        nodeJsRootExt.download = false
        nodeJsRootExt.nodeVersion = "16.15.4"
    }
    
    rootProject.plugins.withType(YarnPlugin::class) {
        var gsmlYarnRootExt = rootProject.the<YarnRootExtension>()
        gsmlYarnRootExt.download = false
        gsmlYarnRootExt.version = "1.22.11"
    }
    For some reason, the build “sees” the assigned version numbers, but it ignores the download = false. Also, I’m using plugin version 1.5.20, and the YarnRootExtension class clearly has “download” as a field, but IntelliJ says otherwise and when I Cmd+Click to go to the definition of the class, the property is not there, which means to me that gradle is not pulling in the latest for some reason. Do any of you have any insight to this? Thanks!
    a
    turansky
    +1
    10 replies
    Copy to Clipboard
  • Marc Plano-Lesay

    Marc Plano-Lesay

    1 year ago
    What are people using these days in terms of logging? I have some Flogger on JVM and Timber on Android, I'm looking to replace both by a common library for shared modules. I tried Napier earlier but it doesn't seem to be achieving what I'm looking for - a log placed on the common JVM module didn't end up using the configured Android logger on an Android app...
    Marc Plano-Lesay
    John O'Reilly
    +2
    7 replies
    Copy to Clipboard
  • k

    kevindmoore

    1 year ago
    I've been trying KMP for awhile now and the Android/ios side is not bad. I'm trying to add desktop and shared compose code and gradle is killing me. Every time I fix 1 error, another one comes up. Google search doesn't help because this is too new. Compose compiler keeps complaining about a version of compose that I am not using. I've tried upgrading to Kotlin 1.5.30 to see if that would help. No luck
    k
    s
    +2
    6 replies
    Copy to Clipboard
  • Zhiqiang Bian

    Zhiqiang Bian

    1 year ago
    Hey guys! I am trying to send an image from Android/iOS to the backend using ktor-client, which requires to convert the Image file into a ByteArray first. I can’t find a library that supports both Android and iOS. Is
    expect/actual
    the only way to handle this use case?
    Zhiqiang Bian
    saket
    +1
    3 replies
    Copy to Clipboard
  • c

    clark

    1 year ago
    Hey everyone, I recently started seeing a bug with the
    multiplatform-settings
    library where anytime I try to init the no arg version in my commonMain code, it throws a
    NullPointerException
    . See thread for code.
    c
    russhwolf
    11 replies
    Copy to Clipboard