https://kotlinlang.org logo
#ios
Title
# ios
r

ribesg

05/20/2022, 10:48 AM
Copy code
> Task :iosX64Test
Invalid device: iPhone 12
java.lang.IllegalStateException: command '/usr/bin/xcrun' exited with errors (exit code: 148)
Yeah I don’t have an iPhone 12 simulator, but why does it try running my tests on it? There are other simulators available, why does it want to use something that isn’t there?
I can’t find anywhere this would be configured
This worked, but I don’t know why it selects a non existing simulator without any configuration
Copy code
tasks.getByName<KotlinNativeSimulatorTest>("iosX64Test") {
    deviceId = "iPhone 13"
}
(but it’s 11 there, not 12 🤯 )
r

ribesg

05/23/2022, 2:33 PM
Yeah so it’s not that. It’s also my first implementations of tests in this project and they never ran on anything but an iPhone 13 simulator so it’s weird.
j

Jozef Matus

11/14/2022, 8:55 PM
Did you find out what was the problem? I have the same issue
r

ribesg

11/14/2022, 8:58 PM
No, I have an existing simulator manually configured as above everywhere I have iOS tests
j

Jozef Matus

11/14/2022, 8:58 PM
thanks 🙂
if you search this exact thing here on slack in multiplatform channel, you’ll find more people discussing it 🙂
there are different approaches
461 Views