From de617de6156c454524f44b59d1413e96dc3573f5 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Wed, 31 Jul 2024 10:22:32 +0200 Subject: [PATCH] try to repro - fail (JDK17) --- maestro-cli/src/main/java/maestro/cli/util/IOSEnvUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maestro-cli/src/main/java/maestro/cli/util/IOSEnvUtils.kt b/maestro-cli/src/main/java/maestro/cli/util/IOSEnvUtils.kt index 6b26070c8c..2a03ba5825 100644 --- a/maestro-cli/src/main/java/maestro/cli/util/IOSEnvUtils.kt +++ b/maestro-cli/src/main/java/maestro/cli/util/IOSEnvUtils.kt @@ -9,12 +9,12 @@ object IOSEnvUtils { get() { // See also: https://stackoverflow.com/a/78755176/7009800 - val topLevelDirs = Path("/Library/Developer/CoreSimulator/Volumes").toFile() + val topLevelDirs = Path("/Library/Developer/CoreSimulator/VolumesX").toFile() .listFiles() ?.filter { it.exists() } ?: emptyList() val installedRuntimes = topLevelDirs - .map { it.resolve("Library/Developer/CoreSimulator/Profiles/Runtimes") } + .map { it.resolve("Library/Developer/CoreSimulator/Profiles/RuntimesD") } .map { it.listFiles() } .reduceOrNull { acc, list -> acc + list } ?.map { file -> file.nameWithoutExtension }