Skip to content

Commit

Permalink
try to repro - fail (JDK17)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Jul 31, 2024
1 parent 0cd8bc1 commit de617de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maestro-cli/src/main/java/maestro/cli/util/IOSEnvUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit de617de

Please sign in to comment.