• aiidziis

    aiidziis

    1 year ago
    Hey! Sorry if this has been already answered here. Tried to search it, but couldn’t get an answer to my question. The Question: Is there a way to get a good stack trace for crashes that happen for iOS when using Kotlin Multiplatform? Our current implementation uses this library to include shared code inside iOS App, but when we receive crashes due to shared code it is so painful to debug.
    aiidziis
    1 replies
    Copy to Clipboard
  • Nacho Ruiz Martin

    Nacho Ruiz Martin

    1 year ago
    I'm having a hard time to build my app on iOS when I add some Multiplatform dependency (Firebase Kotlin sdk). Gradle script is just failing silently. Is there any sane way to debug this? Starting to loose my mind here.
    Nacho Ruiz Martin
    Alexey Glushkov
    +2
    14 replies
    Copy to Clipboard
  • Daniel Kunis [JB]

    Daniel Kunis [JB]

    1 year ago
    Hey all! We want to dive into KMM-development experience regarding: • Networking (Ktor and serialisation especially) • Sharing resources, localization • Crash analytics So if you have anything you'd like to share with us regarding these topics, please, leave a :kotlinnew:  reaction and I'll gladly contact you
    Daniel Kunis [JB]
    1 replies
    Copy to Clipboard
  • a

    Alexander Ignatiev

    1 year ago
    Hello everyone 👋 I just started trying KMM :kotlin: Does anyone have any useful links or best practices for memory management on iOS+KMM?
    a
    Landry Norris
    +1
    3 replies
    Copy to Clipboard
  • Stefan Oltmann

    Stefan Oltmann

    1 year ago
    I'm looking for a sample how to use Gradle testFixture with a Kotlin Multiplatform Project
    Stefan Oltmann
    Paul Woitaschek
    2 replies
    Copy to Clipboard
  • z

    Zahn

    1 year ago
    Hello, Anyone got that when trying to build the framework on native mac (M1) using
    iosArm64("ios")
    ?
    Task 'embedAndSignAppleFrameworkForXcode' not found in project ':common'.
    z
    t
    +3
    6 replies
    Copy to Clipboard
  • e

    Evan

    1 year ago
    Has anyone had issues building an iOS application that uses a KMM library on an Apple Silicon M1 macbook? Someone on my team just upgraded, and XCode won’t compile the project unless it’s put in Rosetta mode. It builds fine on our older Intel machines.
    e
    w
    2 replies
    Copy to Clipboard
  • coolcat

    coolcat

    1 year ago
    Hi all, I have a KMM library integrated into my Xcode project using the Cocoapods plugin. It builds well on my own machine, and also on my CI build node when I SSH in and invoke the build manually. However, when I build on the build node using Jenkins, it just hangs at the Build Shared phase. I enabled debug logging on the Gradle command and it seems the last few logs are about connecting to the daemon
    2021-08-02T22:52:01.227+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
    2021-08-02T22:52:01.228+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
    2021-08-02T22:52:01.230+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
    2021-08-02T22:52:01.230+0100 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Attempting to connect to [77b233a7-ef8c-4285-9d34-29b590570f08 port:61870, addresses:[/127.0.0.1]].
    2021-08-02T22:52:01.230+0100 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Trying to connect to address /127.0.0.1.
    2021-08-02T22:52:01.234+0100 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Connected to address /127.0.0.1:61870.
    Does anybody have any hints for troubleshooting? I already tried setting
    -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2g
    as my
    GRADLE_OPTS
    env variable.
    coolcat
    Karel Petránek
    3 replies
    Copy to Clipboard
  • Landry Norris

    Landry Norris

    1 year ago
    I'm currently using expect/actual for camera operations on Android and iOS. Android's CameraX integrates beautifully with KMM, but I'm noticing that the iOS equivalent is extremely verbose. When I define a Kotlin class that implements the AV...RecordingDelegateProtocol for use with the AVCaptureMovieFileOutput, Kotlin forces me to define a lot of extra functions, such as 'class', conformsToProtocol, isKindOfClass, etc that are not related to the Swift equivalent of the interface In case it helps anyone, subclassing NSObject removes the requirement to implement these extra methods. Has anyone else encountered this while trying to use iOS's camera library in Kotlin using expect/actual? (I'm trying to do this in Kotlin, not Swift, so I can use the result in shared code).
    Landry Norris
    m
    3 replies
    Copy to Clipboard
  • m

    Michal Klimczak

    1 year ago
    Hint for people who come from android background and try to do shared code for ios. Most of
    delegates
    in ios are weak. You need to keep a strong reference somewhere for them to not get deallocated unexpectedly. This is even more problematic, because usually the problem doesn't manifest itself on debug build, only release build crash and the stacktrace is rubbish.
    m
    2 replies
    Copy to Clipboard