Thread
#multiplatform
    Jose Garcia

    Jose Garcia

    5 months ago
    One of my tests is failing on
    myproject:iosX64Test
    iosX64 target but is passing on
    myproject:iosSimulatorArm64Test
    . How could I find the reason for this happening? Does anything to do with the fact I am using an Arm64 chip (Apple M1)?
    russhwolf

    russhwolf

    5 months ago
    I'm surprised that
    iosX64Test
    is even running if you're on an M1 machine.
    David Nedrow

    David Nedrow

    5 months ago
    How are you running the tests? From a terminal, or an IDE?
    Jose Garcia

    Jose Garcia

    5 months ago
    I am running them using
    ./gradlew check
    When I run them through the IDE I can't see the option to run them on iosX64 as Russell expects
    David Nedrow

    David Nedrow

    5 months ago
    OK, try
    arch -arch x86_64 ./gradlew check
    to see if that makes a difference.
    Actually, why are you trying to get them to run as x86?
    Do you have some libraries that are x86 only?
    Jose Garcia

    Jose Garcia

    5 months ago
    Doing that now, this is my config targets
    David Nedrow

    David Nedrow

    5 months ago
    That looks suspiciously like KMM.
    Jose Garcia

    Jose Garcia

    5 months ago
    We are using KMM yes. We are building a multiplatform SDK
    For mobile
    David Nedrow

    David Nedrow

    5 months ago
    ?
    We’re doing the same.
    For mobile.
    Jose Garcia

    Jose Garcia

    5 months ago
    "Actually, why are you trying to get them to run as x86?" This is a question I don't have the answer too. My head is spinning with all those different targets to be honest
    David Nedrow

    David Nedrow

    5 months ago
    Are you using WebStorm?
    Jose Garcia

    Jose Garcia

    5 months ago
    No
    David Nedrow

    David Nedrow

    5 months ago
    The only reason you would need to run them via x86 is if they were going to be run on an x86 simulator. On an M1, you shouldn’t have to worry about that.
    Oh, you could try setting Xcode to use Rosetta.
    Even though you’re running this outside of Xcode.
    Jose Garcia

    Jose Garcia

    5 months ago
    The command you shared didn't make any difference. I am trying this one now out of desparation, not that I understand what I am doing
    arch -arch arm64 ./gradlew check
    "Oh, you could try setting Xcode to use Rosetta." Ok, I can see where I get with this
    It failed too (as you'd probably expect hehe)
    Is the KMM plugin supposed to know what chip architecture (I presume through how
    arch
    is set in my console/bash) I am using and then run either iosx86Test or iosArm64Test depending on such a chip?
    David Nedrow

    David Nedrow

    5 months ago
    Which IDE?
    Jose Garcia

    Jose Garcia

    5 months ago
    Android Studio Bumblebee
    David Nedrow

    David Nedrow

    5 months ago
    Same here. Can you post the test?
    Jose Garcia

    Jose Garcia

    5 months ago
    I will try to create a little sample project tomorrow and I can share that with you, if you are ok with that?
    Konstantin Tskhovrebov

    Konstantin Tskhovrebov

    5 months ago
    could you show full build config? i suppose you haven’t set iosSimulatorArm64 target right. you should declare source sets hierarchy too