From 21b13866be1a96b01bc52d63d0b005248a014862 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg <118265418+CrabNejonas@users.noreply.github.com> Date: Tue, 19 Sep 2023 20:34:47 +0200 Subject: [PATCH] fix(apple): allow selecting visionOS simulator (#208) --- .changes/allow-vision-os.md | 5 +++++ src/apple/simctl/device_list.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/allow-vision-os.md diff --git a/.changes/allow-vision-os.md b/.changes/allow-vision-os.md new file mode 100644 index 00000000..ed59fe7c --- /dev/null +++ b/.changes/allow-vision-os.md @@ -0,0 +1,5 @@ +--- +"tauri-mobile": patch +--- + +Allow selecting "Apple Vision Pro" as an emulator. diff --git a/src/apple/simctl/device_list.rs b/src/apple/simctl/device_list.rs index 19097b1a..ba4137e6 100644 --- a/src/apple/simctl/device_list.rs +++ b/src/apple/simctl/device_list.rs @@ -33,7 +33,7 @@ fn parse_device_list(output: &std::process::Output) -> Result, let devices = serde_json::from_str::(&stdout)? .devices .into_iter() - .filter(|(k, _)| k.contains("iOS")) + .filter(|(k, _)| k.contains("iOS") || k.contains("xrOS")) .flat_map(|(_, v)| v) .collect();