simon.vergauwen
11/16/2022, 8:31 AMInvalid device: Apple Watch Series 5 - 44mm
8405
Any ideas how to fix this? It's been blocking a couple projects, and I've tried a couple things but none seems to work. If I check the MacOs runner to list the simulators it lists this specific simulator, and it's amongst the list 🤔mbonnin
11/16/2022, 8:34 AMmbonnin
11/16/2022, 8:35 AMxcrun simctl create $foo $bar
or you can force the simulator to be used by Kotlin with
tasks.withType<KotlinNativeSimulatorTest> {
deviceId = "$foo"
}
mbonnin
11/16/2022, 8:37 AM44mm
vs (44mm)
or something like thismbonnin
11/16/2022, 8:37 AMsimon.vergauwen
11/16/2022, 8:38 AMKotlinNativeSimulatorTest
since it only seems to fail for watch 🤔 Can you run the watch tests on an iPhone?
I tried xcrun simctl create
but I got a message that the device already existed :smbonnin
11/16/2022, 8:39 AMxcrun simctl create "Apple Watch Series 5 - 44mm" "Apple Watch Series 5 (44mm)"
simon.vergauwen
11/16/2022, 8:39 AMmbonnin
11/16/2022, 8:40 AMCan you run the watch tests on an iPhone?Yea, good call, I think not. I guess it then has to check the name or something like this
mbonnin
11/16/2022, 8:41 AMtasks.withType<KotlinNativeSimulatorTest> {
when (name) {
"watchosSimulatorArm64Test" -> deviceId = "Apple Watch Series 5 (44mm)"
}
}
mbonnin
11/16/2022, 8:41 AMRick Clephas
11/16/2022, 9:00 AMsimon.vergauwen
11/16/2022, 9:01 AMjw
11/16/2022, 12:14 PMsimon.vergauwen
11/16/2022, 12:14 PMRick Clephas
11/16/2022, 12:15 PMsimon.vergauwen
11/16/2022, 12:16 PMxcrun simctl create "Apple Watch Series 5 - 44mm" "Apple Watch Series 5 (44mm)"Downgrading XCode in Github Actions sound tedious, so I'll Martin's fix until 1.8.0 is released. Thanks for all the help 🙏
jw
11/16/2022, 12:17 PMsimon.vergauwen
11/16/2022, 12:17 PMRick Clephas
11/16/2022, 12:17 PMjw
11/16/2022, 12:18 PMsimon.vergauwen
11/16/2022, 12:18 PM