One of my tests is failing on `myproject:iosX64Tes...
# multiplatform
j
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)?
r
I'm surprised that
iosX64Test
is even running if you're on an M1 machine.
🤔 2
d
How are you running the tests? From a terminal, or an IDE?
j
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
d
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?
j
Doing that now, this is my config targets
d
That looks suspiciously like KMM.
j
We are using KMM yes. We are building a multiplatform SDK
For mobile
d
?
We’re doing the same.
For mobile.
j
"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
d
Are you using WebStorm?
j
No
d
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.
j
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?
d
Which IDE?
j
Android Studio Bumblebee
d
Same here. Can you post the test?
j
I will try to create a little sample project tomorrow and I can share that with you, if you are ok with that?
k
could you show full build config? i suppose you haven’t set iosSimulatorArm64 target right. you should declare source sets hierarchy too