https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

Thomas Kranzer

01/27/2023, 7:05 AM
When executing iOS unit tests via gradle, one has to explicitly specify the architecture by executing either
iosX64Test
or
iosSimulatorArm64Test
(depending on the JDK installation). How do you run iOS unit tests via gradle that are automatically executed with the correct architecture but without explicitly specifying?
l

Landry Norris

01/27/2023, 4:17 PM
Running the check task will run the iOS tests as well if possible. I haven’t checked, but I think if you run
gradlew iosX64Test iosSimulatorArm64Test
it should try to run both and skip the one it can’t run.
t

Thomas Kranzer

01/30/2023, 6:40 AM
yes this works fine. the problem is that it's slowing down the execution time of the tests as it always tries to run on multiple architectures.
4 Views