From 2de79292d46d2d67f9cb1d0356c8cffff751e9da Mon Sep 17 00:00:00 2001 From: LaszloP <7979773+lpusok@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:19:47 +0200 Subject: [PATCH] Fix visionOS tests --- destination/device_finder.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/destination/device_finder.go b/destination/device_finder.go index ea931246..5dcd479a 100644 --- a/destination/device_finder.go +++ b/destination/device_finder.go @@ -94,8 +94,12 @@ func (d deviceFinder) FindDevice(destination Simulator) (Device, error) { // XcodebuildDestination returns the required xcodebuild -destination flag value for a device func (d Device) XcodebuildDestination() string { + if d.Platform == string(VisionOSSimulator) { // visionOS does not start tests with `id` (as of Xcode 15) + return fmt.Sprintf("platform=%s,name=%s,OS=%s", d.Platform, d.Name, d.OS) + } + // `arch` doesn't seem to work together with `id` - if d.Arch == "" { + if d.Arch == "" { // `arch` doesn't seem to work together with `id` return fmt.Sprintf("id=%s", d.ID) }