• Rachel Carandang

    Rachel Carandang

    2 months ago
    Update on KMM not working on arm64 simulator on M1 Macbook: I previously posted about having issues with KMM framework file generated by the Cocoapods gradle plugin working with the arm64 simulator target on iOS. After suggestions in this thread, I stopped using the cocoapods plugin and switched to XCFramework which included the arm64 simulator target. This did not work on the simulator. Instead, I was only able to get simulator with my KMM project working if I opened Xcode with Rosetta to run the x64 simulator target. If anyone has any suggestions on how to get the arm64 simulator target to work, let me know.
    Rachel Carandang
    hfhbd
    +2
    11 replies
    Copy to Clipboard
  • uli

    uli

    2 months ago
    I am seeing KTIJ-19344 with latest stable and EAP AppCode, both with the latest KMM plugin. Has the fix not arrived on AppCode? I can not test on AS as I have x64 only dependencies in the App need a x64 ios simulator on Apple M1 which seems not supported with AS.
    uli
    1 replies
    Copy to Clipboard
  • Devendra Kumar Gaur

    Devendra Kumar Gaur

    2 months ago
    I am working on image processing with voize-gmbh/pytorch-lite-multiplatform But the dependency is not installed in the Kmm project. if we comment out the iosSimulatorArm64() then library is installed successfully. But in case of Xcode when we running the iosApp project the having linker issues. And if the iosSimulatorArm64() is uncommented again then we are not able to installed the library. And One more thing how to convert the Bitmap32 to UIIMage and vice-versa in KMM. and also In case of Android we are able to convert the Korim Bitmap into Android Bitmap. but how to convert android bitmap to Korim Bitmap. Thanks in advance.
  • a

    Austin Pederson

    2 months ago
    Is there anywhere that I can go for more information about KMM releases? I am specifically curious at this time about the
    native.cocoapods
    plugin for the gradle file. I noticed a difference in the output of my podspec and I can't seem to find any information on this change on the web
  • Christoph Wiesner

    Christoph Wiesner

    2 months ago
    Hi, we wanted to adopt KMM and I had my iOS colleague doing a spike by re-writing a lib of iOS in KMM. i turned out that there is a blocker for us to use and certain flaws: • no support for
    Codable
    in iOS: currently nearly all models of our native iOS app implement that protocol and therefore shared KMM models cannot be used in those models (unless you manually write (de)serialization for that shared objects - which is a blocker for us) - seems like a known issue - but i wonder why there is not much more noise around that. other issues he mentioned: • Operator overloads do not translate to Swift ◦ e.g. cannot overload operators such as
    +
    ,
    -
    ,
    <
    etc. (required for conformance to
    Comparable
    for example) • Cannot take advantage of other protocol conformances, e.g. inheriting from the protocol
    Sequence
    gives a huge amount of functionality such as
    map
    ,
    flatMap
    ,
    forEach
    etc. • Integers are all represented as
    Int32
    in Swift - annoying to do conversions to a regular
    Int
    everywhere • Cannot create non-final classes, meaning we cannot implement any class as
    Codable
    or
    Strideable
    (needed to allow us to loops over calendar dates in a calendar date range) • Unable to have “Swifty” function names as it’s not possible to remove parameter names, and parameter labels have to be the same as the parameter names. i.e. we cannot have a function like
    func date(in timeZone: TimeZone) -> Date
    would be great if someone can confirm this limitations or provide guidance on how to overcome those.
    Christoph Wiesner
    s
    +1
    4 replies
    Copy to Clipboard
  • andylamax

    andylamax

    2 months ago
    Is any one here using gradle composite build as dependency substitutors for kotlin multiplatform projects with success? Any workaround is welcomed
    andylamax
    Big Chungus
    +2
    5 replies
    Copy to Clipboard
  • a

    ariedov

    2 months ago
    Are there any
    cbor
    implementations other then the
    kotlin.serialization
    ? I am looking for something implementing RFC 8949 https://www.rfc-editor.org/rfc/rfc8949.html Native android and ios solutions would also work for me.
    a
    Big Chungus
    2 replies
    Copy to Clipboard
  • r

    Racka N

    2 months ago
    Hello everyone. So, I was having an issue with dependency resolution not working. Which is related to this: https://youtrack.jetbrains.com/issue/KTIJ-22111 The current solution was staying on Bumblebee or Intellij IDEA 2021.3 with AGP 7.04. This has worked perfectly for quite a while but now even Intellij IDEA 2021.3.1 and AS Bumblebee do not work. I'm using Windows 11. I have 2 Multiplatform projects and no dependencies in commonMain or androidMain are being resolved with Intellij IDEA 2021.3.1 (only those is jvmMain and jsMain work). In Bumblebee they all get resolved but break when you build and run the project (they start working again after you manually resync gradle). In Intellij IDEA 2022.2 EAP7, AS Chipmunk and Dolphin (which are know to have this issue), import for things originating from commonMain do not work inside commonMain or androidMain for all imported multiplatform libs (either from another module within the project or downloaded) Now, the issue from Intellij IDEA 2022.2, AS Chipmunk and Dolphin are known and fixes are underway. What I was wondering is why did it also break (in a different way) for Intellij 2021.3.1 and Bumblebee which were working perfectly fine with the old AGP versions. After looking
    idea.log
    this section seems to repeat itself for both Intellij IDEA 2021.3.1 and AS Bumblebee which shows some errors when syncing: https://pastebin.com/Q8qYJpgc. Is this related to the issue or is there something wrong with my config. One of those projects can be found here: https://github.com/Thinkrchive/Thinkrchive-Multiplatform. The branch
    working-kotlin-js-support
    is the one I'm currently working on and the one with all the issues. The 2nd project (larger one) is not open source unfortunately but has a very similar project structure and gradle configuration, but they both exhibit the same issues.
    r
    Erik
    12 replies
    Copy to Clipboard
  • k

    kyle

    2 months ago
    Has anyone ever run into an issue when building an iOS project with a framework built from a multiplatform that fails with something like
    mylibrary.framework/Headers/mylibrary.h:488:16: imported declaration 'MylibraryKotlinStringCompanion' could not be mapped to 'KotlinString.Companion'
  • r

    Radoslaw Juszczyk

    2 months ago
    hello, it might be trivial but... how to format a double to two decimal points like 1.123456 -> "1.12" so the decimal point is marked with
    .
    with pure kotlin? I can see that
    .format
    in kotlin stdlib uses java
    java.lang.String.format
    so it depends on the current locale whether it is
    .
    or
    ,
    I want to be able to enforce it to use
    .
    .
    r
    e
    +1
    7 replies
    Copy to Clipboard