Hi Folks, I’m working on fixing the test suite fo...
# multiplatform
h
Hi Folks, I’m working on fixing the test suite for a KMM project. I’m running this project on a Mac machine (M2 chip). When I attempt to run the unit tests for iOS using the command
./gradlew iosX64Test —info
, I see
"BUILD SUCCESSFUL"
message on the terminal. However the
iosX64Test
task is denoted as skipped:
> Task :abcSDK:iosX64Test SKIPPED
Skipping task ':abcSDK:iosX64Test' as task onlyIf is false.
:abcSDK:iosX64Test (Thread[Execution worker Thread 6,5,main]) completed. Took 0.0 secs.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD SUCCESSFUL in 732ms
Can someone please suggest how to debug this issue and get the tests up and running for iOS? Thanks in advance.
r
Your M2 chip is arm64, not x64. The project doesn't even try building or running targets incompatible with the current machine, which is why it's being skipped. Try running it for
iosArm64
, something like this:
Copy code
./gradlew iosArm64Test --info
👆🏼 1
👍 1
h
Thank you for your response. I am using
iosSimulatorArm64
as a workaround for now.