Skip to content

Commit

Permalink
Fix visionOS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lpusok committed Jun 18, 2024
1 parent e42d0c6 commit 99f09be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion destination/device_finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ func (d deviceFinder) FindDevice(destination Simulator) (Device, error) {
// XcodebuildDestination returns the required xcodebuild -destination flag value for a device
func (d Device) XcodebuildDestination() string {
// `arch` doesn't seem to work together with `id`
if d.Arch == "" {
if d.Arch == "" || // `arch` doesn't seem to work together with `id`
d.Platform != string(VisionOSSimulator) { // visionOS does not start tests with `id` (as of Xcode 15)
return fmt.Sprintf("id=%s", d.ID)
}

Expand Down

0 comments on commit 99f09be

Please sign in to comment.