• b

    bsimmons

    2 years ago
    So my code auto-complete and highlighting isn't working for
    iosMain
    . So far I've managed by just guessing names and such, but I'm wondering how do I actually get this working on a Mac? Any ideas?
    b
    Artyom Degtyarev [JB]
    5 replies
    Copy to Clipboard
  • Samuel Michael

    Samuel Michael

    2 years ago
    Still having trouble linking binary framework from KMM to my iOS app. Tried default “pack for xcode” task, installing as a Podfile, and can’t seem to import and reference it from within the iOS app still. Anyone have any tips what worked for them with larger modularized iOS apps?
    Samuel Michael
    willyrs
    16 replies
    Copy to Clipboard
  • why

    why

    2 years ago
    Hi, after the latest xcode update, I started getting this error in multiplatform mobile: The following build commands failed: Ld /Users/me/dev/android_projects/myproj/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Objects-normal/arm64/Binary/iosApp normal arm64 edit: error: The linked and embedded framework 'shared.framework' is missing one or more architectures required by this target: arm64. (in target 'iosApp' from project 'iosApp')
    why
    Samuel Michael
    +1
    6 replies
    Copy to Clipboard
  • a

    Alberto

    2 years ago
    when using "suspend" functions in interfaces (not implementation) for common shared code. How is that "suspend" qualifier translated for iOS code implementing that interface?
    a
    louiscad
    +2
    7 replies
    Copy to Clipboard
  • Samuel Michael

    Samuel Michael

    2 years ago
    Anyone know why I might be getting this error/how to fix?
    Samuel Michael
    3 replies
    Copy to Clipboard
  • l

    Logan Knight

    2 years ago
    I'm new to gradle and kotlin. I am struggling to understand how things interact. I have an MP project using ktor. I have successfully been able to build and run it using docker. I am not able to get my dev environment working. I am running the server using
    run
    and
    installDist -t
    , but the js is not served. I have found that if I manually copy the js files to
    ${buildDir}/processedResources/jvm/main
    they are served. First I don't know that this is the 'correct' place for them when using
    installDist
    . Second for the life of me I can't seem to figure out how to get gradle to do a simple copy of the files to that dir. Are the js files supposed to be in that dir, and if so what would be a good or the proper way to make that happen?
    l
    1 replies
    Copy to Clipboard
  • akapanina

    akapanina

    2 years ago
    Hi folks! Here is a quick question that will help us make Multiplatform better 🙂 Do you use jvm target in your Multiplatform projects? And, if yes, what is it for? 1️⃣ - Yes, for backend 2️⃣ - Yes, for desktop 3️⃣ - Yes, for other purposes 🇳🇴 - Don’t have jvm target in any of my projects
    akapanina
    Kris Wong
    +3
    9 replies
    Copy to Clipboard
  • Jake

    Jake

    2 years ago
    I was looking through this documentation looking for information on how to run KMM on an iPhone and not a simulator. Honestly, the docs above have me a little lost. In the past (With Koltin Native libraries) I modified the
    packForXCode
    function to pack a “fat binary” is that still the appropriate action?
    Jake
    2 replies
    Copy to Clipboard
  • d

    Daniele B

    2 years ago
    I’d would like to share another interesting finding for KMP. I started to dig into
    Kotlin/React
    , and I realized it’s really simple to make components, using
    Kotlin-DSL
    HTML elements. I have started to create Web component functions that have exactly the same API of JetpackCompose composables (e.g. NavigationBar, NavigationItem). So, I can now build a webApp with Jetpack composables, still using Kotlin! It’s really awesome. I believe someone (maybe JetBrains itself) will eventually extend JetpackCompose to web, because it makes a lot of sense. I can see in the near future we will just have 2 UI frameworks:
    JetpackCompose
    (for Android, Desktop and Web) and
    SwiftUI
    (for iPhone, iPad, Mac, etc.). I don’t even think React will last, because JetBrains already gained so much expertise that they can easily write their own efficient web reactive framework in Kotlin/JS, based on
    StateFlow
    using JetpackCompose components for the UI, bypassing React completely. So, my suggestion for everyone is to really start learning JetpackCompose and SwiftUI, because this is going to be the base for any app of the future. All the rest will become legacy.
    d
    Javier
    +1
    12 replies
    Copy to Clipboard
  • Diego

    Diego

    2 years ago
    Hi guys. I am an android developer and in my company we are evaluating pros and cons of using Kotlin Multiplatform for all the new developments. We are developing a sample app (a shopping cart) that runs already on iOS and android but also we want to use the same business logic for the web (ideally WebAssembly). I'm not a web developer and I'm struggling to understand how to demo the WebAssembly version. Is there a hello world example that shows how to create and use WebAssembly from a Kotlin multiplatform project? Thanks in advance!
    Diego
    Big Chungus
    5 replies
    Copy to Clipboard