I'm running a test with Kotlin Multiplatform and I...
# multiplatform
n
I'm running a test with Kotlin Multiplatform and I see the following message in the logs. What does it mean?
Copy code
:arrow-optics:compileKotlinIosX64	
Invalid device: iPhone 12	
Invalid device: iPhone 12	
Invalid device: iPhone 12
Does it mean that I have an iPhone 12 connected but I require some other version? Does it mean that it is looking for an iPhone 12 but couldn't find it?
m
That's the xcode 14 update that removed some of your simulators
You can recreate them manually with
xcrun simctl create "Apple Watch Series 5 - 44mm" "Apple Watch Series 5 (44mm)"
And xcrun simctl list devices or so to get all possibilities (currently on mobile but it's something like this)
j
You can also specify the simulator to use to override the iPhone 12 default in build.gradle.kts:
Copy code
tasks.withType<KotlinNativeSimulatorTest> {
    deviceId = "iPhone 14"
}
n
Thanks for the answers on how to fix it. I wish the error message were more clear here.
How do I fix this error message?
Copy code
:arrow-fx-coroutines-test:tvosSimulatorArm64Test	
dyld[64105]: could not use 'dyld_sim' because it was not built for platform tvOS-sim	
Child process terminated with signal 6: Abort trap	
java.lang.IllegalStateException: command '/usr/bin/xcrun' exited with errors (exit code: 134)